When flashing ESP32, Connect the data cable Hold the button and flash the Tasmota Release "Tasmota32 Sonoff-ZigbeeBridgePro" to pre-completing all required file and file system changes.
The CC2652P module is pre-installed with the latest firmware of [Koenkk](https://github.com/Koenkk/Z-Stack-firmware/blob/master/coordinator/Z-Stack_3.x.0/bin/CC1352P2_CC2652P_launchpad_coordinator_20220219.zip) by default (20220219)
## Working mode switching (TCP and Serial)
The device works in TCP mode by default. If you want to switch to Serial mode, you need to open the shell of the device and turn the switch inside to the position shown in the figure below (close 1, 2, open 3, 4). At this time, the Zigbee module directly communicates with the serial port Connection does not go through ESP32. []((/assets/images/athom_mode_switch.png))
## For Home Assistant (ZHA or Zigbee2MQTT)
This mode creates a TCP bridge from the zigbee module to Home Assistant or Zigbee2MQTT. In this case Tasmota is only relaying all the messages from the zigbee module and **you cannot use any Zigbee commands in Tasmota console in this mode. All setup