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
  • No its ok, i am using a max232 transceiver, its all connected and i can output and input characters through rs232. The idea of the project is for a wireless weather station. i am in charge of programming the wireless side and i will receive a string of 144 bits (18 bytes) each byte of which, will represent a character. I am struggling to write c code that can handle the bytes and then send them wirelessly using the nrf24e1. Is it possible to just use getchar() to receive an individual character as i will be connected to the sensor side of the weather station through Rx/Tx pins configures as rs232 8 bits and 1 parity? or is there a better way of doing this?

    thanks for your help.

Reply
  • No its ok, i am using a max232 transceiver, its all connected and i can output and input characters through rs232. The idea of the project is for a wireless weather station. i am in charge of programming the wireless side and i will receive a string of 144 bits (18 bytes) each byte of which, will represent a character. I am struggling to write c code that can handle the bytes and then send them wirelessly using the nrf24e1. Is it possible to just use getchar() to receive an individual character as i will be connected to the sensor side of the weather station through Rx/Tx pins configures as rs232 8 bits and 1 parity? or is there a better way of doing this?

    thanks for your help.

Children