Author Topic: Debugging rs232  (Read 142 times)

Offline kamelryttarn

  • High Voltage Experimenter
  • **
  • Posts: 87
  • Karma: +0/-0
    • View Profile
Debugging rs232
« on: September 23, 2018, 05:03:17 PM »
I found a small, embedded machine that I wanted to turn in to a small firewall. It's an x86-based industrial computer with 3xNIC and a 9 pin D-sub connector for console access. The OS  and applications are stored on a CF card and with the software I intend to use I needed to get the serial access going so I could make the initial configuration but no matter what baud rate I tried I could not get it to work. 1200 baud was the "best" but still only gibberish so I had to figure out a way to examine the signaling on the serial port and determine the actual baud rate from that. I found some web sites that explained how an oscilloscope could be used so I tried it. It worked OK but I wanted to get more data and also the signal so I connected the transmit pin to an optocoupler (through a constant current limiting device) and fed the signal to my logic analyzer. At first I tried the "auto baud rate function" and a lot of different settings but then I looked at the signals and looked for the "shortest time" or "highest frequency" which was 680Hz. Half of that time equals 1360 which is the baud rate that was used. After I figured that out I could decipher the information sent on the serial port and start configuring my device.

I thought this information could be useful to others.

Offline profdc9

  • High Voltage Technician
  • ***
  • Posts: 180
  • Karma: +4/-0
    • View Profile
Re: Debugging rs232
« Reply #1 on: September 23, 2018, 11:17:44 PM »
It would be cool to take a USB protocol chip such as the FT232H and write some software for it so it would try to figure out what kind of protocol it is looking at and then you could connect to it using one of the many protocols it implements, UART, SPI, I2C, JTAG, etc.   Sort of a universal low speed protocol translator device.  A technique like this could be used to try to figure out what kind of signal and the data rate.

Dan

I found a small, embedded machine that I wanted to turn in to a small firewall. It's an x86-based industrial computer with 3xNIC and a 9 pin D-sub connector for console access. The OS  and applications are stored on a CF card and with the software I intend to use I needed to get the serial access going so I could make the initial configuration but no matter what baud rate I tried I could not get it to work. 1200 baud was the "best" but still only gibberish so I had to figure out a way to examine the signaling on the serial port and determine the actual baud rate from that. I found some web sites that explained how an oscilloscope could be used so I tried it. It worked OK but I wanted to get more data and also the signal so I connected the transmit pin to an optocoupler (through a constant current limiting device) and fed the signal to my logic analyzer. At first I tried the "auto baud rate function" and a lot of different settings but then I looked at the signals and looked for the "shortest time" or "highest frequency" which was 680Hz. Half of that time equals 1360 which is the baud rate that was used. After I figured that out I could decipher the information sent on the serial port and start configuring my device.

I thought this information could be useful to others.

High Voltage Forum

Re: Debugging rs232
« Reply #1 on: September 23, 2018, 11:17:44 PM »

 


* Recent Topics and Posts

