Previous in Forum: General Hardware Construction   Next in Forum: Hard Hats for People with Hearing Loss
Close
Close
Close
9 comments
Rate Comments: Nested
Associate

Join Date: Aug 2006
Posts: 30

Connecting Two Devices Using Hyper Terminal

12/05/2007 10:30 PM

Hi every one. I have one device with RS232 remote control. as user manual "

To control the receiver remotely, connect a straight through serial cable between the Serial Port (see Figure B--1) on the rear of the receiver and the RS232 port (COM port) of a PC or other terminal. The communications protocol is:38400-baud, no parity, 8 data bits, 1 stop bit (38400,N, 8, 1)" I had set as above and connected my PC with device using Hyper terminal , reset device and I can see the noticed on Hyper window as on LCD's device.

Now as manual I have to set serial command "All of the serial commands begin with an ASCII 2 character <STX> and end with an ASCII 3 character <ETX>. The command itself is a three-character string (in UPPER CASE)." and "Command String Format,Command with data <STX><CMD><(><DATA><)><XSM><ETX>; Command without data <STX><CMD><!><XSM><ETX>" where CMD is command with list of commands type in manual.But when I typed these command on Hyper, nothing display on window and I wonder that I typed text not ASCII so cannot send command to device.

I don't have experience in this problem. Does anyone can help me to solve this issue ? Thank in advance.

__________________
maufi
Register to Reply
Pathfinder Tags: hyper terminal
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.
Member

Join Date: Sep 2007
Location: Denver, Colorado, USA
Posts: 6
#1

Re: Connecting Two Devices Using Hyper Terminal

12/06/2007 11:53 PM

Don't type the < and > characters in hyperterminal. For example, if the command is BOB and the data is 1234, then type

STXBOB(1234)XSMETX

If the command is BOB with no data, type

STXBOB!XSMETX

Hope that helps.

Register to Reply
Associate

Join Date: Aug 2006
Posts: 30
#3
In reply to #1

Re: Connecting Two Devices Using Hyper Terminal

12/07/2007 4:00 AM

Thank for your comment. I had tried but still cannot connect to device. I wonder that as manual "All of the serial commands begin with an ASCII 2 character <STX> and end with an ASCII 3 character <ETX>." do I have change the text that I type in hyper terminal to ASCII code?

at First I couldn't see the character I typed on hyper so when I ticked in "send line ends with line feed" and "Echo typed characters locally" in ASCII setup tab in Hyper then I could see the character on hyper window but nothing happen.

Thank for your help.

__________________
maufi
Register to Reply
Power-User

Join Date: Mar 2007
Posts: 284
Good Answers: 6
#2

Re: Connecting Two Devices Using Hyper Terminal

12/07/2007 3:35 AM

First try rechecking Hyperterminal's settings:

Which COM port?

Speed and Format

Is the program in Send or in Receive setting.

Are you using RTS/CTS - XON/XOFF - None?

Also, are you using a direct connect cable (2-2, 3-3) or a 2-3, 3-2 cable? Some control connections prefer one, others prefer the other.

__________________
Constant change is here to stay!
Register to Reply
Associate

Join Date: Aug 2006
Posts: 30
#9
In reply to #2

Re: Connecting Two Devices Using Hyper Terminal

12/10/2007 5:25 AM

as I said above , all the comport, speed and format I did as manual, 38400 b/s; no parity, 8 data bits, 1 stop bit (38400,N, 8, 1).and I tried one after the other hard ware, XON/XOFF and none and cable is straight through serial cable.

__________________
maufi
Register to Reply
Commentator

Join Date: Dec 2006
Location: india
Posts: 63
#4

Re: Connecting Two Devices Using Hyper Terminal

12/07/2007 6:40 AM

as per your statement your reciver is dedicated one (may be microcontroller base or pc base) and it have lcd display or its out put input display,

your are connecting this controller reciver with pc with stright controller, and how can you monitor your instruction on it.

