Solved

What are these Characthers I am getting from my com1 serial port??

Posted on 2009-07-09
14
235 Views
Last Modified: 2012-05-07
I do have a machine which has a communication port the communication protocol is RS422.I did connect to the machine through my Laptop's serial port using a MOXA RS422 to RS232 converter.I did download a few software from various locations which are basically all just com 1 port monitors.All good so far.They all work so I am getting data.
My problem is that the data I get looks very strange to me I'll give you an example:

" .¬.ÿ@....h?....%e_... Ô÷?B....9....."x.....ð?....âÂ....Â÷..îpÿ..dú..@º®...¬B.......¬... ..@....@`.ِ..&..LLÄÀ.`.0...`°Ð<¬ÀÐÀ.........@Ì.ûÐÐÐÀ@·Ý·¬ÞÍ6Ú°9Èmh>.
.X\p.`p..a,.<
..°~9...4’....`...9’
!..9Ãó’`EÍ Ì! Îþ¬ð@¬.Ã>pP.........¬¬..@.....@..IH.É...ÈADÁ...80.
7¬ÀÀ.....¶...ÐÀØÛÙÚÚ-.Ü.,.¡|
.\x.&...9’.`E.}!Ï<ÃÃÃç±Âà ·3ëÇa·ÿ.ð ¬.<>.........¬........Æ...I..¬".hD..Üd.,0.À`°Ü`` ....¶.¬Øh´.¬.¸ì6°ØØ.lh.
6.p’, .&
&.9.’..ÃÃE!!ÁÅáÇÃÃÍ£ÅáF#Åó¬ð¬¬.x?...............@.@@@ 0.II..".3`À`A`..(..hHà$........Æ.ÐÈl²à3ûºz;,ìxZX.....
 .4...&.Å `L!Ì.ø ¬.Â>.........¬.......D..H.$ .".D. @ÆÌb`.h .
hØH6À.......¿ÀÚÐÐ`Ùùþ.ø
l.9`p.,2,.


Å&\!`Ã9.!Å!&.à...p? ..........@..¬......H.IH"...d.DÆ`ÀÆ.0.0ØØÀ-´À......Û...d¬Ü.°ð.a.;Ø.X...`.
°&....!R&.Å.Å Ïe’’ÃÃ×ãc×ãÅcÇÃá.ø@...>...............¬@.@..¬.¬I¬..3..DeÊÆ...H..ØÀ.¬¬à.....¬Ø.@.ÀØÛÙll..X.<,°.`’.>.<
4.,`Å ÇR ÃÃÃÃÃÃÃÃGó×óÿ.ð¬....à.. ....þ.¬..ð.`.........¬.@...@HI..@2..d..¬ÀÆ...@`¸Ø`.А........Ù.`.ØÚÐßßZl..\...,.<0.hÁ..}.`’E ..’xÅ.ˏAÃÇà ǣƬ×ãa Ãÿ.ବ
¬.ÿ...............@@D.....H:0d."À..Ã..,°.h`4À¬....¶..@. ÐÐØh°ÌèvØ.Ø..`.
...`..0’’!.aÅ 9 !×’ÃÃ~}Ç.ãÂc!3£ÍÅaE3iÎãs³ó÷¬ø¬¬.Â.ü`...............@@.....I.¬0.D."ÿø.ÿ....¬.¬¬....¬..¬..IÙ0 ..L.À.....°.l. À¬.....¬.·øùÙÛlhh6Ø.Ø.....]..’.&.’`’9Ã’E÷Å£ÃQÃãËãÅãà káý.ø.¬.<.{,....­.ýà¬. ... ................DƁ.@À0. @dEb0..( .H`0¬àà.......Àh¶ÀØÚØ..mz..
.04r...9...’.’Å }ÇG!Ã.ÃÃÅãÃÃÏ£ÃScaçCAó¬øÀ..fÇ. ............¬...@..¬.H0.d.C. 4.ÐÐà.¬.......·Àn}üÌlrX`.Í.ÿ.....¬........D ........ÌAa"..À@¬à.Û..³À. ÚÚÀh°X.`...à.
8’9’ÃG}R 9.â}·£Ãà ÇCcas&23aóaó"

Which as you can see does't make too much sense to me.I should get numbers separated by a comma I think.I just have no ideea why the machine outputs these characthers and I have no ideea what to do next.Any hint of what my next step should be would be greatly appreciated.
0
Comment
Question by:Latzi_Marian
  • 7
  • 3
  • 2
  • +2
14 Comments
 
