46
NXPTM M522XX, KINETIS and i.MX RT / Re: HID class on USB
« on: November 07, 2015, 08:59:04 AM »
Hi Mark,
Thats correct, the task is receiving the code, and fnWrite is called which returns 64. The ucRawData is as expected after with 1 character and rest filled with zeros. But nothing is displayed on the console application (in https://www.pjrc.com/teensy/rawhid.html link).
Also, a few questions, if you dont mind:
1. The receive/transmit block to and from utasker is always 64 bytes in length , even if 1 character is sent/received?
2. If No 2, above is true, is there a way of known within the 64 bytes what was the number actually transmitted from the pc app? So if the app sent 4 bytes of data (non ascii) is there a way of known within the app if it was 4 bytes sent? Cant check for the zeros as this value can be sent too.
3. If I place a break point write after the write line, I get an error in the console application saying the device is offline. Why is this?
Many Thanks
Neil
Thats correct, the task is receiving the code, and fnWrite is called which returns 64. The ucRawData is as expected after with 1 character and rest filled with zeros. But nothing is displayed on the console application (in https://www.pjrc.com/teensy/rawhid.html link).
Also, a few questions, if you dont mind:
1. The receive/transmit block to and from utasker is always 64 bytes in length , even if 1 character is sent/received?
2. If No 2, above is true, is there a way of known within the 64 bytes what was the number actually transmitted from the pc app? So if the app sent 4 bytes of data (non ascii) is there a way of known within the app if it was 4 bytes sent? Cant check for the zeros as this value can be sent too.
3. If I place a break point write after the write line, I get an error in the console application saying the device is offline. Why is this?
Many Thanks
Neil