Device Interface
SPAD.neXt device interface V2
Last updated
Was this helpful?
SPAD.neXt device interface V2
Last updated
Was this helpful?
SPAD.neXt can communicate with external devices like e.g. Arduino/Teensy via a very simple line based communication.
Request and reply on both sides will follow this format:
<ChannelId>,<Param1>[,...,<ParamN>];
Thoughout the description of the device interface the following syntax will be used:
, is the seperator for parameters
; is the terminator of a command
/ is used as escape character
[ ... ] defines optional parameter
<Name> defines an actual value. This can be a number or a string (without quotes!)
Anything not enclosed in <> defines the exact string (without quotes!)
If , / ;
are used within a parameter, they have to be escaped by a leading /.
E.g.
15,Hello/, from Arduino;
0
General Commands
SPAD <--> Device
1
Data Commands
Device -> SPAD
2
SPAD.neXt Events
SPAD -> Device
3
Debug
Device -> SPAD
4
Simulation Event
Device -> SPAD
5
Data Channel
SPAD -> Device
6
Device LED updates
SPAD -> Device
7
Device Display updates
SPAD -> Device
8
Device Input
Device -> SPAD
9
(reserved for future use)
10 .. 49
Dedicated Data Channels
SPAD <-> Device
All <tag> or <targettag> are limited to the charactersA-Z,0-9,_
For the specs of the Serial V1 protocol (still supported but deprecated) please see .