Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem setting device id #2

Open
aslakjo opened this issue Jan 21, 2022 · 1 comment
Open

Problem setting device id #2

aslakjo opened this issue Jan 21, 2022 · 1 comment

Comments

@aslakjo
Copy link

aslakjo commented Jan 21, 2022

Hi

I downloaded your sample and set it up with a AL1950 and a OPD100. However i can only get 4 bytes where i was expecting 32 from the PDin value. Here

if len(pdin) != PD_IN_SIZE:

I have traced the problem to not being able to set the device id correctly. Here;

def setDeviceID(self, vendor_id, device_id, vdsm):

I see that the example is a bit old. Does it still work out of the box with new hardware?

You can probably reproduce the problem with this postman collection. Perform setdevice id, and read device id. I will still get 1260 not 1267.

@ifm-slang
Copy link

1276 is the "TOOL" DeviceID of 1260 (seems to be correct in py script) ... not sure if it is a typo in your message or if you really tried to set 1267 instead of 1276

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants