Skip to content

Protocol info #30

Description

@Uksa007

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};

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions