This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

settng up rs232 variable

Hi, can anyone tell me how i would set up a variable that expects a certain amount of data to be received through rs232.

i.e. to receive 18 bytes of data only once the the rx pin has been set to input.

thanks guys

Parents
  • because what comes through the UART is the data from the sesor board of the weather station, i.e. the temperature, pressure etc which is placed on a rooftop. this comes to my transmitter through UART which i then have to transmit to the receiver which outputs this data to an ethernet board that is connected to the database. I agree getchar is not great...but im unfarmiliar with embedded c and need some basic direction.

Reply
  • because what comes through the UART is the data from the sesor board of the weather station, i.e. the temperature, pressure etc which is placed on a rooftop. this comes to my transmitter through UART which i then have to transmit to the receiver which outputs this data to an ethernet board that is connected to the database. I agree getchar is not great...but im unfarmiliar with embedded c and need some basic direction.

Children