Last Updated on : 2024-05-14 08:00:14download
Gateway universal docking development method: Turow provides a Wi-Fi module, MCU is developed by the customer. As long as the MCU sends data according to the serial protocol, it can access the Turow platform. Therefore, Gateway Universal Docking does not care about the communication type of the sub-device.
This is related to the number of conditions and actions created by the user. One condition is about 250 byte and one action is about 200 byte. If you create 1 condition + 5 actions, it is recommended that you do not create more than 10.
MCU sets the next heartbeat interval in the heartbeat reply frame. The default heartbeat interval is 1min, and the minimum settable heartbeat interval is 180s.
It will query before the heartbeat cycle arrives. The sub-device heartbeat will be sent out earlier (8S+random seconds) in order to avoid the situation that multiple sub-devices send out heartbeats at the same time and the MCU is too late to process the heartbeat.
Before the heartbeat cycle arrives, the module will send heartbeat query packet to MCU in advance, and if there is no reply around 8s timeout, it will resend, and if it accumulates 3 times and still no reply, the module will notify the cloud that the sub-device is offline; then the module will stop sending heartbeat frames to this sub-device until the MCU sends the status frame of this sub-device to the Wi-Fi module, and the module will notify the cloud that the device is online and restart the device heartbeat.
The module will refresh the heartbeat and re-timer when it receives the status data from the sub-device during the heartbeat interval.
It is recommended that developers should not exceed 256 bytes of data in a frame. If the amount of data that needs to synchronize the status of sub devices after networking is large, it can be sent in packets and the frame interval is recommended to be 100ms.
Yes, the firmware version number format xx.xx.xx
, x takes 0~9.
If you just remove the gateway, the sub-device information will still be retained. If the gateway is restored to factory settings, the sub-device information will not be retained. If the domestic and international accounts are switched when the gateway is re-provisioned, the slave device information will also be cleared.
The default timeout time is 500ms, and the heartbeat detection time is 8S.
The control command will be resent. 2 times in 1s interval -> 3 times in 10s interval -> stop resenting.
8-EN pin is connected to key pull low.
If you need to get the log of the module during the debugging process, you can use the following diagram to get the Log_Tx
and GND
pins, connect the USB to the serial tool, configure the serial port 38400,8,N,1
, and use the PC serial assistant to capture the log and save the text and provide it to Tuya technical support engineers for analysis.
If you have more questions, you can submit a ticket and a professional engineer from Tuya will be available online to answer your questions. To be able to understand your problem quickly, we suggest you describe your problem in the following format.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback