Тёмный

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

Sayanee Basu
Подписаться 12 тыс.
Просмотров 42 тыс.
50% 1

Опубликовано:

 

29 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 77   
@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 9 месяцев назад
Fantastic teacher.. subscribing
@mbs7969
@mbs7969 4 года назад
Very informative video. I learn new things about logic analyzer.
@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
@donaldfilbert4832
@donaldfilbert4832 3 года назад
Very clear and informative. Much easier to follow than most other coverages of this topic on RU-vid !! Thanks !!
@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 года назад
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 ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-HDqMhQzB0HU.html ). Thank you, again. You are the best !
@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: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-P2z-iwrrVWU.html Do you mean the same or something else?
@Frisky0563
@Frisky0563 2 года назад
I need to probe some synchronous serial HDLC data at 9600 baud.
@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
@yanzrace7030
@yanzrace7030 Год назад
Can you help me how to unlock id code the Renesas M16c with logic analyzer
@mehdimbb3622
@mehdimbb3622 3 месяца назад
Very good Can u analyz spi by this method???
@Nada83292
@Nada83292 3 года назад
I really like the video. It is amazing. Thank you very much!!!
@gabrielvigiano
@gabrielvigiano 3 года назад
Hey.. you are amazing... thank you =)
@mcu7010
@mcu7010 3 года назад
What if UART data using crc and incoder how to read data ... is any one can read this data ??
@solateriichthus8221
@solateriichthus8221 5 месяцев назад
how you can get analog part chanel 0 to show the voltage? please help me
@jdarnell123
@jdarnell123 3 года назад
Why are your videos so great?! 🙂 I just subscribed... keep rockin' your content!
@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.
@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.
@Europayacht
@Europayacht 4 года назад
Thanks, very telling!
@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.
@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.
@grayphox
@grayphox Год назад
Thank you so much for this video
@TCJHTom
@TCJHTom 4 года назад
Thanks so much! This video is of great value to me.
@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.
@mingwee
@mingwee 4 года назад
That's great and useful. Thanks a lot.
@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!
@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
@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.
@FilipMakaroni_xD
@FilipMakaroni_xD 3 года назад
Nice, really helped me get started
2 года назад
Amazing
@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 RU-vid!
@criznach
@criznach 3 года назад
I'm going to have to dust off my logic analyzer for a work issue today. Ugh... Wish me luck.
@dalwindersingh9455
@dalwindersingh9455 3 года назад
Hi That is awesome Can you do RS 485 modbus communication decode , On RU-vid there is no such video I am sure you can do it Thanks
@FernandoFernandez-do4cu
@FernandoFernandez-do4cu 2 года назад
I loved it. Very well explained. Inspiring... I'm going to buy a logic analyzer, thank you very much
@tatavox1408
@tatavox1408 8 месяцев назад
Very good explained .Thank you for such as video .succes and a very good new year !
@bibel2k
@bibel2k 3 года назад
The explanation and examples are exactly what I was looking for! ‏nice clear and understandable Thank you very much
@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
@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?
@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
@黃先生-d7o
@黃先生-d7o Год назад
Good~
@wkl3968
@wkl3968 3 года назад
wow... I'm a Mechanical engineer and I found this really interesting!! at least I see the signal!!
@rishavbhattacharya7937
@rishavbhattacharya7937 3 года назад
Wow!!!!
@dustybeta4055
@dustybeta4055 Год назад
This was a really good introduction to using a logic analyzer, thank you!
@cyo_corner
@cyo_corner 4 года назад
how do I program the data captured in the logic analyzer into an MCU?
@AntminerRepair
@AntminerRepair 3 года назад
Nice job teaching. Keep it up!
@skaramicke
@skaramicke 3 года назад
Subscribed. Very informative and interesting!
@la7yka
@la7yka 2 года назад
Great introduction to Saleae Logic. Thank you.
@alenakolosova6940
@alenakolosova6940 4 года назад
Great job!
@swanee
@swanee Год назад
Amazingly helpful, thank you!
@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. 😃
@MrRobbyvent
@MrRobbyvent 4 года назад
hacking for childrens
@rusbelhernandez4834
@rusbelhernandez4834 3 года назад
excellent explanation !!! but unfortunately, the hardware is still too expensive for a student!
@sayanee
@sayanee 3 года назад
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
@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 :)
@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.
@sarthak761
@sarthak761 4 года назад
You deserve 0 dislike .
Далее
ТАРАКАН
00:38
Просмотров 753 тыс.
[001] Sigrok and Logic Analyzers
1:12:06
Просмотров 217 тыс.
Low cost logic analyzer
7:47
Просмотров 10 тыс.
Cheap logic analyzer SPI i2c UART
8:03
Просмотров 218 тыс.
Understanding I2C
10:58
Просмотров 87 тыс.