We had a hardware failure and one of the controllers went kaboom. This controller receive serial data from a piece of software installed in one of the PC's. A co-worker years ago made a controller based on PIC and studied all the data coming from the software. Basically in a PC you type 54 different variables, hit send and the software spits out 225 variables in a format like this:
###### ; ##### ; ### ; ## ; #### ; ##### ; ##### ; #### ; ..... ; # ; ##### ; FIN
##### are 224 random numbers based on the inputs on the PC. These are only numbers (no letters or symbols) and up to 5 numbers per variable (from 0 to 99999)
FIN is to indicate the end of the data transmission.
After reading and copying your Buffering input code from http://mushclient.com/serial, I have the info in the arduino, I only change case '\n' for case ';' and MAX_INPUT to 224.
Now my real problem... If the variables are named:
Variable_1
Variable_2
Variable_3
...
Variable_224
Would you PLEASE explain me how I assign the values to those variables?
Thanks a lot,
Cataina
###### ; ##### ; ### ; ## ; #### ; ##### ; ##### ; #### ; ..... ; # ; ##### ; FIN
##### are 224 random numbers based on the inputs on the PC. These are only numbers (no letters or symbols) and up to 5 numbers per variable (from 0 to 99999)
FIN is to indicate the end of the data transmission.
After reading and copying your Buffering input code from http://mushclient.com/serial, I have the info in the arduino, I only change case '\n' for case ';' and MAX_INPUT to 224.
Now my real problem... If the variables are named:
Variable_1
Variable_2
Variable_3
...
Variable_224
Would you PLEASE explain me how I assign the values to those variables?
Thanks a lot,
Cataina