I'm trying to communicate with The Stick from Linux, based on Maartens protocol info (doing a module for FHEM). I crafted a package, but if I send this to /dev/ttyUSB0, I get rather strage data back (Stick's and Circle's firmwares are from 2008):
Code: Select all
firstshell@plug-2:~# xxd /tmp/1
0000000: 0505 0303 3030 3233 3030 3044 3646 3030 ....0023000D6F00
0000010: 3030 3442 4532 3436 3830 4138 0d0a 004BE24680A8..
firstshell@plug-2:~# cat /tmp/1 >/dev/ttyUSB0
Code: Select all
othershell@plug-2:~# cat </dev/ttyUSB0 | xxd
0000000: 5075 7446 6966 6f55 6e69 6361 7374 2034 PutFifoUnicast 4
0000010: 3020 3a20 3030 3044 3646 3030 3030 3442 0 : 000D6F00004B
0000020: 4532 3436 0d0a 0505 0303 3030 3030 3030 E246......000000
0000030: 4331 4142 3932 0d0a 8349 6e73 7065 6374 C1AB92...Inspect
0000040: 4669 666f 556e 6963 6173 7420 3430 0d0a FifoUnicast 40..
0000050: 4e52 746f 4e43 2032 2030 0d0a 656d 6265 NRtoNC 2 0..embe
0000060: 724d 6573 7361 6765 5365 6e74 4861 6e64 rMessageSentHand
0000070: 6c65 7228 2920 202a 2a20 436c 7573 7465 ler() ** Cluste
0000080: 7249 6420 3430 202a 2a20 2053 7461 7475 rId 40 ** Statu
0000090: 7320 3020 2a2a 0d0a 2043 6c75 7374 6572 s 0 **.. Cluster
00000a0: 4964 2034 3020 2053 7563 6365 7373 0d0a Id 40 Success..
00000b0: 9734 3120 3a20 3030 3044 3646 3030 3030 .41 : 000D6F0000
00000c0: 3442 4532 3436 0d0a 0505 0303 3030 3234 4BE246......0024
00000d0: 3030 3044 3646 3030 3030 3442 4532 3436 000D6F00004BE246
00000e0: 3030 3030 3541 3835 3030 3034 3434 3730 00005A8500044470
00000f0: 3031 3835 3030 3030 3034 3733 3030 3037 0185000004730007
0000100: 3438 4234 3235 3338 3031 4244 3342 0d0a 48B4253801BD3B..
Regards,
-kai