badicsalex / ar-drivers-rs

Opensource Rust driver for various AR glasses
MIT License
137 stars 22 forks source link

HID command to Nreal Light using Android device. #19

Open xromansx opened 3 months ago

xromansx commented 3 months ago

I tried to uyse USB HID Terminal 1.1 for android to send command to glasses, but can't make it working. I see people here have much more experience. I tried to send command to stm32 as Text but no feedback: :1:Y:4:18fe5c3ce33:cfe234cc:

for CRC I can use this site https://md5calc.com/hash/adler32?str= what format is timestamp ?

Thanks

xromansx commented 3 months ago

Tried in linux write directly to HID also doesn't work: echo -en "\x02:1:3:1:88:a52b426e:\x03" | sudo tee -a /dev/hidraw10

xromansx commented 3 months ago

Interesting pressing + with - for 3sec changes display from 3d to 2d and invers.

badicsalex commented 3 months ago

Tried in linux write directly to HID also doesn't work: echo -en "\x02:1:3:1:88:a52b426e:\x03" | sudo tee -a /dev/hidraw10

It worked with my Nreal Light.

xromansx commented 3 months ago

Interesting, this are Nreal Light from first dev versions. is it possible to have a command to check FW or SN with crc. Do you think they can be reflashed to normal one. I remember there was a program for windows in their SDK a long time ago, now it is missing.or maybe reflash STM there should be a combination or the command to put it in DFU or flashing mode. Regarding the buttons 2 simultaneously presed are changing 2d to 3d is this for any nreal light ?

xromansx commented 2 months ago

As I found out I have nreal light demo version, in this model instead of hid they use Serial interface, so it is not compatible with this driver. It would be nice if someone has experience flassing this glasses can help me flash HID FW. It would be also good for people who want to flash this type of device. Thanks.