Decoding UART, I2C and a non-standard signal // With Saleae logic analyzer and temperature sensors

Поділитися
Вставка
  • Опубліковано 5 жов 2024

КОМЕНТАРІ • 77

  • @ismaeelm7091
    @ismaeelm7091 3 роки тому +5

    How do you choose the clock mode? I mean, do you use asynchronous or synchronous clock?

    • @sayanee
      @sayanee  3 роки тому +2

      Sorry, could you please give me more context and timestamp from the video above so that I can understand what you mean by "clock mode".
      If you mean the I2C protocol's SCL pin, then it is a synchronous clock by its definition: en.wikipedia.org/wiki/I%C2%B2C
      Also, I would say check with the datasheet of the sensor.

    • @ismaeelm7091
      @ismaeelm7091 3 роки тому +1

      @@sayanee Thank you for your reply. I am talking about capture rate. I was wondering if you use timing or state acquisition. I have problem with adjusting capture rate so I asked.

    • @sayanee
      @sayanee  3 роки тому +5

      @@ismaeelm7091 Uh yes, good question!
      The Saleae Logic Analyser's software Logic provides a list of sampling rate options. To be honest, I start with one of the options and I play around 🤷🏻‍♀️I do check with the datasheet as well to know approximately which sampling rate to choose in line with Nyquist theorem and Saleae recommends 4 times.
      Do check this link as well: support.saleae.com/faq/technical-faq/what-sample-rate-is-required
      Also another note on Nyquist and their recommendation on 4 times: downloads.saleae.com/Saleae+Users+Guide.pdf
      "Keep in mind that in order to successfully capture a signal, you must sample faster than that signal. That is due to the nature of asynchronous sampling and is described by the Nyquist-Shannon sampling theorem. With our products, in order to accurately sample a digital signal, you must sample at least 4 times faster than that signal."
      Hope this helps!!

    • @bvds2007
      @bvds2007 9 місяців тому +1

      Fantastic teacher.. subscribing

  • @donaldfilbert4832
    @donaldfilbert4832 3 роки тому +4

    Very clear and informative. Much easier to follow than most other coverages of this topic on UA-cam !! Thanks !!

  • @darrellt.8216
    @darrellt.8216 6 місяців тому

    Getting my first logic analyzer this Friday. Thank you for your clear tutorial on how to use it and decode data! Best tutorial on UA-cam!

  • @hapskie
    @hapskie 2 роки тому +1

    I bought one of these cheap $10 logic analyzer and didn't know how to proceed. You explained it very well and I'm now up and running. Thank you!

  • @wkl3968
    @wkl3968 3 роки тому

    wow... I'm a Mechanical engineer and I found this really interesting!! at least I see the signal!!

  • @dustybeta4055
    @dustybeta4055 Рік тому

    This was a really good introduction to using a logic analyzer, thank you!

  • @a1nelson
    @a1nelson 4 роки тому +1

    These videos are really well done. They incorporate lots and lots of useful, actionable information and the explanations are very clear. Plus, the pacing is spot on. Showing your audience how to work through issues they may encounter in the real world is extremely valuable and much appreciated.

  • @tristunalekzander5608
    @tristunalekzander5608 4 роки тому +2

    Oh my gosh this was awesome! Thank you so much! Teach us more of the magical ways of electronics.

    • @tristunalekzander5608
      @tristunalekzander5608 3 роки тому

      @Landyn Colton Looks like Instagram already patched the brute force exploit so they suggest you use phishing and social engineering to get the password. You don't need software for that lol

  • @la7yka
    @la7yka 2 роки тому

    Great introduction to Saleae Logic. Thank you.

  • @julianalvarado3284
    @julianalvarado3284 6 місяців тому

    Woww! Que buen video me encanta la forma en que explicás cada tema, tendrías que tener más subs sin dudas. Thanks a lot for your videos! I love all of them. Saludos desde Bs As, Argentina.

  • @bibel2k
    @bibel2k 3 роки тому +1

    The explanation and examples are exactly what I was looking for!
    ‏nice clear and understandable
    Thank you very much

  • @jdarnell123
    @jdarnell123 3 роки тому +1

    Why are your videos so great?! 🙂 I just subscribed... keep rockin' your content!

  • @Nada83292
    @Nada83292 3 роки тому +1

    I really like the video. It is amazing. Thank you very much!!!

  • @FernandoFernandez-do4cu
    @FernandoFernandez-do4cu 2 роки тому

    I loved it. Very well explained. Inspiring... I'm going to buy a logic analyzer, thank you very much

  • @masterzerox2009
    @masterzerox2009 4 роки тому +1

    Thanks for the class teacher! I'll learn a lot about electronics with your videos, greetings from Managua, Nicaragua, UNI-RUSB university.

  • @TCJHTom
    @TCJHTom 4 роки тому +1

    Thanks so much! This video is of great value to me.

  • @FilipMakaroni_xD
    @FilipMakaroni_xD 3 роки тому +1

    Nice, really helped me get started

  • @grayphox
    @grayphox Рік тому

    Thank you so much for this video

  • @tatavox1408
    @tatavox1408 9 місяців тому

    Very good explained .Thank you for such as video .succes and a very good new year !

  • @swanee
    @swanee Рік тому

    Amazingly helpful, thank you!

  • @Europayacht
    @Europayacht 4 роки тому +2

    Thanks, very telling!

  • @mbs7969
    @mbs7969 4 роки тому

    Very informative video. I learn new things about logic analyzer.

  • @AntminerRepair
    @AntminerRepair 3 роки тому

    Nice job teaching. Keep it up!

  • @skaramicke
    @skaramicke 3 роки тому

    Subscribed. Very informative and interesting!

  • @gabrielvigiano
    @gabrielvigiano 3 роки тому +1

    Hey.. you are amazing... thank you =)

  • @mingwee
    @mingwee 4 роки тому +1

    That's great and useful. Thanks a lot.

  • @alenakolosova6940
    @alenakolosova6940 4 роки тому +1

    Great job!

  • @er.jugalmandal7736
    @er.jugalmandal7736 3 роки тому

    Seriously your explanation is just great I just love the your video thank you .one help I want can you make a video that how we can decode same date using Arduino instead of graph can we get the character or decimal date at the serial monitor please help out mam

  • @mehdimbb3622
    @mehdimbb3622 4 місяці тому

    Very good
    Can u analyz spi by this method???

  • @Frisky0563
    @Frisky0563 2 роки тому

    I need to probe some synchronous serial HDLC data at 9600 baud.

  • @dalwindersingh9455
    @dalwindersingh9455 3 роки тому

    Hi That is awesome
    Can you do RS 485 modbus communication decode , On UA-cam there is no such video
    I am sure you can do it
    Thanks

  • @QuebecoisSti
    @QuebecoisSti 4 роки тому +1

    What would you recommend when using UART/I2C sensors with an industrial PLC ? Is it best/easier to go with a converter or use a RS-232/485 and program the communication protocol to fit with it ?

    • @sayanee
      @sayanee  4 роки тому

      I have never used an industrial PLC.
      But for any such integration, I would always reach out to the manufacturer and ask them for their recommendation based on the specific use case.

  • @kewautomation920
    @kewautomation920 4 роки тому +1

    Wow the DHT11 one is grt .
    Well I would like to have your suggestion on one thing.
    For checking signals of different protocol say UART , SPI, I2C ,ADC TIMERS , PWM waves , GPIO Pins switching high and low of order ms ,us , ns.And to check clock frequency of MCU
    So what equipment should i go for oscilloscope? Logic analyser?.
    Which will suit by application, According to cheapness.

    • @sayanee
      @sayanee  4 роки тому +1

      I guess you can't really compare the functionalities of an oscilloscope vs a logic analyzer. Here is a good summary: articles.saleae.com/logic-analyzers/logic-analyzer-vs.-oscilloscope#differences
      I have seen fairly good "cheap" logic analyzers, but good oscilloscopes are expensive.

    • @a1nelson
      @a1nelson 4 роки тому

      I agree that good oscilloscopes are expensive. But I feel it’s important to note that “good” is all relative. If you find secondhand equipment acceptable, there are lots of fast oscilloscopes available. About six months ago, I picked up a 300 MHz Tektronix oscilloscope for under 100 USD. That’s less than even the student pricing on a Sales’s logic analyzers. A logic analyzer is a fantastic tool, but the oscilloscope can do most of what do you logic analyzer does - it’s just slower, because you will need to decode the protocols by hand. (Not difficult - just potentially time consuming. But, you will learn from the exercise.) Newer, higher-end oscilloscopes can do this decoding automatically, but their prices can go from high to astronomical. If you are just trying to understand what’s going wrong with a simple system, a low-cost oscilloscope can be a great option. Very often, the problems with digital systems are simple ones, and often they are actually in the analog domain. For example, a common mistake is to use an improper pull up resistor for the transmission speed, or to accidentally leave one out entirely. In this situation, the inexpensive oscilloscope will probably provide better information than the more expensive logic analyzer. And, once the problem is resolved, the digital parts of the system will probably work as intended. That’s not true in all cases, of course. But, in my experience, analog problems represent a slight majority of the real-world issues in “digital” systems. Hope that all helps with your decision. Edit: I should have mentioned that handheld oscilloscope can be rather inexpensive as well - perhaps as low as 125 USD. Just take their reported speeds with a grain of salt - consider dividing the reported sampling rate by 10X. So, a cheap, handheld “100 MHz” scope might be reliable at ~10 MHz, when used with digital signals. They will be more successful with slower-changing analog signals, but that wasn’t your original question.

  • @ambalapetlover7904
    @ambalapetlover7904 2 роки тому

    Can i copy the rx tx signals
    For example a control panel control a drive using rx tx signals
    When a drive or pannel are faulty
    I trace the signal and use another drive or pannel

  • @richardphillips2405
    @richardphillips2405 4 роки тому +2

    Great video. One question. Can you use the same computer to operate the Arduino and also operate the logic analyzer at the same time? That would take two USB ports. How would that work? Thank you.

    • @sayanee
      @sayanee  4 роки тому +2

      Yes, I used up all the laptop's USB port for Arduino and the logic analyzer. In fact, during the video recording, I also needed 2 more USB ports for the web camera and the microphone, so I had to use an external USB hub to connect 4 devices to my 2015 MacBook.

    • @richardphillips2405
      @richardphillips2405 4 роки тому

      @@sayanee Thank you. I am using a Dell running Windows 10. I think that the results should be the same.

  •  2 роки тому

    Amazing

  • @yanzrace7030
    @yanzrace7030 Рік тому

    Can you help me how to unlock id code the Renesas M16c with logic analyzer

  • @rishavbhattacharya7937
    @rishavbhattacharya7937 3 роки тому

    Wow!!!!

  • @solateriichthus8221
    @solateriichthus8221 5 місяців тому

    how you can get analog part chanel 0 to show the voltage? please help me

  • @devi_rajesh_sales
    @devi_rajesh_sales Місяць тому

    can you make video on protocol analyzer please it is my request ,it is helpful for many your subscribers please ,make it fast thanks and regards

  • @EdwardYamunaque
    @EdwardYamunaque 2 роки тому

    I have a serial signal (single line) and a clock signal and I want to decode a signal into Hex values, can I decode the serial signal?

  • @criznach
    @criznach 3 роки тому

    I'm going to have to dust off my logic analyzer for a work issue today. Ugh... Wish me luck.

  • @anibalvilelarj
    @anibalvilelarj 2 роки тому

    Congratulations, Sayanee !
    I'm trying to use a logic analyzer for the first time. It is for read a unknown logic protocol, which is used by Fujitsu Split VAC(Air Conditioners).
    The clock signal and DATA are in the AC line wave, 60HZ.
    I guess the data signal should read exactly at the middle of the high clock signal.
    I would like to ask you, please:
    Is there a setting to point and read the data exactly at the middle of high state of the clock signal ?
    Thank you.

    • @sayanee
      @sayanee  2 роки тому +1

      I'm not so sure actually, especially since this is an unknown protocol. I am guessing you can write a custom protocol analyzer and state there to read the data exactly at the middle of the high state of the clock signal.
      Saleae is continuously updating its API for this.
      Check here for writing a custom protocol analyzer: support.saleae.com/saleae-api-and-sdk/protocol-analyzer-sdk
      And I would highly recommend the forum to ask these questions: discuss.saleae.com/
      And if you are using other logic analyzers, it will depend on that model and I wouldn't know.
      For the purpose of aircon IR signals, I would also recommend checking www.analysir.com/blog/
      Sorry, I couldn't provide the exact answer, but hope the above links will give you some clue!! Hope you find a way to decode it.

    • @anibalvilelarj
      @anibalvilelarj 2 роки тому

      Hello, @@sayanee !
      Thank you by attention and hints.
      They are very usefull.
      I'm trying to decode and understand the communication between external and internal units of a Split model Air Conditioner. It is not about the InfraRed signals of the remote controller. It is about two Microcontrollers on two PCB's communicating.
      There are 2 units in a Split Air Conditioner:
      Internal unit, where is the evaporator unit.
      External unit, where is a compressor motor and condensator unit. Both of them, have PCB's controlling each step, temperature, sensors, valve and other things.
      These 2 units change informtions and commands using a third wire among the voltage AC lines. This third wire is connected on the PCB, which has a kind of modem that modulates the bits received from a microcontroller over the 220V AC wave(please, see these signals on my video ua-cam.com/video/HDqMhQzB0HU/v-deo.html ).
      Thank you, again.
      You are the best !

  • @黃先生-d7o
    @黃先生-d7o Рік тому

    Good~

  • @automaticpanipurimachine-n9326
    @automaticpanipurimachine-n9326 2 роки тому

    Can we read unknown controller data going to 16x2 lcd going by logic analyser?

    • @sayanee
      @sayanee  2 роки тому

      Uh! LCDs are usually SPI, which is not a standardized protocol. I'm sure you can read the data, but you will probably need the specific LCD's datasheet to decode the signals.

  • @cyo_corner
    @cyo_corner 4 роки тому

    how do I program the data captured in the logic analyzer into an MCU?

  • @mcu7010
    @mcu7010 3 роки тому

    What if UART data using crc and incoder how to read data ... is any one can read this data ??

  • @1PartiZzan
    @1PartiZzan 3 роки тому

    So.. next time video about "Saleae SDK" custom protocol descriptor...?

    • @sayanee
      @sayanee  3 роки тому

      I made a video later on about Saleae's custom protocol analyzer: ua-cam.com/video/P2z-iwrrVWU/v-deo.html
      Do you mean the same or something else?

  • @rohitjindal5074
    @rohitjindal5074 2 роки тому

    Hi Sayanee , I looked into your videos to understand Logic Analyzer and its features. Very informative and well explained.
    I have query , did you get a chance to use Logic Analyzers with CC111x series of usb dongles from TI. I am trying similar with Saleae , but till not did not able to capture anything .

    • @sayanee
      @sayanee  2 роки тому

      Nope, I never used those chip series.
      Maybe check with their documentation for the supported protocols? support.saleae.com/protocol-analyzers/supported-protocols
      My best bet would be to drop a question on their forum: discuss.saleae.com/
      Hope this helps!

    • @rohitjindal5074
      @rohitjindal5074 2 роки тому

      @@sayanee Thankyou for your prompt reply.
      One more query did you get a chance to work on ERT Protocol or similar Actually we need to use CC1111 usb dongle to capture ERT Gas meter data . Which we are still not able to capture so tried to use saleae but still not any progress
      .en.wikipedia.org/wiki/Encoder_receiver_transmitter
      Pls suggest any forum if you know.
      Thanks alot once again!! Appreciate your time and efforts

    • @sayanee
      @sayanee  2 роки тому

      @@rohitjindal5074 Nope, I did not have the chance to work on them.
      From my previous experiences in working with industrial meters (E.g. gas meters that you mentioned), it's best to contact the vendor for their proprietary protocols. Sometimes they might help, sometimes no luck, but at least the manufacturer/ vendors are the source of information.
      All the best in cracking the protocol!

    • @rohitjindal5074
      @rohitjindal5074 2 роки тому

      @@sayanee Thankyou :)

  • @qzorn4440
    @qzorn4440 4 роки тому

    very nice.. now how would be an ez-way to set the arduino up for " modbus rtu rs485" and do the test with the Saleae logic analyzer. also, can a test message be sent to the arduino from the Saleae using simulated read-write registers like: 400001, 300001, 100001, 000001, etc ? thank you so much..:) this would be great for IoT bench testing...:)

    • @sayanee
      @sayanee  4 роки тому +1

      I have neither used MODBUS RTU nor an Arduino with it :) I have used MODBUS TCP, but on a microprocessor running the full operating system.
      It seems like there is an Arduino MODBUS library with RTU: www.arduino.cc/en/ArduinoModbus/ArduinoModbus
      And it seems like Saleae also supports it support.saleae.com/protocol-analyzers/analyzer-user-guides/decode-rs-232-rs-485-and-rs-422, but you might need to also write a custom high level analyzer with Python.

    • @qzorn4440
      @qzorn4440 2 роки тому

      @@sayanee thank you i will read this information. modbus is great for industrial and iot hobby projects. 😃

  • @GurpreetSingh-wo2tz
    @GurpreetSingh-wo2tz Рік тому

    Can I Analyse CAN Protocol for this?

    • @sayanee
      @sayanee  Рік тому

      Seems like it: support.saleae.com/protocol-analyzers/analyzer-user-guides/using-can

  • @rusbelhernandez4834
    @rusbelhernandez4834 3 роки тому

    excellent explanation !!! but unfortunately, the hardware is still too expensive for a student!

    • @sayanee
      @sayanee  3 роки тому +2

      Hopefully, you have access to your school's lab that I used to during my engineering school days. I'm unsure how's that with the pandemic situation now :(
      Either way, you might be able to buy cheaper non-branded logic analyzers also.

    • @rusbelhernandez4834
      @rusbelhernandez4834 3 роки тому

      I bought one made in China way cheaper, Did I like it?...no, but a was forced to do it. If you guys bring something in the middle range prices would it be a better business for everyone

  • @MrRobbyvent
    @MrRobbyvent 4 роки тому

    hacking for childrens

  • @sarthak761
    @sarthak761 4 роки тому +1

    You deserve 0 dislike .