Go to advanced search

by hydr5
Fri May 20, 2016 4:33 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Two devices connected to a single UART
Replies: 27
Views: 9707

Re: Two devices connected to a single UART

Thanks for your answers. You were right danjperron, the problem was that the GPS is continuously sending data. The "retry" was the trick, it works fine and I get good data now. However when I call my function to send data over the NTX, it seemed the script freezes sometimes and nothing more happened...
by hydr5
Mon May 16, 2016 5:47 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Two devices connected to a single UART
Replies: 27
Views: 9707

Re: Two devices connected to a single UART

Thanks for your answer! My problem is that I cannot get well formed data. In this short code: import serial, time def read_gps(): gps = serial.Serial('/dev/ttyAMA0', 9600, timeout=1) gps.flush() NMEA = gps.readline() gps.close() line = NMEA.split(",") print NMEA if(NMEA.startswith("$GPGGA")): return...
by hydr5
Sun May 15, 2016 6:47 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Two devices connected to a single UART
Replies: 27
Views: 9707

Re: Two devices connected to a single UART

Hi, I want to do the same thing than FiddlerJones ie getting GPS data and sending it to NTX2 over a serial communication. But I can't get it working because of the close() instruction which make the data I get from the GPS crazy ^^ This works fine : import serial, time if __name__ == "__main__": try...

Go to advanced search