Send CSV from raspberry pi3 to raspberry pi 3 with python - python

This problem is making me crazy! I need to send a CSV file from one raspberry pi to another raspberry pi via bluetooth,
The CSV file will be about max 4MB, I have no problem with changing the language if anyone have a better solution.
By the way, I can't read the csv and send it line by line, I don't need that, I need to send just one file, like a compress file, to process it in the other raspberry.
Thank you very much! I will appreciate any help!

Could you use SCP to copy it over on the command line?

Related

How to program a atMega328p MCU with a Raspberry Pi 4 (Python)

I been looking everywhere online for this exact configuration but can't find much.
I want to program my AtMega328p MCU (its on a breadboard) using Python from my Raspberry Pi 4 but I am not sure how to check if communication is going on between them? I have the MISO, MOSI, SCLK, and CE0 pins from the Pi connected to the MISO, MOSI, SCK, SS pins on the AtMega328p respectively.
I understand I have to use SPI communication, however how can I exactly send data from the Raspberry Pi to the MCU to ensure there is communication between the two? Maybe some code to send to the MCU and receive it back? I been using the SPI Dev Python libraries but can't find much info on it. Thank you in advance!!
To load code onto the AVR (program it), you want to use existing software like avrdude that already speaks the AVR ISP protocol. avrdude already has support for using the RPi SPI headers - just use the linuxspi programmer type.
Here's an article by the author that explains it (although there are probably more recent articles if you search around) http://kevincuzner.com/2013/05/27/raspberry-pi-as-an-avr-programmer/
Is there a reason you want to do this from Python specifically? Or are you referring to communicating between the uC firmware and some Python code on the Pi?

How do I send strings from a file by reading it then using lora to transmit it?

I am trying to send a log file using LoRa module where the log file has simple strings, 4 to be exact. I would like to open that file then read it and finally transmit each string one by one to the receiver. I currently used the Github guide of sending "ACK" but unable to figure how I can send string which I need to read from a file. I am using it with Raspberry Pi 3b+. I would like some help in this please
https://github.com/rpsreal/pySX127x/blob/master/LORA_SERVER.py

Retrieve data from hardware(eg CCTV,RFID) if library/API is not available

I want to access data from devices like RFID reader,CCTV camera which will be connected to a device which has SUSE Linux in it.This is a proprietary device --> Huawei AR515.
But, I am not sure in what format, data will be produced by these devices. If i want to get data, say using Python/C++ what will I have to do?
Help in this regard will be appreciated
In python, maybe this way can helps you
Reading serial data in realtime in Python
In C/C++ for linux platform, you can read directly in /dev/.
In both cases, is mandatory knows whats commands and sequences the device require. In general lines, if you before never try this and you're begginer, the first steps more appropriate are the AT commands.
This can help How to Send/Receive SMS using AT commands?

How to read data on Raspberry Pi with Python from HID device?

I am new at Raspberry and Python, so I will be very glad if you help me at my problem. I need to read some data from weight scale when button on scale is pressed. When I connected this scale via USB on PC, I saw that it works as HID. When I pressed the button, data were written in some text document for example. So, now I am going to connect this scale on Raspberry Pi to read and manipulate with data. Can you give me some example, advice, which library I need to import? I want to write a script, that waits for incomming data and then something do with it. Thanks for help.

Use python to parse a log file and print to LCD using GPIO on Raspberry Pi

I am new to python so please forgive me in advance ;-) I am trying parse a log file for a name that always occurs after a known word and print that name to an LCD using the GPIO library. I have the LCD working and can print a given message but not sure how to use python to grep the log file and output that information to the LCD. Any help would be great, thanks...

Categories