cancel
Showing results for 
Search instead for 
Did you mean: 

Stm32 to Python

MFara.4
Associate III

I would be happy if you share with me some example codes about transmitting data from stm32 to python via serial!

14 REPLIES 14

I am really thankful!

but as I use macOS too, There's a new Mac app called Serial, that I want to see my data on it or by importing serial on Python! can you give me idea?

Thanks for the time and consideration

Thanks for the reply!

I am getting this error...

SerialException: [Errno 16] could not open port /dev/tty.usbmodem143103: [Errno 16] Resource busy: '/dev/tty.usbmodem143103'

At some level you're going to need to get a mastery of the languages and equipment you've chosen to use.

Perhaps it is already open by another application? Or needs some different attributes?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

Hi MFara.4,

I do not know this app, and I'm not MacOS user.

Usually, I use Python and pySerial plugin under Linux or Windows.

Tesla DeLorean  sent you a good code in python, this should work well on your MacOs, I will not superset his code, I use pretty same script with writing UART data into a csv file.

After that it is python, whatever the operating system.

You must make the effort to learn it.

Good luck,

BR

Romain,

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.