Previous in Forum: Power Line Communications Systems   Next in Forum: Laplace transform
Close
Close
Close
13 comments
Rate Comments: Nested
Anonymous Poster

Monitoring serial communication/reverse engineering a protocol

01/27/2008 4:33 PM

Hi,

I have limited knowledge about communications and communication standards, and I am now trying to get a device (PLC) to communicate with/aquire data from an inclinometer. The problem is, I do not know what commands I should send to the inclinometer, and what data I should expect to recieve from it. The communications protocol is RS-232C (I think). I have some software that came with it, which let me see trend curves and such, but doesn't reveal anything useful communication-wise. I have found no documentation of the macros sent back and forth. So, my question is: can anyone tell me how I should go about this?

Thanks

Reply
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.
Guru
Popular Science - Weaponology - New Member United Kingdom - Member - New Member

Join Date: May 2007
Location: Harlow England
Posts: 16512
Good Answers: 670
#1

Re: Monitoring serial communication/reverse engineering a protocol

01/27/2008 5:28 PM

Hi,
Unless you have a digital storage oscilloscope or a serial data analyser and know how to use 'em.
OR
You have good manuals for the products at either end of the wire, the patience and wit to slog through them both and understand them.
Then I'm afraid you have a very difficult task with little chance of success..

My best advise in that case is to get some help from someone familiar with the devices... maybe try their tech' support or web sites...or if you buy enough product maybe a tech' rep'?

Good luck

Del

Good luck

Del

__________________
health warning: These posts may contain traces of nut.
Reply
Guru
United Kingdom - Member - Not a New Member Hobbies - Musician - New Member Hobbies - Fishing - New Member

Join Date: May 2006
Location: Reading, Berkshire, UK. Going under cover.
Posts: 9684
Good Answers: 468
#2

Re: Monitoring serial communication/reverse engineering a protocol

01/27/2008 6:33 PM

If I understand correctly, you have an inclinometer, which came with a cable for connection to a PC serial port, and some software to run on the PC. Am I right so far?

