I’m new to developing with HIP so I thought I would start with the basics instead of diving right into the SDK. I can only get error responses from /dev/ttyUSB0. Any packet I send that I think should be correct does not get a response, while any packets I send that I have intentionally set some bits incorrectly will get a response.
To start, my firmware is:
Revision: K2_0_7_35AP C:/WS/FW/K2_0_7_35AP/MSM6290/SRC 2010/03/04 17:37:08
I am testing on an ARM system with an Atmel SAM9G45 processor running Linux. I crafted a couple of HIP packets using hexedit and saved them to a file.
hexdump -C loopback.hip 00000000 7e 00 05 03 00 41 42 43 44 45 7e |~....ABCDE~|
hexdump -C loopbackWRONG.hip 00000000 7e 00 04 03 00 41 42 43 44 45 7e |~....ABCDE~|
My problem is when I send loopback.hip to /dev/ttyUSB0 I get no response… this should be the correct packet. loopbackWRONG.hip has an incorrect datalength and yet I do receive a response to this packet.
cat loopbackWRONG.hip > /dev/ttyUSB0:
hexdump -v -C /dev/ttyUSB0 00000000 7e 00 43 01 41 42 43 44 7e 7e 00 43 01 41 42 43 |~.C.ABCD~~.C.ABC|
I have tried other packets as well, and even some CnS packets, and I never get a response on packets that are crafted properly, only packets with errors. Can anyone see what I have done wrong here?