Author Topic: Serial Decoding Help  (Read 5009 times)

0 Members and 1 Guest are viewing this topic.

Offline VintageTechTopic starter

  • Contributor
  • Posts: 16
  • Country: us
Serial Decoding Help
« on: March 14, 2015, 08:06:44 pm »
Today I was trying to decode a serial two wire serial steam when I came across something odd. The waveform that I was getting looked nothing like UART or I2C (no clock). I tried to hook it up to a UART source (Arduino) and send bytes through the serial terminal The only thing that happened was a continuous stream of zeros appeared on the screen (I tried adjusting baud rate). So, I continued to debug and looked up timing diagrams to try to find something that matched. No luck. With out anything to go off of, I figured that it would be a good idea to post on the forums, as the people here have much more knowledge than I do.

Thanks,

VintageTech
 

Offline Howardlong

  • Super Contributor
  • ***
  • Posts: 5524
  • Country: gb
Re: Serial Decoding Help
« Reply #1 on: March 14, 2015, 08:23:06 pm »
Today I was trying to decode a serial two wire serial steam when I came across something odd. The waveform that I was getting looked nothing like UART or I2C (no clock). I tried to hook it up to a UART source (Arduino) and send bytes through the serial terminal The only thing that happened was a continuous stream of zeros appeared on the screen (I tried adjusting baud rate). So, I continued to debug and looked up timing diagrams to try to find something that matched. No luck. With out anything to go off of, I figured that it would be a good idea to post on the forums, as the people here have much more knowledge than I do.

Thanks,

VintageTech

It looks like it may be an I2C clock to me.

Edit: hmm, not certain. Do you have more details including your source code?
« Last Edit: March 14, 2015, 08:27:01 pm by Howardlong »
 

Offline tautech

  • Super Contributor
  • ***
  • Posts: 32018
  • Country: nz
  • Taupaki Technologies Ltd. Siglent Distributor NZ.
    • Taupaki Technologies Ltd.
Re: Serial Decoding Help
« Reply #2 on: March 14, 2015, 08:33:08 pm »
I'm no expert in this regard, the only stuff I've done was experimenting with decoding with my SDS2304.
What I learnt was to identify the chips for a greater understanding of what to expect.
Some customers routinely check their serial streams just as you have done but with an intimate knowledge of their design and programming to refer to.

You have an "idle high" stream, but in datasheets sometimes it is refered to as "active low".

Examine the circuitry for settings of clock speed and that will help for identification of streams.
Avid Rabid Hobbyist
 

Offline mikerj

  • Super Contributor
  • ***
  • Posts: 3671
  • Country: gb
Re: Serial Decoding Help
« Reply #3 on: March 14, 2015, 08:42:51 pm »
Today I was trying to decode a serial two wire serial steam when I came across something odd. The waveform that I was getting looked nothing like UART or I2C (no clock).

You said it was a two wire serial stream, but that there was no clock.  What is on the other wire?
 

Offline miguelvp

  • Super Contributor
  • ***
  • Posts: 5550
  • Country: us
Re: Serial Decoding Help
« Reply #4 on: March 14, 2015, 09:22:17 pm »
Looks like the SDA signal from I2C, there must be a SCL somewhere around.

Hard to tell but it seems to be two bytes (16 bits) worth of data in there.

Edit: not the best capture of an I2C

« Last Edit: March 14, 2015, 09:34:20 pm by miguelvp »
 

Offline Howardlong

  • Super Contributor
  • ***
  • Posts: 5524
  • Country: gb
Re: Serial Decoding Help
« Reply #5 on: March 14, 2015, 09:50:17 pm »
I was thinking it was the clock from a software I2C, it was the right number of edges for one byte.
 

Offline hamdi.tn

  • Frequent Contributor
  • **
  • Posts: 638
  • Country: tn
Re: Serial Decoding Help
« Reply #6 on: March 14, 2015, 09:52:02 pm »
look like 2 bytes uart to me , no need for clock with uart !
 

Offline VintageTechTopic starter

  • Contributor
  • Posts: 16
  • Country: us
Re: Serial Decoding Help
« Reply #7 on: March 14, 2015, 10:23:27 pm »

You said it was a two wire serial stream, but that there was no clock.  What is on the other wire?

I think i have my terminology wrong. My apologies. There are two separate wires with the initial waveform on one and nothing on the other. This leads me to believe this is some sort of UART or I2C line. But there is no clock and it doesn't look like the UART I'm used to on the scope (baud rate?) and it connects to a GPIO pin on the micro, ATMEGA32L, which has I2C but isn't connected to anything that I'm aware of.
 

Offline VintageTechTopic starter

  • Contributor
  • Posts: 16
  • Country: us
Re: Serial Decoding Help
« Reply #8 on: March 14, 2015, 10:38:28 pm »
I probably should add some detail about what I am trying to do. I am attempting to figure out a way to send data to a driver board that was pulled out of an induction cooktop. (Motor Driver maybe?) The board has Four large IGBT's that drive induction coils. The power delivery section of the control board catastrophically failed with a loud pop while boiling water one evening. I was hoping to utilize the drivers (Which still work). In order to do that I need to reverse engineer the protocol, which may mean simply finding a way to reprogram them.   
 

Offline hamdi.tn

  • Frequent Contributor
  • **
  • Posts: 638
  • Country: tn
Re: Serial Decoding Help
« Reply #9 on: March 14, 2015, 10:57:08 pm »
if it's uart i will say 4800 baud and 4 bytes
« Last Edit: March 14, 2015, 11:02:18 pm by hamdi.tn »
 

Offline Howardlong

  • Super Contributor
  • ***
  • Posts: 5524
  • Country: gb
Re: Serial Decoding Help
« Reply #10 on: March 14, 2015, 11:00:49 pm »
I agree, it looks about 4800 baud, but where is the stop bit on the first byte?

Edit: the second line, is it high or low?
« Last Edit: March 14, 2015, 11:03:49 pm by Howardlong »
 

Offline VintageTechTopic starter

  • Contributor
  • Posts: 16
  • Country: us
Re: Serial Decoding Help
« Reply #11 on: March 15, 2015, 12:02:47 am »
Edit: the second line, is it high or low?

The second line is always low. I will try again to capture serial data at 4800 baud when I get the chance. I am very new at serial decoding and my oscilloscope doesn't have it built in. I guess I'll have to figure it out by hand
 

Offline zapta

  • Super Contributor
  • ***
  • Posts: 6598
  • Country: 00
Re: Serial Decoding Help
« Reply #12 on: March 15, 2015, 03:50:50 am »
Today I was trying to decode a serial two wire serial steam when I came across something odd. The waveform that I was getting looked nothing like UART or I2C (no clock). I tried to hook it up to a UART source (Arduino) and send bytes through the serial terminal The only thing that happened was a continuous stream of zeros appeared on the screen (I tried adjusting baud rate). So, I continued to debug and looked up timing diagrams to try to find something that matched. No luck. With out anything to go off of, I figured that it would be a good idea to post on the forums, as the people here have much more knowledge than I do.

Thanks,

VintageTech



This picture reminds me linbus, a long break follows by a 0x55 clock synchronization byte.  It's not automative though and not 12V.

 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf

 

- - -
-->