A python module for GridLAB-D data (JSON) link handshaking (over UDP and TCP)
Implemented Methods:
Notes:
code is only single threaded each processing (including delay) are blocking. Hence, the SLAVE may miss packets if it is busy processing (or waiting to send) a different reply.
@author: Bryan Palmintier, NREL 2013
Bases: json_link.json_link.json_link.JsonLinkError
Incorrect handshaking order
Bases: json_link.json_link.json_link.JsonLinkError
Malformed wrapper
Bases: builtins.OSError
Base class for exceptions in the gld_json_link module
Bases: json_link.json_link.json_link.JsonLinkError
Expected data is empty
Bases: json_link.json_link.json_link.JsonLinkError
Received a message with id older than a previously processed message
Bases: json_link.json_link.json_link.JsonLinkError
received a (reasonably) well formed error packet from the remote machine
Bases: json_link.json_link.json_link.JsonLinkError
Timeout waiting for reply
Bases: json_link.json_link.json_link._BaseLink
Implements a GridLAB-D JSON Link Master/client state machine
Internal Process for master. This version creates a simple set of 2 data points
Bases: json_link.json_link.json_link._BaseLink
Implements a GridLAB-D JSON Link Slave/server state machine
A python module for GridLAB-D data (JSON) data exchange over UDP and TCP
Implemented Methods:
– Should work with Python 2.6+ and 3.x. Tested with 2.7.2 and 3.3 – Currently only supports IPv4 – The SLAVE will handle connections from any number of masters, BUT since the
code is only single threaded each processing (including delay) are blocking. Hence, the SLAVE may miss packets if it is busy processing (or waiting to send) a different reply.
@author: Bryan Palmintier, NREL 2013
Bases: json_link.json_link.raw_xchg._BaseXchg
Implements a low-level GridLAB-D (JSON) UDP/TCP Master/client link
Bases: json_link.json_link.raw_xchg.RawXchgError
Unable to send packet
Bases: builtins.OSError
Base class for exceptions in the raw_xchg module
Bases: json_link.json_link.raw_xchg.RawXchgError
Malformed or incorrect header
Bases: json_link.json_link.raw_xchg.RawXchgError
No data read
Bases: json_link.json_link.raw_xchg.RawXchgError
Problems setting up the communication (e.g. opening the socket)
Bases: json_link.json_link.raw_xchg.RawXchgError
Timeout waiting for reply
Bases: json_link.json_link.raw_xchg._BaseXchg
Implements a low_level GridLAB-D (JSON) UDP/TCP Slave/server link