web-u2
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
web-u2 [2019/09/09 13:48] – [WITRN U2 104083] kingkevin | web-u2 [2019/09/09 18:18] – [USB HID] kingkevin | ||
---|---|---|---|
Line 135: | Line 135: | ||
===== Software ===== | ===== Software ===== | ||
- | ===== Support ===== | + | {{ : |
+ | |||
+ | Here a couple of notes about the [[http:// | ||
+ | |||
+ | The software is in Chinese, but you can change it by translating the words in the '' | ||
+ | Here the {{ : | ||
+ | |||
+ | When started, the software will query [[http:// | ||
+ | This is not a pdf. I think this is just to pass firewall (just like they use HTTP without SSL).\\ | ||
+ | This URL will return a short binary string, for example '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | If will also query [[http:// | ||
+ | Using the Network upgrade it will also download the Firmware for the U2 at [[http:// | ||
===== Communication ===== | ===== Communication ===== | ||
Line 141: | Line 161: | ||
==== USB HID ==== | ==== USB HID ==== | ||
+ | When connected to USB, it appears as an {{ : | ||
+ | When powered while pressing on the OK button, it will boot in the DFU (Device Firmware Upgrade) mode, which allows flashing the firmware. | ||
+ | But it is still an {{ : | ||
+ | |||
+ | I've partially reversed the HID communication: | ||
+ | * the messages exchanged are 64 bytes long | ||
+ | * the host (e.g. software) starts by sending a message. Here an example of message sent (captured from the software): | ||
+ | < | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | </ | ||
+ | * this will cause the device (e.g. U2) to send measurements. Since it will only send a couple of messages, keep sending the message every couple of milliseconds (can be the same). Here an example measurement reply: | ||
+ | < | ||
+ | ff 55 13 b4 7f bf 50 ef 1a 2c d7 63 a0 40 0e 74 da 39 0e 74 da 39 0e 74 da 39 bb dd 08 3b 33 33 53 40 74 a8 6d 3c fe 98 f7 41 d2 34 91 c2 14 ae a0 40 0e 74 da 39 00 00 00 00 00 00 00 00 16 ae | ||
+ | </ | ||
+ | |||
+ | here how to decode the measurements: | ||
+ | ^ index ^ byte(s) ^ format ^ meaning ^ | ||
+ | | 0-1 | '' | ||
+ | | 2 | '' | ||
+ | | 3 | '' | ||
+ | | 4 | '' | ||
+ | | 5 | '' | ||
+ | | 6 | '' | ||
+ | | 7 | '' | ||
+ | | 8-9 | '' | ||
+ | | 10-13 | '' | ||
+ | | 14-17 | '' | ||
+ | | 18-21 | '' | ||
+ | | 22-25 | '' | ||
+ | | 26-29 | '' | ||
+ | | 30-33 | '' | ||
+ | | 34-37 | '' | ||
+ | | 38-41 | '' | ||
+ | | 42-45 | '' | ||
+ | | 46-49 | '' | ||
+ | | 50-53 | '' | ||
+ | | 54-61 | '' | ||
+ | | 62 | '' | ||
+ | | 63 | '' | ||
+ | |||
+ | There are other messages to get the device' | ||
==== Bluetooth Serial ==== | ==== Bluetooth Serial ==== |
web-u2.txt · Last modified: 2024/01/07 17:49 by 127.0.0.1