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

  Рет қаралды 44,007

Sayanee Basu

Sayanee Basu

Күн бұрын

Пікірлер: 78
@ismaeelm7091
@ismaeelm7091 3 жыл бұрын
How do you choose the clock mode? I mean, do you use asynchronous or synchronous clock?
@sayanee
@sayanee 3 жыл бұрын
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 жыл бұрын
@@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 жыл бұрын
@@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 11 ай бұрын
Fantastic teacher.. subscribing
@donaldfilbert4832
@donaldfilbert4832 3 жыл бұрын
Very clear and informative. Much easier to follow than most other coverages of this topic on KZbin !! Thanks !!
@hapskie
@hapskie 2 жыл бұрын
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!!
@darrellt.8216
@darrellt.8216 8 ай бұрын
Getting my first logic analyzer this Friday. Thank you for your clear tutorial on how to use it and decode data! Best tutorial on KZbin!
@sdriza
@sdriza 5 күн бұрын
well? how's it going?
@dustybeta4055
@dustybeta4055 Жыл бұрын
This was a really good introduction to using a logic analyzer, thank you!
@a1nelson
@a1nelson 4 жыл бұрын
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.
@la7yka
@la7yka 2 жыл бұрын
Great introduction to Saleae Logic. Thank you.
@julianalvarado3284
@julianalvarado3284 8 ай бұрын
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.
@tristunalekzander5608
@tristunalekzander5608 4 жыл бұрын
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
@ChipsMicrochips
@ChipsMicrochips 3 жыл бұрын
Why are your videos so great?! 🙂 I just subscribed... keep rockin' your content!
@FernandoFernandez-do4cu
@FernandoFernandez-do4cu 2 жыл бұрын
I loved it. Very well explained. Inspiring... I'm going to buy a logic analyzer, thank you very much
@FilipMakaroni_xD
@FilipMakaroni_xD 3 жыл бұрын
Nice, really helped me get started
@tatavox1408
@tatavox1408 10 ай бұрын
Very good explained .Thank you for such as video .succes and a very good new year !
@Nada83292
@Nada83292 4 жыл бұрын
I really like the video. It is amazing. Thank you very much!!!
@mbs7969
@mbs7969 4 жыл бұрын
Very informative video. I learn new things about logic analyzer.
@AntminerRepair
@AntminerRepair 3 жыл бұрын
Nice job teaching. Keep it up!
@masterzerox2009
@masterzerox2009 4 жыл бұрын
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 жыл бұрын
Thanks so much! This video is of great value to me.
@bibel2k
@bibel2k 3 жыл бұрын
The explanation and examples are exactly what I was looking for! ‏nice clear and understandable Thank you very much
@swanee
@swanee 2 жыл бұрын
Amazingly helpful, thank you!
@mehdimbb3622
@mehdimbb3622 5 ай бұрын
Very good Can u analyz spi by this method???
@skaramicke
@skaramicke 4 жыл бұрын
Subscribed. Very informative and interesting!
@grayphox
@grayphox Жыл бұрын
Thank you so much for this video
@dalwindersingh9455
@dalwindersingh9455 3 жыл бұрын
Hi That is awesome Can you do RS 485 modbus communication decode , On KZbin there is no such video I am sure you can do it Thanks
@Europayacht
@Europayacht 5 жыл бұрын
Thanks, very telling!
@er.jugalmandal7736
@er.jugalmandal7736 4 жыл бұрын
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
@kewautomation920
@kewautomation920 4 жыл бұрын
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 жыл бұрын
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.
@gabrielvigiano
@gabrielvigiano 3 жыл бұрын
Hey.. you are amazing... thank you =)
@Frisky0563
@Frisky0563 2 жыл бұрын
I need to probe some synchronous serial HDLC data at 9600 baud.
@mingwee
@mingwee 4 жыл бұрын
That's great and useful. Thanks a lot.
@QuebecoisSti
@QuebecoisSti 4 жыл бұрын
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.
@richardphillips2405
@richardphillips2405 4 жыл бұрын
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 жыл бұрын
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.
@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
@alenakolosova6940
@alenakolosova6940 4 жыл бұрын
Great job!
@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?
@anibalvilelarj
@anibalvilelarj 3 жыл бұрын
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 3 жыл бұрын
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 3 жыл бұрын
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 kzbin.info/www/bejne/fnXUfpuHr6djfrc ). Thank you, again. You are the best !
@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 :)
@yanzrace7030
@yanzrace7030 2 жыл бұрын
Can you help me how to unlock id code the Renesas M16c with logic analyzer
@solateriichthus8221
@solateriichthus8221 7 ай бұрын
how you can get analog part chanel 0 to show the voltage? please help me
@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.
@criznach
@criznach 3 жыл бұрын
I'm going to have to dust off my logic analyzer for a work issue today. Ugh... Wish me luck.
@1PartiZzan
@1PartiZzan 4 жыл бұрын
So.. next time video about "Saleae SDK" custom protocol descriptor...?
@sayanee
@sayanee 4 жыл бұрын
I made a video later on about Saleae's custom protocol analyzer: kzbin.info/www/bejne/hmPdXpytp9eJjbc Do you mean the same or something else?
@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 жыл бұрын
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. 😃
@devi_rajesh_sales
@devi_rajesh_sales 2 ай бұрын
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
@cyo_corner
@cyo_corner 4 жыл бұрын
how do I program the data captured in the logic analyzer into an MCU?
2 жыл бұрын
Amazing
@黃先生-d7o
@黃先生-d7o Жыл бұрын
Good~
@rishavbhattacharya7937
@rishavbhattacharya7937 3 жыл бұрын
Wow!!!!
@rusbelhernandez4834
@rusbelhernandez4834 4 жыл бұрын
excellent explanation !!! but unfortunately, the hardware is still too expensive for a student!
@sayanee
@sayanee 4 жыл бұрын
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 4 жыл бұрын
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
@mcu7010
@mcu7010 3 жыл бұрын
What if UART data using crc and incoder how to read data ... is any one can read this data ??
@GurpreetSingh-wo2tz
@GurpreetSingh-wo2tz 2 жыл бұрын
Can I Analyse CAN Protocol for this?
@sayanee
@sayanee 2 жыл бұрын
Seems like it: support.saleae.com/protocol-analyzers/analyzer-user-guides/using-can
@MrRobbyvent
@MrRobbyvent 4 жыл бұрын
hacking for childrens
@sarthak761
@sarthak761 4 жыл бұрын
You deserve 0 dislike .
PROTOCOLS: UART - I2C - SPI - Serial communications #001
11:58
Electronoobs
Рет қаралды 1,4 МЛН
Logical Analyzer from Aliexpress, Saleae Logic Clone
9:57
TryTech
Рет қаралды 28 М.
СКОЛЬКО ПАЛЬЦЕВ ТУТ?
00:16
Masomka
Рет қаралды 3,4 МЛН
When Cucumbers Meet PVC Pipe The Results Are Wild! 🤭
00:44
Crafty Buddy
Рет қаралды 58 МЛН
Симбу закрыли дома?! 🔒 #симба #симбочка #арти
00:41
Симбочка Пимпочка
Рет қаралды 4,7 МЛН
Low cost logic analyzer
7:47
Mr.T's Design Graveyard
Рет қаралды 12 М.
Cheap logic analyzer SPI i2c UART
8:03
Electronoobs
Рет қаралды 222 М.
[001] Sigrok and Logic Analyzers
1:12:06
OpenTechLab
Рет қаралды 219 М.
Reverse Engineering Smart TV Remote with Logic Analyzer
13:26
Matt Brown
Рет қаралды 22 М.
#99 Logic Analyzer for I2C, SPI and many more protocols
36:44
Ralph S Bacon
Рет қаралды 51 М.
Hacking a weird TV censoring device
20:59
Ben Eater
Рет қаралды 3,2 МЛН
Instrument Basics:  Logic Analyzer - Workbench Wednesdays
12:08
element14 presents
Рет қаралды 87 М.
Лекция 308.  Шина I2C
19:54
Электротехника и электроника для программистов
Рет қаралды 105 М.
СКОЛЬКО ПАЛЬЦЕВ ТУТ?
00:16
Masomka
Рет қаралды 3,4 МЛН