HomeACcessoryKid / AQARA-ZNCLDJ11LM

Aqara curtain motor ZNCLDJ11LM
Apache License 2.0
21 stars 6 forks source link

UART data command #1

Closed thangta closed 5 years ago

thangta commented 5 years ago

Could you share the uart data command between EPS8266 and AT Mega. I see some MODBUS data in main.c but I not sure Thanks.

HomeACcessoryKid commented 5 years ago

It is not real modbus but some engineer who didn’t really understand it making something up (IMHO)

BR, HacK

On 23 Nov 2018, at 07:36, thangta notifications@github.com wrote:

Could you share the uart data command between EPS8266 and AT Mega. I see some MODBUS data on main.c but I not sure, it correctly. Thanks.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

thangta commented 5 years ago

I see "//hardcoded CRC16_MODBUS" comment in main.c. At calibrate_task function, you send this command directly to uart. I also try to send same commands, but nothing change in aqara motor. I working on another MCU instead ESP.

P/S: could you please to share how to quickly make motor working.

HomeACcessoryKid commented 5 years ago

I have added a page to the Wiki As for styles of coding, I like to cut corners if they make sense to me during development, but feel free to do things differently. I am not in it for the 'perfect coding award'.

MAYBE there is something going on with the BAUDRATE. MY motor sends out a reset command at 19200 baud but after that all is done at 9600 baud. Maybe your motor is at 19200 baud all the time?