native apps with libSamy[GP]Orting.so

Ideas and dreaming will go this forum

arris69
Official SamyGO Developer
Posts: 1700
Joined: Fri Oct 02, 2009 8:52 am
Location: Austria/Vienna (no Kangaroos here)
Contact:

Re: native apps with libSamy[GP]Orting.so

Post by arris69 »

debug app (for userspace) seems to work. need to test it without running exeDSP too

so time to think about where to route the data, keycode -> keysym mapping hdmi actions to keysym or to input events
find a way (and test) to refeed no keyaction data to micom/exeDSP..... other plans???

http://samygo.svn.sourceforge.net/viewv ... ision=1175

if somebody like to monitor micom communication it's also possible without this app (if you just like to quick test hdmi events or whatever...)

Code: Select all

cat /dev/ttyS0 | hexdump
btw.
sample output from app:

Code: Select all

trailer found: 0xff pack 0xff next len: 6
found: 0xff type: 0xff data to read: 6
avail: 9 chars in serial buffer -> need 6
got all 6 == 6 -> 0x00 0x11 0x00 0x00 0x00 0xb1 .
remain: 3 chars in serial buffer, bad.
with calculated crc (0xb1): 0. pack header: 0xff type: 0xff event: 0xa0 code: 0x00 flag: 0x11 u1: 0x00 u2: 0x00 u3: 0x00 crc: 0xb1 
received SIGIO signal. (0x001d)
avail: 3 chars in serial buffer
grap read 3:0xff 0xff 0xa0 .
header in buf? (from grap)

trailer found: 0xff pack 0xff next len: 6
found: 0xff type: 0xff data to read: 6
avail: 0 chars in serial buffer -> need 6
got all 6 == 6 -> 0x00 0x11 0x00 0x00 0x00 0xb1 .
remain: 4 chars in serial buffer, bad.
with calculated crc (0xb1): 0. pack header: 0xff type: 0xff event: 0xa0 code: 0x00 flag: 0x11 u1: 0x00 u2: 0x00 u3: 0x00 crc: 0xb1 
received SIGIO signal. (0x001d)
avail: 4 chars in serial buffer
grap read 3:0xff 0xfe 0x82 .
header in buf? (from grap)

trailer found: 0xff pack 0xfe next len: 3
found: 0xff type: 0xfe data to read: 3
avail: 1 chars in serial buffer -> need 3
got all 3 == 3 -> 0x10 0x0d 0x9f .
remain: 8 chars in serial buffer, bad.
with calculated crc (0x9f): 0. pack header: 0xff type: 0xfe event: 0x82 code: 0x10 flag: 0x0d u1: 0x9f u2: 0x00 u3: 0x00 crc: 0x9f 
received SIGIO signal. (0x001d)
avail: 8 chars in serial buffer
grap read 3:0xff 0xfe 0x84 .
header in buf? (from grap)

trailer found: 0xff pack 0xfe next len: 3
found: 0xff type: 0xfe data to read: 3
avail: 5 chars in serial buffer -> need 5
got all 5 == 5 -> 0x1f 0x82 0x20 0x00 0x39 .
pack complete?
with calculated crc (0x45): 0. pack header: 0xff type: 0xfe event: 0x84 code: 0x1f flag: 0x82 u1: 0x20 u2: 0x00 u3: 0x39 crc: 0x39 

Post Reply

Return to “[B] Brainstorm”