Solved

Serial Communications Emulation with Software

Posted on 2013-05-28
6
386 Views
Last Modified: 2013-06-13
I need to emulate a Symbol PDT Gun communicating with an application over a serial line.  I have monitored the communication between the devices and found the the device sends 0x"32", 0x"32", 0x"2d", 0x"ff", 0x"ff" before it receives a response from the application.  When I send this character stream from a program on a different computer, I get no response.  Any suggestions on what I may be missing?  The normal device wiring configuration has CTS wired to RTS (pins 7 to 8) and DTR is grounded (pins 4 to 5).
0
Comment
Question by:ceepaulw
  • 3
  • 3
6 Comments
 
LVL 82

Expert Comment

by:Dave Baldwin
ID: 39202753
DTR may be grounded on your device but that would be very unusual for a computer because it shorts on the line driving it on the other end.  For computer to computer, try the "RS232 null modem with full handshaking" on this page: http://www.lammertbies.nl/comm/cable/RS-232.html
0
 

Author Comment

by:ceepaulw
ID: 39206473
Thank you, that was a lot to read.  Maybe I've gotten ahead of myself.  I have a computer talking with a bar coded reader.  The device is defined as a printer in the computer.  I want to replace the bar  code reader with a computer program.  I have intercepted the data transfer and have replaced it in a program but when I send the first packet, there is no response. I am trying to set up CTS and RTS as well as DTR combination with no luck.  What I tried to describe above was what the original wiring had-it had a DE9 connector on one end and a DB25 on the other.

How can I figure out how to interface with the hardware on the computer as some sort of hardware interaction must be taking place Out-of-Band.  One person suggested that I need a circuit board to accomplish this.

Thanks.
0
 
LVL 82

Expert Comment

by:Dave Baldwin
ID: 39206575
I don't know what you mean by "Out-of-Band".  I do know that Windows serial port drivers implement handshaking to control both sending and receiving.  In Device Manager, you can right-click on your 'Communications Port' and select Properties.  On the Port Setting tab, you can set the default values for that port.  That would be for setting up another computer to talk to the one that the bar code reader was attached to.

Now if you are talking about replacing the bar code reader with a program on the Same computer, then you have to intercept the calls to that serial port which is much more difficult.
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Accepted Solution

by:
ceepaulw earned 0 total points
ID: 39231524
I found a program "com0com" that enabled me to easily try different combinations of dtr, dsr, etc.  Once the right signals were wired or shorted, the computer responded to the data from the other computer.  By out-of-band I was referring to signalling not visible in the data recorder.
0
 

Author Closing Comment

by:ceepaulw
ID: 39243846
I spent considerable time to also search for solutions in other areas.  One of these panned out.
0
 
LVL 82

Expert Comment

by:Dave Baldwin
ID: 39245294
0

Featured Post

Save on storage to protect fatherhood memories

You're the dad who has everything. This Father's Day, make sure your family memories are protected. My Passport Ultra has automatic backup and password protection to keep your cherished photos and videos safe. With up to 3TB, you have plenty of room to hold the adventures ahead.

Join & Write a Comment

this article is a guided solution for most of the common server issues in server hardware tasks we are facing in our routine job works. the topics in the following article covered are, 1) dell hardware raidlevel (Perc) 2) adding HDD 3) how t…
I use more than 1 computer in my office for various reasons. Multiple keyboards and mice take up more than just extra space, they make working a little more complicated. Using one mouse and keyboard for all of my computers makes life easier. This co…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now