I'm trying to communicate with an old device that operates at 1200 baud only. The tablet I'm using to control the old device will only go as low as 2400 baud. Any ideas on how to bridge this gap would be greatly appreciated.
You say "the tablet". As in, a pre-fabricated device that you can run "apps" on, but have no actual control of the hardware? Then I'm afraid this cannot work.
The obvious solution, and possibly the only feasible one, would be bit-banging. 1200 Baud is slow enough to do entirely in software if you have direct control of port pins and a timer or two. But that won't be possible when all you can do is write an app in some high-level language, that talks to existing lower-level drivers via a nice API.
In that case you'll need a gateway device between the two existing ones, which talks 1200 baud to one side, and some other, possibly much higher baudrate to the other. It may need some buffering of fast messages going to the slow side.
The obvious solution, and possibly the only feasible one, would be bit-banging to me the obvious solution would be to run whatever clock the UART is driven by at half the speed.
Thank you to each of you responding to this thread. I'm traveling at the moment, and don't have time for much of a reply. I'll read carefully and respond when possible. Again, thank you all for giving me your combined knowledge on this thread.
Alright, back to it. I'm using an industrial tablet with a RS-232 port and running CE6. The included software only slows to 2400.
now I realize the only one thing to say is
WHAT DOES THIS HAVE TO DO WITH KEIL?
A very valid point.
I do sometimes wonder what the proportion of Keil related (vs unrelated) questions is on this forum.
A forum needs a critical mass of posts to be meaningful to visit. So if filtering too hard, no one will visit the forum and care to write answers.
Better to allow a bit of off-topic questions and if the volume becomes too high add subforum or filtering support. 8052.com is an example of a forum that got too low number of posts, making everyone stop visiting the site.
Maybe you need to be talking to the vendor of the tablet, or writing the drivers to suit your needs? Got to presume someone selling a WinCE device has some people with some programming competence behind them.
Alternatively why not make a small board that converts/bridges serial ports of different rates. I've seen people use 30 cent Cortex-M0 parts to mitigate between serial rates and formats. You'd probably want buffering and flow control to hold off the faster device, but not an unduly complicated set of requirements.
View all questions in Keil forum