Solved

Serial Communications Emulation with Software

Posted on 2013-05-28
6
396 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
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

 

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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Suggested Solutions

In this article you will get to know about pros and cons of storage drives HDD, SSD and SSHD.
This article outlines why you need to choose a backup solution that protects your entire environment – including your VMware ESXi and Microsoft Hyper-V virtualization hosts – not just your virtual machines.
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

740 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