If this is the case, you should be able to get the comms protocol information from the supplier (or manufacturer). I can't see any reason why they'd not release that kind of data. Maybe there's a technical manual that they don't usually distribute (because most users don't need it).

BTW -did you get it (new) recently, or have you 'inherited' it (one way or another)?

If it's old kit, you're probably back to Del's take on it. Tricky!

__________________
"Love justice, you who rule the world" - Dante Alighieri
Reply
Guru

Join Date: Aug 2006
Posts: 4484
Good Answers: 246
#3

Re: Monitoring serial communication/reverse engineering a protocol

01/27/2008 7:09 PM

I agree with what Del and John have said. You may find that if you google the brand and model number you'll find someone who is using that model who knows its ins and outs.

Sometimes the command to get a device to do something or return data is in plain English. I used to fool with laser disc players, and some would play given some code like B2 or 2&@[[, but others would play given PLAY (imagine that!). So if all else fails, you could use a terminal program and just type anything that seems likely and see if you receive data back. If you were lucky, I suppose you might find it simply sends data in a stream once it receives a "clear to send".

You mention software. Does it communicate with the device? If so, then your job may be easier, because you could set up a laptop to emulate the device, and see what the software sends to the device.

__________________
There is more to life than just eating mice.
Reply
Anonymous Poster
#4

Re: Monitoring serial communication/reverse engineering a protocol

01/28/2008 3:58 AM

Dear Sir,

First of all if you require data monitoring only without any control output then any data logger ( RECORDER) will fulfill you purpose in that case the out put from your inclinometer ( 4-20 mA or Volt) should be connected to data logger which will monitor the data & simultaneously the DATA LOGGER should have RS232 or ethernet comm. port from where it can be connected to PC for real time data monitoring .

IN case you have PLC with SCADA for data monitoring & controlling then O/P from inclinometer should be connected to PLC i/p module .PLC should again have the communication port to connect it with PC where you can monitor the data with SCADA software.

REgards

Rakesh Bhat

Reply
Anonymous Poster
#5

Re: Monitoring serial communication/reverse engineering a protocol

01/28/2008 4:45 AM

Hi,

Thanks for all the answers! Well, I haven't mailed the manufacturer yet, but I'm about to do that now. It is a 'FAS-G' combined gyroscope and inclinometer from microstrain (www.microstrain.com), and I bought it new. I was just wondering if there was an alternarnative way to obtain the information needed, in case MicroStrain are not willing to give out any information.

Reply
Guru
Popular Science - Weaponology - New Member United Kingdom - Member - New Member

Join Date: May 2007
Location: Harlow England
Posts: 16512
Good Answers: 670
#6
In reply to #5

Re: Monitoring serial communication/reverse engineering a protocol

01/28/2008 4:51 AM

in case MicroStrain are not willing to give out any information.

What sort of barking mad company would sell you something and then not tell you how to use it?...(oh excepting Microsoft of course)

__________________
health warning: These posts may contain traces of nut.
Reply Off Topic (Score 5)
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
#7

Re: Monitoring serial communication/reverse engineering a protocol

01/28/2008 9:13 AM

If all else fails, there are "sniffer" programs out there (I don't remember the last one I used, but I do remember it was open-source) that can be used to monitor a communications link to determine what is going on (generally requiring a second computer and a hack of a connector to give taps to the #2 & #3 pins). You can see what is sent and what is received. Then you have to translate this in to something you can understand...You probably also need to monitor the other control pins as well. I have encountered MANY companies that consider such information proprietary, Del.

Reply
Guru
Popular Science - Weaponology - New Member United Kingdom - Member - New Member

Join Date: May 2007
Location: Harlow England
Posts: 16512
Good Answers: 670
#8
In reply to #7

Re: Monitoring serial communication/reverse engineering a protocol

01/28/2008 9:19 AM

I have encountered MANY companies that consider such information proprietary,

All I can say is that if I bought some equipment which didn't say what it's comms protocol was...I'd send it straight back as 'unfit for purpose'....

__________________
health warning: These posts may contain traces of nut.
Reply Off Topic (Score 5)
Anonymous Poster
#9

Re: Monitoring serial communication/reverse engineering a protocol

01/28/2008 10:09 AM

Hi again,

I contacted MicroStrain and they sent me the documentation. Thanks for all your help, though :)

- Eirik

Reply
Guru
Engineering Fields - Electrical Engineering - New Member

Join Date: Oct 2007
Location: Sour Lake, TX 30°08'59.68"N 94°19'42.81"W
Posts: 675
Good Answers: 13
#10

Re: Monitoring serial communication/reverse engineering a protocol

01/28/2008 11:07 PM

A program to communicate through RS232, on your computer is Hyper-Terminal. It is amazing (see what Del mentioned) that Microsoft allows you to use it, without paying royalties!

You may try the Hayes code for modems (AT, +++. etc) it could work for commands. Google for Hayes AT command set.

__________________
Bridge rule #1: Nobody is as good as he thinks about himself nor as dumb, as his partner thinks...
Reply
Guru
Popular Science - Weaponology - New Member United Kingdom - Member - New Member

Join Date: May 2007
Location: Harlow England
Posts: 16512
Good Answers: 670
#11
In reply to #10

Re: Monitoring serial communication/reverse engineering a protocol

01/29/2008 2:35 AM

I like your signature...
Another rule....
Of the 3 other people sitting round the table you may as well believe your partner.

__________________
health warning: These posts may contain traces of nut.
Reply Off Topic (Score 5)
Guru
Engineering Fields - Electrical Engineering - New Member

Join Date: Oct 2007
Location: Sour Lake, TX 30°08'59.68"N 94°19'42.81"W
Posts: 675
Good Answers: 13
#12
In reply to #11

Re: Monitoring serial communication/reverse engineering a protocol

01/29/2008 9:26 AM

Is it enough for advancing to the GURU stature (standing)?

...Your rule is adopted, too (as you know, we hear, learn different things, we digest them in our cognitor and...regurgitate them as our own ideas...c'est la vie...)

__________________
Bridge rule #1: Nobody is as good as he thinks about himself nor as dumb, as his partner thinks...
Reply Off Topic (Score 5)
Guru
Popular Science - Weaponology - New Member United Kingdom - Member - New Member

Join Date: May 2007
Location: Harlow England
Posts: 16512
Good Answers: 670
#13
In reply to #12

Re: Monitoring serial communication/reverse engineering a protocol

01/29/2008 1:30 PM

My Dad had a million bridge sayings... When the ops are dawdling...'play one , look at the pictures on the rest..' always made me smile...
and 'ya cannae play wha' ye havnae got' (his Dad was Scottish)

'Never send a boy on a man's errand' to be said when over trumping your opponent

Del

__________________
health warning: These posts may contain traces of nut.
Reply Off Topic (Score 5)
Reply to Forum Thread 13 comments
Copy to Clipboard

Users who posted comments:

Anonymous Poster (3); Blink (1); cwarner7_11 (1); indel (2); JohnDG (1); user-deleted-1105 (5)

Previous in Forum: Power Line Communications Systems   Next in Forum: Laplace transform

Advertisement