Hello All, I am considering making an Arduino RS-232 ‘translator’. What I mean by that is, Where I work we are in the process of implementing a new business software system and I am having problems getting our parcel scales in the shipping department to communicate with the new software. These scales all use RS-232 interface, and I know the scales are definitely not faulty because I can read data from them in hyper-terminal and we never had a problem with them in the old software. I am pretty confident the Serial Settings (COM, Baud, Parody, etc) are good as well because I confirmed in hyper-terminal. I configured the new software to the serial setting and was still unable to get it to communicate.
When I contacted the software vendor they informed me their software only supports NCI scales (Something they never told us in advance ><), unfortunately all the scales we have are Fairbanks. I pulled the user manuals for both scales from the web and compared the serial data format. I found the following which I think might key to the problem…
The NCI Scales work as follows…
W<CR> //Sent Serially from PC to Scale initiating a request
//Scale Response
<LF>xxxx.xxuu<CR>
<LF>hh<CR><ETX>
//Results
//Returns decimal weight with units plus scale status.
Alternately, the fairbanks scales work as follows…
<CR> //Sent Serially from PC to Scale (no preceding W character)
//Scale Response
xxxx.xx <SP> <l or k> <b or g> <SP> <G or g> <R or r> <SP> <SP> <CR> <LF> <EOT>
So my thinking is, the new business software is serial sending ‘requests’ and are unable to get a response from our scale, and even if I was able to get past that point, the data would not be in the correct format anyhow. So i got to thinking, if I built an Arduino with 2 serial ports (‘input’ & ‘output’) to act as a go-between, I could give our scale the request data it wants and give our software the data it wants in the correct format with the Arduino handling all the translating.
I just ordered a few of the MAXX3322, is it possible to have an Arduino communicate with 2 devices over RS232 simultaneously? Does anyone see any major showstoppers for my plan.
I apologize in advance for posting this BEFORE i have tried anything, I normally like to exhaust all my attempts before bugging others for help, but this problem was just discovered today, and the Maxx 3322 IC’s i ordered won’t be here for a bit. Every day the scales in our shipping department are down is a day of slowed/lost productivity.
Thank you for your consideration.