It is tricky to help because you don't know the format of the serial data being sent. Other people will not know the format as you are not giving enough detail about the device sending the data. Given this, you will need to explore and document the data better before developing the best strategy for handling the data.
It appears that in addition to the data ...
I suspect there are several issues here.
If you have both a terminal program and the python script talking to the port at the same time, only one of them is going to read the data. Both can write without difficulty.
When reading from serial ports, it is often necessary to do some special things: setting raw mode, setting VTIME and VMIN parameters on the ...
This cannot be easily fixed. Upstream USB communication is polling-based: the host periodically sends a request to each device on the bus and checks their reply, and even an empty reply takes a time slot. The shortest polling interval is 1 millisecond.
See if you can change the endpoint polling interval in the FTDI driver configuration (AFAIK 32 milliseconds ...
analogRead a returns a float.. and the print() was probably getting confused too.
Leave out the int inputPinA = A0; because you only need to put A0 in the AnalogRead.
Make int pin = 0; a float, or better use float pin_value = 0.0; for clarity
Then the stuff in your loop becomes:
pin_value = analogRead(A0); Serial.println(pin_value);
There's nothing wrong with your approach for individual text files. For a binary file (or a large number of files/directories which you'd pack together with tar/gzip), you can use base64 to encode them as text:
Receiver (Pi over picocom):
cat | base64 -di > file
Sender (another terminal on the PC):
cat file | base64 > /proc/`pidof picocom`/fd/0
Although old fashioned, Picocom supports filetransfer, x-modem, y-modem, z-modem and ascii-xfr. If I where you, i'd go for z-modem. The package you are looking for is lrzsz (and notzmodem as I stated earlier). Note that it operates a bit different from scp.
wiringSerial is part of wiringPi.
wiringPi is an "Arduino" like C library to control the GPIO.
wiringSerial is a simple wrapper around the underlying Linux serial driver. It simplifies some operations. Look at the source code if you need details.
Note that wiringPi is deprecated (i.e. no longer being developed or supported by its author).
This is a board from a company called Waveshare. I just bought the same one. Here is the documentation I found about it
I also spent quite some time trying to make it run. The solution is really simple though :) You have to use stable source of voltage, not the usb port from your ...