happycodelucky / rocket-nuimo-node

Nuimo Control device discovery, connection manager, and interface control for Node.js
MIT License
12 stars 4 forks source link

Readout of Nuimo Firmware version #17

Open DrCWO opened 2 years ago

DrCWO commented 2 years ago

Hi Paul, may I kindly ask you to include the readout of the Nuimo Firmware Version into rocket-nuimo-node. I can't do it by my own cause I have no knowledge of Typescript nor your build process.

Here in this document: https://rooextend.com/download/Nuimo_Firmware_update.pdf you can find how the readout can be achieved. You see - Scroll down in the list to the entry: „Firmware Revision String“ - this is how it can be done. If you like you can also implement the setting of the DFU-Mode you see some lines below but this is not mandatory for me.

The reason why I like to get it implemented is the sleep mode of the Nuimo. Currently I suppress sleep mode by sending a heartbeat glyph each 4.5 seconds. As this is a unidirectional write I never can be sure that the Nuimo received it as BT is not so reliable. Having the Firmware version readout I have a bidirectional communication. So the Nuimo gets a request and sends an answer. If I don't get the answer I am able to resend the request for a second or third time till it is acknowledged and so I can be sure Nuimo gut it. My hope is, that the Firmware Readout also also prevents the Nuimo from sleeping like sending a heartbeat glyph.

Please help me to make http://rooExtend.com better.

Thanks DrCWO