Solved

Serial Communications Emulation with Software

Posted on 2013-05-28
6
402 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 83

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 83

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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 

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 83

Expert Comment

by:Dave Baldwin
ID: 39245294
0

Featured Post

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
pc, laptop  monitor connection configurations
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

631 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