Decoding UART using api

Post general discussions on using our drivers to write your own software here
Post Reply
Achref
Newbie
Posts: 0
Joined: Fri Apr 01, 2022 2:39 pm

Decoding UART using api

Post by Achref »

Hello!
I'm working to use picoscope API for programming picoscope 2205a, and I need to decode standard UART protocol, but I couldn't find any API in pico software (ps2000aApi.h) for decoding UART frame.
is there a way to do this?
Thank you,
Achref

bennog
Advanced User
Advanced User
Posts: 208
Joined: Mon Nov 26, 2012 9:16 am
Location: Netherlands

Re: Decoding UART using api

Post by bennog »

It is not in the API it is only in the picoscope software.

If you want to decode serial data in the SDK look at the sigrok git repository for the decoding tools
http://sigrok.org/gitweb/

especially the decode library
http://sigrok.org/gitweb/?p=libsigrokde ... ;a=summary

Benno

Achref
Newbie
Posts: 0
Joined: Fri Apr 01, 2022 2:39 pm

Re: Decoding UART using api

Post by Achref »

Thanks for your reply Benno !
So I just need to use lib sigrok, isn't necessary to use picoscope API??
and If I understood correctly, for lib sigrok I need to use Python langage as implemented here: "libsigrokdecode-24ba9e1/libsigrokdecode-24ba9e1/decoders/uart"
Achref

bennog
Advanced User
Advanced User
Posts: 208
Joined: Mon Nov 26, 2012 9:16 am
Location: Netherlands

Re: Decoding UART using api

Post by bennog »

you will need both.

and jou will probably change some code to get it working.

Benno

Achref
Newbie
Posts: 0
Joined: Fri Apr 01, 2022 2:39 pm

Re: Decoding UART using api

Post by Achref »

And when I checked, I found that devices of Pico Technology are not yet supported by sigrok, they are just planned.
https://sigrok.org/wiki/Category:Planned

Thank you,
Achref

bennog
Advanced User
Advanced User
Posts: 208
Joined: Mon Nov 26, 2012 9:16 am
Location: Netherlands

Re: Decoding UART using api

Post by bennog »

that is why you need to use the SDK to capture the data and the sigrok libs to decode the captured data to serial data.

Benno

Post Reply