New answers tagged

0

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 ...


1

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 ...


3

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 ...


0

First thing to try is separately powering the Pi, using a recommended supply to make sure it's getting enough. Then do some research on the vendor/device id and dwc_otg. Dave


0

MattG, 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); Dave


3

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 Also ...


1

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.


1

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).


0

This is a board from a company called Waveshare. I just bought the same one. Here is the documentation I found about it https://www.waveshare.com/w/upload/4/4a/GSM_GPRS_GNSS_HAT_User_Manual_EN.pdf 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 ...


Top 50 recent answers are included