Station
Station Config¶
Introduction¶
A station config file describes the devices, tools, and corresponding configuration parameters that the host PC can utilize. The Zelos software suite can utilize these configurations to automate and streamline your development.
For those familiar with pytest, a station config file contains information similar to that found in a conftest.py
.
Compatible Tools¶
Examples¶
CAN - Linux - socketcan - can0¶
[can_link]
_target_ = "zeloscloud.links.can_link.CanLink"
config.interface = "socketcan"
config.channel = "can0"
[can_codec]
_target_ = "zeloscloud.codecs.can.CanCodec"
link = "@can_link"
dbc = "/path/to/my.dbc"
config.allow_duplicates = true
config.log_decode_error = false
config.log_decode_warning = false
CAN - Linux - socketcan - vcan0¶
[can_link]
_target_ = "zeloscloud.links.can_link.CanLink"
config.interface = "socketcan"
config.channel = "vcan0"
[can_codec]
_target_ = "zeloscloud.codecs.can.CanCodec"
link = "@can_link"
dbc = "/path/to/my.dbc"
config.allow_duplicates = true
config.log_decode_error = false
config.log_decode_warning = false
CAN - Mac OSX - pcan¶
[can_link]
_target_ = "zeloscloud.links.can_link.CanLink"
config.interface = "pcan"
config.channel = "PCAN_USBBUS1"
config.bitrate = 500000
[can_codec]
_target_ = "zeloscloud.codecs.can.CanCodec"
link = "@can_link"
dbc = "/path/to/my.dbc"
config.allow_duplicates = true
config.log_decode_error = false
config.log_decode_warning = false
CAN - Windows - pcan¶
[can_link]
_target_ = "zeloscloud.links.can_link.CanLink"
config.interface = "pcan"
config.channel = "PCAN_USBBUS1"
config.bitrate = 500000
[can_codec]
_target_ = "zeloscloud.codecs.can.CanCodec"
link = "@can_link"
dbc = "C:\\path\\to\\my.dbc"
config.allow_duplicates = true
config.log_decode_error = false
config.log_decode_warning = false
CAN - Linux - socketcan - threading controls¶
To control the threading model, pass in an asyncio event loop.
[loop]
_target_ = "asyncio.new_event_loop"
[task]
_target_ = "zeloscloud.task.Task"
loop = "@loop"
[can_link]
_target_ = "zeloscloud.links.can_link.CanLink"
loop = "@loop"
config.interface = "socketcan"
config.channel = "vcan0"
[can_codec]
_target_ = "zeloscloud.codecs.can.CanCodec"
link = "@can_link"
dbc = "/path/to/my.dbc"
config.allow_duplicates = true
config.log_decode_error = false
config.log_decode_warning = false
Custom tools¶
Integrate your station configs with your own custom tools by leveraging the API below.
The callable object described by the _target_
must be discoverable in the given environment.
API Reference¶
See zeloscloud.config.station in the API Reference.