Author Topic: Debugging rs232  (Read 209 times)

Offline kamelryttarn

  • High Voltage Experimenter
  • **
  • Posts: 90
  • 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: 187
  • Karma: +7/-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: How do I test the max. Ipk of IBGT
[Dual Resonant Solid State Tesla coils]
VNTC
Today at 03:16:00 AM
post It's been a while since I dabbled:
[Solid state Tesla coils]
T3sl4co1l
February 16, 2019, 06:26:43 PM
post Re: SSTC build as per Steve Ward's Mini SSTC - Final Design
[Solid state Tesla coils]
Mads Barnkob
February 16, 2019, 12:50:30 PM
post Re: How do I test the max. Ipk of IBGT
[Dual Resonant Solid State Tesla coils]
Mads Barnkob
February 16, 2019, 12:47:45 PM
post How do I test the max. Ipk of IBGT
[Dual Resonant Solid State Tesla coils]
VNTC
February 16, 2019, 05:03:21 AM
post Re: SSTC build as per Steve Ward's Mini SSTC - Final Design
[Solid state Tesla coils]
Thunderstruck
February 16, 2019, 02:16:27 AM
post Re: Aliexpress Yunbao pulse skipping Product Guide manual
[Dual Resonant Solid State Tesla coils]
black.yang
February 15, 2019, 08:54:20 AM
post Re: Aliexpress Yunbao pulse skipping Product Guide manual
[Dual Resonant Solid State Tesla coils]
Weston
February 15, 2019, 07:40:34 AM
post Re: Resistor tolerance?
[Beginners]
kamelryttarn
February 14, 2019, 02:27:18 PM
post Re: OneTesla Clone ** Urgent help needed!!
[Dual Resonant Solid State Tesla coils]
TonyHV
February 13, 2019, 11:53:07 PM
post Re: OneTesla Clone ** Urgent help needed!!
[Dual Resonant Solid State Tesla coils]
Mads Barnkob
February 13, 2019, 09:27:51 PM
post Re: OneTesla Clone ** Urgent help needed!!
[Dual Resonant Solid State Tesla coils]
TonyHV
February 13, 2019, 09:06:28 PM
post Re: Aliexpress Yunbao pulse skipping Product Guide manual
[Dual Resonant Solid State Tesla coils]
black.yang
February 13, 2019, 06:57:22 PM
post Aliexpress Yunbao pulse skipping Product Guide manual
[Dual Resonant Solid State Tesla coils]
black.yang
February 13, 2019, 06:55:42 PM
post Re: OneTesla Clone ** Urgent help needed!!
[Dual Resonant Solid State Tesla coils]
pentode
February 13, 2019, 06:44:22 PM
post Re: OneTesla Clone ** Urgent help needed!!
[Dual Resonant Solid State Tesla coils]
TonyHV
February 13, 2019, 05:23:58 PM
post Re: OneTesla Clone ** Urgent help needed!!
[Dual Resonant Solid State Tesla coils]
TonyHV
February 13, 2019, 05:14:58 PM
post Re: OneTesla Clone ** Urgent help needed!!
[Dual Resonant Solid State Tesla coils]
Teravolt
February 13, 2019, 03:12:37 PM
post Re: OneTesla Clone ** Urgent help needed!!
[Dual Resonant Solid State Tesla coils]
Mads Barnkob
February 13, 2019, 02:47:49 PM
post Re: OneTesla Clone ** Urgent help needed!!
[Dual Resonant Solid State Tesla coils]
TonyHV
February 13, 2019, 01:57:55 PM
post Re: OneTesla Clone ** Urgent help needed!!
[Dual Resonant Solid State Tesla coils]
Mads Barnkob
February 13, 2019, 01:53:36 PM
post Re: OneTesla Clone ** Urgent help needed!!
[Dual Resonant Solid State Tesla coils]
TonyHV
February 13, 2019, 01:45:53 PM
post Re: OneTesla Clone ** Urgent help needed!!
[Dual Resonant Solid State Tesla coils]
Mads Barnkob
February 13, 2019, 12:58:48 PM
post Re: OneTesla Clone ** Urgent help needed!!
[Dual Resonant Solid State Tesla coils]
TonyHV
February 13, 2019, 12:35:10 PM
post Re: Homemade flyback on 60N60DLF full bridge
[Transformer (ferrite core)]
Platinum
February 12, 2019, 09:17:29 PM
post Video gear & workflow: Canon 5D mk3, Rødelink, FPS1000HD and more
[DSLR]
Mads Barnkob
February 12, 2019, 08:51:43 AM
post Re: STB16PF06L
[Dual Resonant Solid State Tesla coils]
pentode
February 12, 2019, 08:16:33 AM
post Re: Homemade flyback on 60N60DLF full bridge
[Transformer (ferrite core)]
Mads Barnkob
February 11, 2019, 11:06:05 PM
post Re: SSTC build as per Steve Ward's Mini SSTC - Final Design
[Solid state Tesla coils]
Mads Barnkob
February 11, 2019, 10:58:06 PM
post Re: STB16PF06L
[Dual Resonant Solid State Tesla coils]
Mads Barnkob
February 11, 2019, 10:18:39 PM
post Re: SSTC build as per Steve Ward's Mini SSTC - Final Design
[Solid state Tesla coils]
Laci
February 11, 2019, 04:28:24 PM
post STB16PF06L
[Dual Resonant Solid State Tesla coils]
pentode
February 11, 2019, 04:21:54 PM
post Re: SSTC build as per Steve Ward's Mini SSTC - Final Design
[Solid state Tesla coils]
Thunderstruck
February 11, 2019, 11:55:44 AM
post Re: Homemade flyback on 60N60DLF full bridge
[Transformer (ferrite core)]
Hydron
February 11, 2019, 08:13:07 AM
post Homemade flyback on 60N60DLF full bridge
[Transformer (ferrite core)]
Platinum
February 10, 2019, 08:36:12 PM
post Resistor tolerance?
[Beginners]
kamelryttarn
February 10, 2019, 05:46:39 PM
post Re: Help! IBGT 60N60 has been destroyed a lot by my coil
[Dual Resonant Solid State Tesla coils]
sjsimmo
February 09, 2019, 09:19:49 AM
post Help! IBGT 60N60 has been destroyed a lot by my coil
[Dual Resonant Solid State Tesla coils]
VNTC
February 09, 2019, 05:32:59 AM
post Re: DRSSTC design guide - progress report
[Dual Resonant Solid State Tesla coils]
flyglas
February 08, 2019, 05:10:29 PM
post Re: Russian Marx generator test center torn down
[Voltage Multipliers]
Hydron
February 08, 2019, 09:19:57 AM
post Re: DRSSTC design guide - progress report
[Dual Resonant Solid State Tesla coils]
Hydron
February 07, 2019, 11:32:01 PM
post Re: DRSSTC design guide - progress report
[Dual Resonant Solid State Tesla coils]
Mads Barnkob
February 07, 2019, 09:19:49 PM
post Re: Keep or throw away ?
[Beginners]
Thunderstruck
February 07, 2019, 12:20:52 PM
post Re: Keep or throw away ?
[Beginners]
Mads Barnkob
February 07, 2019, 12:16:31 PM
post Re: Keep or throw away ?
[Beginners]
Thunderstruck
February 07, 2019, 11:27:44 AM
post Re: OneTesla Clone ** Urgent help needed!!
[Dual Resonant Solid State Tesla coils]
Mads Barnkob
February 07, 2019, 08:56:57 AM
post Re: Russian Marx generator test center torn down
[Voltage Multipliers]
Mads Barnkob
February 06, 2019, 08:47:55 PM
post Re: Russian Marx generator test center torn down
[Voltage Multipliers]
Mads Barnkob
February 06, 2019, 08:46:20 PM
post Russian Marx generator test center torn down
[Voltage Multipliers]
Mads Barnkob
February 06, 2019, 08:45:25 PM
post Re: OneTesla Clone ** Urgent help needed!!
[Dual Resonant Solid State Tesla coils]
TonyHV
February 06, 2019, 07:04:20 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