Is it possible to send and recieve RS232 data from a Raspberry Pi using the Simulink packages?
1 次查看(过去 30 天)
显示 更早的评论
I am attempting to use a RPi as a remote DAQ device. I have a sensor that outputs to RS232 and want to broadcast the data over a network. I have a RS232-to-GPIO converter on my RPi. My plan was to use the Simulink package to read in data from the GPIO pins and use a UDP connection to broadcast it over a wireless network.
I know this is possible (I have it working without Simulink), but cannot seem to get it to work with Simulink. The reason I want to use simulink is so I can pre-process the data on the RPi (My current set-up is a simple pass-through using ser2net).
Basically, my question is how does one convert the GPIO values that the RPi reads to RS232 strings using Simulink?
1 个评论
Rolfe Dlugy-Hegwer
2013-8-28
I'd like to see your Simulink model that contains a GPIO Read and UDP Send block. There might be another solution depending on which other products you might have installed. Could you enter ver in the MATLAB Command Window and send me the output?
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Raspberry Pi Hardware 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!