in normal case you have to check controller output on hyper terminal. els you need supprorting software for the same from controller /reciver supplier.

most of the dedicated controller require such software and data cable for the same.

as you are considering only tX and rX what about cts rts and dsr line as so many controller required that lines.

if establish link between reciver and pc and config your system for perticular compport and reciver is capable to communicate ( i mean sutabel protocol and software) at list it will show some thing may be unreadeble data.

check it

Register to Reply
Guru
Panama - Member - New Member Hobbies - CNC - New Member Engineering Fields - Marine Engineering - New Member Engineering Fields - Retired Engineers / Mentors - New Member

Join Date: Dec 2006
Location: Panama
Posts: 4273
Good Answers: 213
#5

Re: Connecting Two Devices Using Hyper Terminal

12/07/2007 9:22 AM

Try replacing the "STX with "ALT002" and the "ETX" with "ALT003". Or maybe only one zero after the "ALT" key. Also, you may have to try both "ALT" keys on your keyboard- some systems interpret them as two separate keys, others see them as the same.

Register to Reply
Associate
United States - Member - New Member

Join Date: Nov 2007
Location: Land of Ahs
Posts: 36
#6

Re: Connecting Two Devices Using Hyper Terminal

12/07/2007 10:35 AM

Do u have a 25 pin or 9 pin connector. U'll need a null modem in between a 9->25 pin connector change or vice versa. Otherwise u gotta tell ht which serial port ur connected to. You also need to make sure your serial port is active in your computer's BIOS.

__________________
Is it possible to float on light waves?
Register to Reply
Power-User

Join Date: Jun 2007
Location: Oxford, UK
Posts: 145
Good Answers: 3
#7

Re: Connecting Two Devices Using Hyper Terminal

12/07/2007 12:17 PM

ASCII characters below ASCII(31) do not print. ASCII (32) is the space character. I have written some programs using Visual Basic to control production equipment. What you want to do seems easy and I am prepared to make a small program that will enable you to send commands to your device and display the responses. To achieve this I will need additional information regarding what you device echoes back. For example, when you send a command 'Are you there?, is that command echoed back 'Are you there? Yes

If you would like me to help please advise me. I would need a copy of the manual or to see the commands, responses, formats, handshaking and so on.

__________________
Tony Aston
Register to Reply
Commentator
United States - Member - Les Etats Unis

Join Date: May 2007
Location: Sacramento, California
Posts: 61
#8

Re: Connecting Two Devices Using Hyper Terminal

12/07/2007 4:04 PM

I do not quite understand I think, but I use rs232 communications semi-regularly. First off I get the pin out diagrams of the two ports to connect together. Then I make sure the cable(I make my own) connects the appropriate pins of each port together. Then I configure the COM Port on the PC(usually do not have to configure the nonPC port). I then connect the devices with the cable and reboot the PC. Depending on the devices sometimes proprietary software is required or hyper terminal alone will work.

If all is configured/crafted properly the devices should talk. The most common problem I have come across with PC to other device rs232 communication are:

1) the 'other' device (ie nonPC) does not have a standard pin out diagram.

2) the communication link does not automatically re-establish itself when the nonPC device is powered off then back on or the cable is disconnected and reconnected.

3) the cable is not the right type (refer to #1).

My advice double check your pin outs make sure the cable is the correct cable for the job. Double check your configuration of the PC COM port. reboot your PC after everything is connected and configured properly.

__________________
No trees or ecological systems were harmed in the creation or transmission of this message. However, a large number of electrons were horribly inconvenienced.
Register to Reply
Register to Reply 9 comments
Copy to Clipboard

Users who posted comments:

cwarner7_11 (1); dovy (1); Electron Oasis (1); jarunmagnet (1); maufi (2); RidetheWave (1); tkirk (1); Tony Aston (1)

Previous in Forum: General Hardware Construction   Next in Forum: Hard Hats for People with Hearing Loss

Advertisement