Filter löschen
Filter löschen

Is it possible to send and recieve RS232 data from a Raspberry Pi using the Simulink packages?

1 Ansicht (letzte 30 Tage)
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 Kommentar
Rolfe Dlugy-Hegwer
Rolfe Dlugy-Hegwer am 28 Aug. 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?

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Raspberry Pi Hardware finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by