Back to Specification
Physical Level

VSCP over RS-485/RS-422

This is a description of a low level protocol for RS-485. The protocol is a server based protocol and is low speed but very cheap to implement. At a very low additional cost a CAN network with full VSCP functionality and server less functionality can be constructed and this is recommended for the majority of systems.

Baudrate:** 9600 (or any other suitable baudate)
Format:** 8N1 for packages. 9N1 for address.

Addressing

Addressing is done with nine bit addressing. Address 0 is reserved for the server and the rest of the addresses are free to use for clients. Addresses are hardcoded within devices and each device should have its own unique address.

Packet format

Nine bit address
Operation
0 = No operation
1 = Level I event to/from node.
2 = Poll for event. (No data content follows, just CRC).
3 = No events to send (No data content follows, just CRC).
Flags + bit nine of the class
bit 0-3 - Number of databytes
bit 4 - Bit nine of Class.
bit 5-7 - reserved and should be set to 0.
Class (Lower 8 bits).
Type
Data byte 0
Data byte 1
Data byte 2
Data byte 3
Data byte 4
Data byte 5
Data byte 6
Data byte 7
Packet CRC (counted from address (low 8-bits of it).
DOW checksum is used http://www.vscp.org/wiki/doku.php?id=vscp_specification_crc_polynoms.

If a node has a message to send it sends it directly after the poll message. The node should respond within one maximum packet time (14 * 8 * 104uS = 10 ms. Note that the event may be addressed to another node on the segment not only to the host.

If the node has no events to send it can either not reply to the poll or reply with “No Events to send” which is the preferable way.

The messages is standard VSCP Level I events in every other aspect.

A master on a 485 segment must check for new nodes on regular intervals. With 127 possible nodes this process could take 1.3 seconds to perform. Instead of doing all this at once it may be better to spread it over the standard polling range. That is to do a full polling of all active nodes and then try to discover a new node on an unused address etc etc.

vscp_specification_-_vscp_level_i_over_rs-485.txt · Last modified: 2010/08/19 01:55 (external edit)
Public Domain
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0