[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  Electronics
. -> [Folder]  Microprocessors
. . -> [Subject]  Multiple data over Serial port
Home  |  Users  |  Search  |  FAQ
Register forum user name
Forgotten password?

Multiple data over Serial port

Postings by administrators only.

[Refresh] Refresh page

Posted by Catalina   (2 posts)  [Biography] bio
Date Fri 27 Jan 2012 04:01 AM (UTC)
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:


Would you PLEASE explain me how I assign the values to those variables?

Thanks a lot,

[Go to top] top

Posted by Nick Gammon   Australia  (21,405 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Fri 27 Jan 2012 04:44 AM (UTC)
You'll forgive me if I don't answer this, I hope, as you have cross-posted a very very similar question to the Arduino forum.


- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Catalina   (2 posts)  [Biography] bio
Date Reply #2 on Fri 27 Jan 2012 06:26 AM (UTC)
Hi Nick,

I'm sorry if I double post. I'm a little desperate and just looking for any possible help.. I looked at the code that zoomkat posted and search on internet and found you, that is why I re-posted here.

Is just embarrassing for me asking many simple questions if I do not really understand many things, that is why I'm looking for similar codes and change what I need.

Again, I apologize and delete this post if you want it.

I'll keep looking for more examples around.

[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


Postings by administrators only.

[Refresh] Refresh page

Go to topic:           Search the forum

[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]