mirror of https://github.com/arendst/Tasmota.git
CPU frequency/ Serial Comms
parent
4a473f1613
commit
4660f3ab55
11
Zigbee.md
11
Zigbee.md
|
@ -168,7 +168,12 @@ Additional References:
|
|||
Once the CC2530 flashing process completes, you can re-use that ESP82xx device by flashing it with the Z2T firmware. Otherwise, you can use any ESP82xx device.
|
||||
- [Compile Tasmota](Flashing#flashing-and-compiling-from-source)
|
||||
- `#define USE_ZIGBEE` in `user_config_override.h`.
|
||||
- Run the ESP at 160MHz instead of 80MHz, this ensures higher reliability in serial communication with CC2530. In `platformio.ini`, comment out `;board_build.f_cpu = 80000000L` and uncomment `board_build.f_cpu = 160000000L`.
|
||||
- Run the ESP at 160MHz instead of 80MHz, this ensures higher reliability in serial communication with CC2530.
|
||||
In `platformio.ini`
|
||||
- Comment out: `;board_build.f_cpu = 80000000L`
|
||||
- Uncomment: `board_build.f_cpu = 160000000L`
|
||||
|
||||
**Note**: If you find that your Z2T operation is unstable, you may have an ESP82xx device that cannot operate reliably at the higher frequency. If you are using hardware serial (see below) and you still have unreliability, try compiling for 80MHz (reverse the options above) and flash the ESP82xx device again to see if operating at a lower frequency improves stability. Running at 80MHz will impact software serial communications so hardware serial is highly recommended if running the ESP82xx at 80MHz.
|
||||
- Follow the usual [Tasmota flashing process](Flashing)
|
||||
|
||||
## 3. Connect the CC2530 to the Tasmota Device
|
||||
|
@ -176,7 +181,9 @@ The connection uses a 115200 baud serial connection. Hence you need to configure
|
|||
|
||||
If you are using your ESP82xx device to flash the Zigbee adapter as described in the flashing section, GPIO4, GPIO5, and GPIO12 are already in use. You may want to leave these connections in place in case you need to update the CC2530 firmware in the future. Otherwise, any of these GPIO can also be used.
|
||||
|
||||
It is best to use the hardware serial pins (GPIO1/GPIO3 or GPIO13/GPIO15) for high speed serial. However, TasmotaSerial version 2.4.x (PR [#6377](../pull/6377)) improved the reliability of software serial. This allows any GPIO to be used.
|
||||
The interface between the ESP82xx Wi-Fi device and the CC2530 Zigbee module uses high speed serial. **It is recommended that hardware serial pins be used (GPIO1/GPIO3 or GPIO13\[Rx]/GPIO15\[Tx])**. Due to ESP82xx GPIO pin constraints, GPIO15 can only be used as serial Tx.
|
||||
|
||||
Tasmota also provides serial communications emulation through software (i.e., software serial). This allows any GPIO to be used. TasmotaSerial version 2.4.x (PR [#6377](../pull/6377)) has improved the reliability of software serial making it feasible for use in this application. However, if you have an option to use hardware serial, choose that.
|
||||
|
||||
Recommended connections:
|
||||
|
||||
|
|
Loading…
Reference in New Issue