Python and Simulink files to send messages through ethernet(UDP) from linux
to MicroAutobox
- Python 2.7 (Linux)
- MATLAB 2015b (Tested on Windows 10)
Set IP address at ./sender-py/sender.py
# Bind the socket to the port
server_address = ('10.0.0.1', 5005)
...
# Address to send message
_address = ('10.0.0.2', 5005)
Set IP address at ./receiver-autobox/udp_autobox.mdl
.
You may need MicroAutobox License and MATLAB Simulink to modify this.
- Set size of array you want to send. In
sender.py
, an array with 3uint32
elements (data_notpacked
variable) is set as default. - Set corresponding
message_size
atudp_autobox.mdl
. If you want to receive the array with 3uint32
elements, setmessage_size
to 12 byte (= 3 * 4 byte each). - Enjoy!