LVL 4

Expert Comment

by:blaaze
Comment Utility
its coz your serial port is overrided by another driver, just uninstall all other drivers for the specific port that you dont want

hope it works

0
 

Author Comment

by:Latzi_Marian
Comment Utility
Same story.I did uninstall everything which might of gotten hold of the bserial port and tried again.Exactly the same story.
I also tried froma different computer and still getting the above gibberish.
0
 
LVL 2

Expert Comment

by:metableta
Comment Utility
Maybe you should try adjusting a bitrate of your RS232 port.
0
 

Author Comment

by:Latzi_Marian
Comment Utility
I've got the port settings from the machine I am connecting myself to.I did adjust the the connection settings in the software I am using.Are you saying to actually adjust the rate of the physical port itself in windows device manager?I 'll try.
0
 

Author Comment

by:Latzi_Marian
Comment Utility
No luck.The same still.I just don't understand what those ugly looking characters are coming from.Simply don't get it.I know that the machine itself is ok as I saw data collected from the machine with a vb5 application and the application interface was showing the numbers and letters comiung from the machine.Unfortunately I don't have the source code for that program.So I have to figure out a way to get intelligible data from the machine.
0
 
LVL 2

Expert Comment

by:metableta
Comment Utility
Yes, this is what I mean. Please let us know about effects.
0
 
LVL 2

Expert Comment

by:metableta
Comment Utility
Converter could be a problem. Did you try it somewhere else?
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:Latzi_Marian
Comment Utility
no i didn't try the converter in another situation.I will try it and let you know of the results.unfortunately I must finish for today as it is almost midnight and I am a bit tired.I might miss the obvious.2morrow morning I start again looking into this as this is first priority for me.thanx for now and I'll update
0
 
LVL 66

Expert Comment

by:johnb6767
Comment Utility
Portmon for Windows
http://technet.microsoft.com/en-us/sysinternals/bb896644.aspx

See if you can get a process name of the app that might be causing this.....


 
0
 
LVL 12

Expert Comment

by:atrevido
Comment Utility
This is a typical indication of a baud rate mismatch.  What baud rate is the RS422 sending at?  And what did you set your terminal emulator to receive at?  If you don't know for sure the host speed, then play with your emulator speed
0
 

Author Comment

by:Latzi_Marian
Comment Utility
Guys,

Baud rate the machine sending the data at is 1200.My PC's serial port baud rate is 1200 and the software I am receiving the data with is 1200 as well.Com 1 is not used by anything else and the RS422 to RS232 converter is not faulty as I did try with another brand new converter.I have no other means to try that converter as I have no other machine which "talks" RS422.
So summa summ arum : No idea still what is wrong but the really bad thing is that I am running out of ideas completely.
0
 

Author Comment

by:Latzi_Marian
Comment Utility
to johnb6767 I did download portmon and run it and the only process using the port is the application I am using to read from the port.So that is good no interference from another application.
0
 
LVL 12

Expert Comment

by:atrevido
Comment Utility
OK, so for 1200 baud or any baud rate for that matter, there is also stop bits and parity.
A common setting is 1200 baud, 8 bits, None (no parity) and 1 stop bit. -- aka 12008N1
But seriously, are you really sure its 1200?  Try 2400.  Try 12007E2, try them all.  Your characters are extremely indicative of a mismatch, whether that mismatch is parity, stop bits or baud rate.
0
 

Accepted Solution

by:
Latzi_Marian earned 0 total points
Comment Utility
Hi Gents,

I've got it finaly.It wasn't baud,parity or stop bits but the bloody protocol.The machine electronics schematic said RS422 and ideed I had 5 wires coming from the port.I know that RS232 can have 5 wires as well but it's less likely.Even the printed circuit board was saying port1 RS422.What I didn't realize is that the conversion to RS232 is done on the printed circuit board itself through a specialized CIP which is not the original CIP.So whoever did that forgot to update the drawing or put a label on the circuit board stating RS232.
That's it quite silly I didn't try earlier but as soon as I removed the converter and reconnect the cables to RS232 everything became perfect.Thanks for your help.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Step by step guide to Clean and Sort your windows registry! Introduction: Always remember: A Clean registry = Better performance = Save your invaluable time In this article we're going to clear our registry manually! Yes, manually! The e…
Hi there, This article summarizes what you need if you are going to set up your home or small business Network Attached Storage (NAS) to be accessible from the internet. Of course there are configuration differences based on your NAS or router ma…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

763 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

7 Experts available now in Live!

Get 1:1 Help Now