Click here to Skip to main content
15,844,477 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more: , +
hey everyone,
for my project i need to import some files from a microcontroleur to my raspberry pi 3 and i need some help .
Please any suggestion!!!

What I have tried:

i need help to know hox to proceed.thnx
Updated 6-Mar-18 1:31am

1 solution

It depends on the communication medium between the raspberry and the microcontroller. For instance if you are using the UART (serial communication) then you have to implement a (very simple) protocol for transferring binary data.
Share this answer
Myriem el 6-Mar-18 6:36am    
yes i'm using a serial communication a rs323 usb cable,how can a implement this protocol
CPallini 6-Mar-18 10:04am    
So you are probably using a USB to TTL converter. At first, make sure you are able to read and write simple strings. Then, you could try transferring binary blocks of data. In a minimalistc approach you first transfer a header (containing file info like, length, etc...) then trasfer a sequence of binary blocks of data (the file itsef). You should probably use a CRC on every block.
Myriem el 7-Mar-18 4:24am    
do i need pyserial?
CPallini 7-Mar-18 4:46am    
It would be handy (that is yes you need it).
Myriem el 18-Mar-18 16:55pm    
sorry for the delayed respons i choosed to work with uart so i need to activate uart on my raspberry pi 3 and i dindn't find a good tutoriel

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900