Author Topic: Debugging rs232  (Read 290 times)

Offline kamelryttarn

  • High Voltage Experimenter
  • **
  • Posts: 97
  • 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 Engineer
  • ****
  • Posts: 213
  • Karma: +10/-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: Help for people buying the "12-48 Volt 1800/2500 Watt ZVS induction Heater"
[Electronic circuits]
hightemp1
Today at 05:51:09 AM
post Re: Help for people buying the "12-48 Volt 1800/2500 Watt ZVS induction Heater"
[Electronic circuits]
petespaco
Today at 04:07:17 AM
post Strange GDT signals (need to help)
[Dual Resonant Solid State Tesla coils]
VNTC
Today at 02:19:24 AM
post Re: Easy access to optimal resonance frequency but the benefit is quite small
[Dual Resonant Solid State Tesla coils]
VNTC
Today at 02:00:48 AM
post Re: Strange gdt waveforms
[Dual Resonant Solid State Tesla coils]
VNTC
Today at 01:33:56 AM
post Re: DRSSTC design questions + project progress
[Dual Resonant Solid State Tesla coils]
Mads Barnkob
May 22, 2019, 08:31:55 PM
post Re: Easy access to optimal resonance frequency but the benefit is quite small
[Dual Resonant Solid State Tesla coils]
dexter
May 22, 2019, 08:31:51 PM
post Easy access to optimal resonance frequency but the benefit is quite small
[Dual Resonant Solid State Tesla coils]
VNTC
May 21, 2019, 11:35:57 PM
post Re: Offgrid 48V solar to 24V battery setup
[Electronic circuits]
Mads Barnkob
May 21, 2019, 09:59:54 PM
post Re: General Oscilloscope Probing Techniques for (DR)SSTC h-bridge
[Beginners]
Mads Barnkob
May 21, 2019, 09:51:27 PM
post Re: ZVS Mazzilli circ with active gate driver - what causes ringing?
[Electronic circuits]
T3sl4co1l
May 21, 2019, 09:49:03 PM
post Re: ZVS Mazzilli circ with active gate driver - what causes ringing?
[Electronic circuits]
82026
May 21, 2019, 09:02:10 PM
post Re: DRSSTC design questions + project progress
[Dual Resonant Solid State Tesla coils]
Vaclav
May 21, 2019, 08:59:57 PM
post Re: DRSSTC design questions + project progress
[Dual Resonant Solid State Tesla coils]
Mads Barnkob
May 21, 2019, 08:28:43 PM
post Re: Identification of unknown embedded computer, help needed.
[Computers, Microcontrollers, Programmable Logic, Interfaces and Displays]
Mads Barnkob
May 21, 2019, 08:22:28 PM
post Re: DRSSTC design questions + project progress
[Dual Resonant Solid State Tesla coils]
Vaclav
May 21, 2019, 06:21:37 PM
post Re: Help for people buying the "12-48 Volt 1800/2500 Watt ZVS induction Heater"
[Electronic circuits]
petespaco
May 21, 2019, 06:12:55 PM
post Re: DRSSTC design questions + project progress
[Dual Resonant Solid State Tesla coils]
profdc9
May 21, 2019, 04:06:38 PM
post Re: DRSSTC design questions + project progress
[Dual Resonant Solid State Tesla coils]
Vaclav
May 21, 2019, 03:56:56 PM
post Re: DRSSTC design questions + project progress
[Dual Resonant Solid State Tesla coils]
Vaclav
May 21, 2019, 03:46:56 PM
post Re: DRSSTC design questions + project progress
[Dual Resonant Solid State Tesla coils]
profdc9
May 21, 2019, 02:32:59 PM
post Re: Help for people buying the "12-48 Volt 1800/2500 Watt ZVS induction Heater"
[Electronic circuits]
petespaco
May 21, 2019, 06:12:18 AM
post Re: Offgrid 48V solar to 24V battery setup
[Electronic circuits]
profdc9
May 20, 2019, 11:30:34 PM
post DRSSTC design questions + project progress
[Dual Resonant Solid State Tesla coils]
Vaclav
May 20, 2019, 06:38:54 PM
post Re: General Oscilloscope Probing Techniques for (DR)SSTC h-bridge
[Beginners]
Teravolt
May 20, 2019, 06:33:49 PM
post Re: ZVS Mazzilli circ with active gate driver - what causes ringing?
[Electronic circuits]
82026
May 20, 2019, 02:27:59 PM
post Re: Help for people buying the "12-48 Volt 1800/2500 Watt ZVS induction Heater"
[Electronic circuits]
hightemp1
May 20, 2019, 02:57:46 AM
post Re: ZVS Mazzilli circ with active gate driver - what causes ringing?
[Electronic circuits]
T3sl4co1l
May 20, 2019, 01:06:27 AM
post Re: ZVS Mazzilli circ with active gate driver - what causes ringing?
[Electronic circuits]
82026
May 19, 2019, 09:14:59 PM
post Re: Help for people buying the "12-48 Volt 1800/2500 Watt ZVS induction Heater"
[Electronic circuits]
petespaco
May 19, 2019, 06:40:41 PM
post Re: Help for people buying the "12-48 Volt 1800/2500 Watt ZVS induction Heater"
[Electronic circuits]
flyrod
May 19, 2019, 04:04:12 PM
post Re: Offgrid 48V solar to 24V battery setup
[Electronic circuits]
Mads Barnkob
May 19, 2019, 11:24:46 AM
post Re: ZVS Mazzilli circ with active gate driver - what causes ringing?
[Electronic circuits]
flyrod
May 19, 2019, 03:22:54 AM
post Re: Are bleeder resistors necessary if I can easily discharge my capacitor?
[Spark gap Tesla coils]
profdc9
May 19, 2019, 03:18:52 AM
post Re: Help for people buying the "12-48 Volt 1800/2500 Watt ZVS induction Heater"
[Electronic circuits]
petespaco
May 18, 2019, 10:48:59 PM
post Re: Is one of these good?
[Dual Resonant Solid State Tesla coils]
Golddustpeak
May 18, 2019, 04:19:11 PM
post Re: Help for people buying the "12-48 Volt 1800/2500 Watt ZVS induction Heater"
[Electronic circuits]
petespaco
May 17, 2019, 10:57:17 PM
post Are bleeder resistors necessary if I can easily discharge my capacitor?
[Spark gap Tesla coils]
jpb133
May 17, 2019, 09:41:56 PM
post Re: Is one of these good?
[Dual Resonant Solid State Tesla coils]
Uspring
May 17, 2019, 12:41:17 PM
post ZVS Mazzilli circ with active gate driver - what causes ringing?
[Electronic circuits]
82026
May 16, 2019, 04:15:58 PM
post Re: Identification of unknown embedded computer, help needed.
[Computers, Microcontrollers, Programmable Logic, Interfaces and Displays]
Fumeaux
May 16, 2019, 02:19:39 PM
post Re: Is one of these good?
[Dual Resonant Solid State Tesla coils]
Golddustpeak
May 16, 2019, 01:50:44 PM
post Re: Is one of these good?
[Dual Resonant Solid State Tesla coils]
Uspring
May 16, 2019, 12:17:01 PM
post Re: Identification of unknown embedded computer, help needed.
[Computers, Microcontrollers, Programmable Logic, Interfaces and Displays]
Fumeaux
May 16, 2019, 08:45:15 AM
post Re: Identification of unknown embedded computer, help needed.
[Computers, Microcontrollers, Programmable Logic, Interfaces and Displays]
Mads Barnkob
May 15, 2019, 11:49:59 PM
post Re: Identification of unknown embedded computer, help needed.
[Computers, Microcontrollers, Programmable Logic, Interfaces and Displays]
Hydron
May 15, 2019, 10:51:33 PM
post Identification of unknown embedded computer, help needed.
[Computers, Microcontrollers, Programmable Logic, Interfaces and Displays]
Mads Barnkob
May 15, 2019, 09:35:41 PM
post Re: Is one of these good?
[Dual Resonant Solid State Tesla coils]
Golddustpeak
May 15, 2019, 05:07:20 PM
post Re: Mounting LCD CFL's around DRSSTC?
[Dual Resonant Solid State Tesla coils]
Mads Barnkob
May 15, 2019, 12:46:33 PM
post Re: General Oscilloscope Probing Techniques for (DR)SSTC h-bridge
[Beginners]
Mads Barnkob
May 15, 2019, 10:08:11 AM

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