post Re: My First DRSSTC
[Dual Resonant Solid State Tesla coils]
sjsimmo
Today at 12:19:32 AM
post Re: TO-247 IGBT Comparison for High Frequency & Paralleled Operation
[Dual Resonant Solid State Tesla coils]
Laci
December 18, 2018, 10:30:34 PM
post Re: TO-247 IGBT Comparison for High Frequency & Paralleled Operation
[Dual Resonant Solid State Tesla coils]
Mads Barnkob
December 18, 2018, 09:42:25 PM
post Re: TO-247 IGBT Comparison for High Frequency & Paralleled Operation
[Dual Resonant Solid State Tesla coils]
Laci
December 18, 2018, 09:25:26 PM
post Re: My First DRSSTC
[Dual Resonant Solid State Tesla coils]
Mads Barnkob
December 18, 2018, 12:50:45 PM
post Re: My First DRSSTC
[Dual Resonant Solid State Tesla coils]
sjsimmo
December 18, 2018, 10:45:01 AM
post Re: My First DRSSTC
[Dual Resonant Solid State Tesla coils]
Mads Barnkob
December 18, 2018, 09:47:51 AM
post Re: TO-247 IGBT Comparison for High Frequency & Paralleled Operation
[Dual Resonant Solid State Tesla coils]
sjsimmo
December 18, 2018, 03:18:05 AM
post Re: My First DRSSTC
[Dual Resonant Solid State Tesla coils]
sjsimmo
December 18, 2018, 02:08:57 AM
post Re: TO-247 IGBT Comparison for High Frequency & Paralleled Operation
[Dual Resonant Solid State Tesla coils]
Fumeaux
December 17, 2018, 10:22:31 PM
post TO-247 IGBT Comparison for High Frequency & Paralleled Operation
[Dual Resonant Solid State Tesla coils]
Laci
December 17, 2018, 09:36:03 PM
post Re: spectral analysis of Tesla coils
[Spark gap Tesla coils]
Mads Barnkob
December 17, 2018, 02:20:01 PM
post Re: DRSSTC design guide - progress report
[Dual Resonant Solid State Tesla coils]
Mads Barnkob
December 17, 2018, 01:13:34 PM
post Re: spectral analysis of Tesla coils
[Spark gap Tesla coils]
Uspring
December 17, 2018, 01:02:35 PM
post Re: DRSSTC design guide - progress report
[Dual Resonant Solid State Tesla coils]
Uspring
December 17, 2018, 12:33:07 PM
post Re: My First DRSSTC
[Dual Resonant Solid State Tesla coils]
Mads Barnkob
December 17, 2018, 12:26:08 PM
post Re: Building of my first tesla coil
[Dual Resonant Solid State Tesla coils]
Mads Barnkob
December 17, 2018, 10:42:17 AM
post Re: My First DRSSTC
[Dual Resonant Solid State Tesla coils]
sjsimmo
December 17, 2018, 06:49:52 AM
post Re: Building of my first tesla coil
[Dual Resonant Solid State Tesla coils]
Skylex86
December 16, 2018, 09:09:13 PM
post Re: Welcome new members, come say hello and tell a little about yourself :)
[General chatting]
Mads Barnkob
December 16, 2018, 07:48:55 PM
post Re: Welcome new members, come say hello and tell a little about yourself :)
[General chatting]
NordicGaben
December 16, 2018, 06:13:54 PM
post spectral analysis of Tesla coils
[Spark gap Tesla coils]
Physikfan
December 15, 2018, 02:24:20 PM
post Re: Welcome new members, come say hello and tell a little about yourself :)
[General chatting]
DashApple
December 14, 2018, 10:21:25 PM
post Re: DRSSTC design guide - progress report
[Dual Resonant Solid State Tesla coils]
Mads Barnkob
December 14, 2018, 08:38:52 PM
post Re: DRSSTC design guide - progress report
[Dual Resonant Solid State Tesla coils]
Uspring
December 13, 2018, 12:23:30 PM
post Re: My First DRSSTC
[Dual Resonant Solid State Tesla coils]
sjsimmo
December 12, 2018, 11:57:02 PM
post Re: My First DRSSTC
[Dual Resonant Solid State Tesla coils]
Mads Barnkob
December 12, 2018, 01:15:30 PM
post Re: DRSSTC design guide - progress report
[Dual Resonant Solid State Tesla coils]
Mads Barnkob
December 12, 2018, 01:00:34 PM
post Re: My First DRSSTC
[Dual Resonant Solid State Tesla coils]
sjsimmo
December 12, 2018, 11:45:08 AM
post Re: My First DRSSTC
[Dual Resonant Solid State Tesla coils]
Mads Barnkob
December 11, 2018, 09:13:49 AM
post Re: My First DRSSTC
[Dual Resonant Solid State Tesla coils]
sjsimmo
December 11, 2018, 12:03:54 AM
post Re: My First DRSSTC
[Dual Resonant Solid State Tesla coils]
Mads Barnkob
December 10, 2018, 12:25:15 PM
post Re: My First DRSSTC
[Dual Resonant Solid State Tesla coils]
sjsimmo
December 10, 2018, 11:13:38 AM
post Re: My First DRSSTC
[Dual Resonant Solid State Tesla coils]
Mads Barnkob
December 10, 2018, 09:18:24 AM
post Re: First SSTC build, need help troubleshooting
[Solid state Tesla coils]
Mads Barnkob
December 10, 2018, 09:13:37 AM
post Re: My First DRSSTC
[Dual Resonant Solid State Tesla coils]
sjsimmo
December 10, 2018, 02:18:59 AM
post Re: First SSTC build, need help troubleshooting
[Solid state Tesla coils]
sjsimmo
December 09, 2018, 11:09:34 PM
post Re: First SSTC build, need help troubleshooting
[Solid state Tesla coils]
Fumeaux
December 09, 2018, 10:23:38 AM
post Re: My First DRSSTC
[Dual Resonant Solid State Tesla coils]
sjsimmo
December 09, 2018, 06:05:02 AM
post Re: First SSTC build, need help troubleshooting
[Solid state Tesla coils]
Jesjes
December 09, 2018, 04:50:56 AM
post Re: My First DRSSTC
[Dual Resonant Solid State Tesla coils]
Laci
December 08, 2018, 12:52:41 PM
post Re: My First DRSSTC
[Dual Resonant Solid State Tesla coils]
sjsimmo
December 08, 2018, 09:51:47 AM
post Huawei RRU3928 1800MHz radio base station teardown (part 1 of 2)
[Radio frequency]
Mads Barnkob
December 06, 2018, 07:49:06 PM
post Re: First SSTC build, need help troubleshooting
[Solid state Tesla coils]
Fumeaux
December 03, 2018, 10:35:13 AM
post Re: First SSTC build, need help troubleshooting
[Solid state Tesla coils]
sjsimmo
December 03, 2018, 08:40:43 AM
post Re: First SSTC build, need help troubleshooting
[Solid state Tesla coils]
Jesjes
December 03, 2018, 05:31:29 AM
post Re: Hacking the IKEA 2000 Watt induction stove (5 parts)
[Electronic circuits]
chjarup
December 02, 2018, 11:44:14 PM
post SSTC-Driver PCB 1.3
[Printed Circuit Board]
Fumeaux
December 02, 2018, 10:25:23 PM
post Re: Hacking the IKEA 2000 Watt induction stove (5 parts)
[Electronic circuits]
Mads Barnkob
December 02, 2018, 04:23:16 PM
post Re: Hacking the IKEA 2000 Watt induction stove (5 parts)
[Electronic circuits]
chjarup
December 02, 2018, 12:12:57 PM

Sitemap 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30