Is it possible to send and recieve RS232 data from a Raspberry Pi using the Simulink packages?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentario
Rolfe Dlugy-Hegwer
el 28 de Ag. de 2013
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?
Respuestas (0)
Ver también
Categorías
Más información sobre Raspberry Pi Hardware en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!