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

Protocol info #30

Open
Uksa007 opened this issue Jun 4, 2023 · 1 comment
Open

Protocol info #30

Uksa007 opened this issue Jun 4, 2023 · 1 comment

Comments

@Uksa007
Copy link

Uksa007 commented Jun 4, 2023

Hi,

When sending print(p.get_values()) the PYLON low voltage Protocol RS485 document doesn't detail how I should I reply,
unless I'm missing it, anyone have any details what to send in the reply?
The normal fixed point reply does not work?

EDIT worked it out FF means all modules so you need to reply with INFO Command of the number of modules eg 01 not the normal command of the ADR.

It sends INFO of FF ( ALL modules, normally specifies 02)
7E 20 02 46 42 E002 FF CKSM 0D

I'm using this protocol document

print(p.get_values_single(2))
It sends INFO of 02 as per protocol
If I reply as per the protocol I get a valid output.

// get analog value fixed point
print(p.get_values_single(2)) sends:
{0x7E,0x32,0x30,0x30,0x32,0x34,0x36,0x34,0x32,0x45,0x30,0x30,0x32,**0x30,0x32**,0x46,0x44,0x33,0x33,0x0D}
This one is as per the protocol asking for fixed point INFO is 02 

 // get analog value, float point?
This one I'm guessing is asking for float point(not is spec sheet) **INFO is FF (ALL Modules)**
print(p.get_values()) sends:
{0x7E,0x32,0x30,0x30,0x32,0x34,0x36,0x34,0x32,0x45,0x30,0x30,0x32,**0x46,0x46**,0x46,0x44,0x30,0x39,0x0D};

@Uksa007 Uksa007 changed the title AssertionError Protocol info Jun 6, 2023
@Frankkkkk
Copy link
Owner

Frankkkkk commented Jun 16, 2023

Hi @Uksa007 , I'm sorry but I don't really understand the question; what is your problem ?
Thanks !

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