EZ Serial Get Device Name Command

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
aglier
Level 4
Level 4
25 replies posted 25 sign-ins 10 replies posted

Hi everyone,

 

as this is my first post, I hope I selected the right channel.

 

I'm writing a driver for .NET applications using EZ Serial binary commands.

The system_query_firmware_version (/QFV, ID=2/6) command returned me, that I'm using API Version 1.3

Now in text mode when I'm sending "GDN" I will get the response with the expected result.

However, the binary command for Get device name returns me an error event that refers to ProtocolInvalidCommandLength.

But the actual outgoing bytes are "C0 00 04 10 6d" hexadecimal. Which is exactly what it is also printed in the example inside the  user guide (page 18)

 

What am I doing wrong? Is there an update on the documentation?

It feels like the documentation does not fit the firmware.

 

Thank you in advance.

 

Alex

 

0 Likes
1 Solution
aglier
Level 4
Level 4
25 replies posted 25 sign-ins 10 replies posted

I'm sorry, I just found the answer right after posting this.... 😄

I was missing to pass in the Device Type argument, this is why the command had the wrong length.

 

View solution in original post

1 Reply
aglier
Level 4
Level 4
25 replies posted 25 sign-ins 10 replies posted

I'm sorry, I just found the answer right after posting this.... 😄

I was missing to pass in the Device Type argument, this is why the command had the wrong length.