Int16 read problem
I have TAT100 GPS device.
I got error: Cannot read 16-bit int, it exceeds the boundary of the file this error gives PhpBinaryReader caller is Codec8Extended.decodeIoProperties
hexdec data is:
00000000000004d18e0f0000018655db97a0010e7e94b72366763f000000000000000000000a000400f000001502004502012f00000400b5000000b600000018000000431bb2000100f1000060e100014e2f00000000000000c700000000018655e12968010e7e94b72366763f000000000000000000000a000400f000001502004502012f00000400b5000000b600000018000000431bba000100f1000060e100014e2f00000000000000c700000000018655e6b748010e7e94b72366763f000000000000000000000a000400f000001502004502012f00000400b5000000b600000018000000431bba000100f1000060e100014e2f00000000000000c700000000018655ec3d58010e7e94b72366763f000000000000000000000a000400f000001502004502012f00000400b5000000b600000018000000431bba000100f1000060e100014e2f00000000000000c700000000018655f1c750010e7e94b72366763f000000000000000000000a000400f001001501004502012f00000400b5000000b600000018000000431b95000100f1000060e100014e2f00000000000000c700000000018655f75148010e7e94b72366763f000000000000000000000a000400f000001502004502012f00000400b5000000b600000018000000431b95000100f1000060e100014e2f00000000000000c700000000018655fcd758010e7e94b72366763f000000000000000000000a000400f000001502004502012f00000400b5000000b600000018000000431b91000100f1000060e100014e2f00000000000000c700000000018656026150010e7e94b72366763f000000000000000000000a000400f000001502004502012f00000400b5000000b600000018000000431b91000100f1000060e100014e2f00000000000000c70000000001865607eb48010e7e94b72366763f000000000000000000000a000400f000001501004502012f00000400b5000000b600000018000000431b91000100f1000060e100014e2f00000000000000c7000000000186560d7540010e7e94b72366763f000000000000000000000a000400f000001502004502012f00000400b5000000b600000018000000431b95000100f1000060e100014e2f00000000000000c700000000018656130320010e7e94b72366763f000000000000000000000a000400f001001502004502012f00000400b5000000b600000018000000431bb2000100f1000060e100014e2f00000000000000c7000000000186561894e8010e7e94b72366763f000000000000000000000a000400f001001502004502012f00000400b5000000b600000018000000431bba000100f1000060e100014e2f00000000000000c7000000000186561e22c8010e7e94b72366763f000000000000000000000a0004
Same error I have I am using FMB920
@kriit24 @kemalovski
Got a similar error, it was due to the length of the data read. In the main page example of the project, this is 1024 :
// Read Data
$payload = fread($conn, 1024);
$packet = $parser->decodeData($payload);
But the frame from my FMM230 was bigger (1232 bytes).
I increased to 1500, it works now!