40
Serial Streaming vs Polling
Note: In what follows, <CR> indicates an ASCII carriage return (decimal
13, hexadecimal D). Serial commands are not case-sensitive.
Polling Mode
Your ow controller was shipped to you in polling mode with a unit ID of A,
unless requested otherwise. Polling the ow controller returns a single line of
data each time you request it. To poll your ow controller, simply enter its unit ID.
Poll the device: [unit ID]<CR>
Example: a<CR> (polls unit A)
You can change the unit ID of a polling device by typing:
Change the unit ID: [current unit ID]@=[desired unit ID]<CR>
Example: a@=b<CR> (changes unit A to unit B)
You can also do this via the ow controller menu: MENU > ADV SETUP > COMM
SETUP > UNIT ID (page 38). Valid unit IDs are letters A-Z, and up to 26 devices
may be connected at any one time, as long as each unit ID is unique.
Streaming Mode
In streaming mode, your ow controller continuously sends a line of live data
at regular intervals without your having to request the data each time. Only
one unit on a given COM port may be in streaming mode at a time.
To put your ow controller into streaming mode, type:
Begin streaming: [unit ID]@=@<CR>
This is equivalent to changing the unit ID to “@”. To take the ow controller out
of streaming mode, assign it a unit ID by typing:
Stop streaming: @@=[desired unit ID]<CR>
Example: @@=a<CR> (stops and assigns unit ID of A)
When sending a command to a ow controller in streaming mode, the ow of
data will not stop while the user is typing. This may make the commands you
type unreadable. If the device does not receive a valid command, it will ignore
it. If in doubt, simply hit <CR> and start again.
Note: The default streaming interval is 50 ms, but this can be increased
by changing Register 91 while the device is in polling mode:
Set streaming interval: [unit ID] w91=[number of milliseconds]<CR>
Example: aw91=500<CR> (streams new data every 500 ms)
Serial Communications