I need HELP send & receive via RS232
Verfasst: Freitag 16. Juli 2010, 14:15
Hello, I'm beginner and I want to build some project on ProfiLab.
First step : Reading digital inputs from microcontroller connected to PC via RS232 port 9600/8/N/1.
Protocol:
ProfiLab need to send request to microcontroler "255 128 0" in decimal (HEX "FF 80 00")
Microcontroller reply to request "255 128 0" or "255 128 1" where last byte is status digital input.
Project must read 8 digital inputs and show statuses with 8 LED's.
Commands are from "255 128 00" to "255 135 00".
I test several ways but until now I don't have any success.
We will be very grateful for some help.
Best regards
First step : Reading digital inputs from microcontroller connected to PC via RS232 port 9600/8/N/1.
Protocol:
ProfiLab need to send request to microcontroler "255 128 0" in decimal (HEX "FF 80 00")
Microcontroller reply to request "255 128 0" or "255 128 1" where last byte is status digital input.
Project must read 8 digital inputs and show statuses with 8 LED's.
Commands are from "255 128 00" to "255 135 00".
I test several ways but until now I don't have any success.
We will be very grateful for some help.
Best regards