PiInTheSky / pits

Pi In The Sky Telemetry Software
GNU General Public License v2.0
87 stars 49 forks source link

GPS ConnectionMode #27

Closed jstjst closed 7 years ago

jstjst commented 7 years ago

I studied the gps.c code because I'm creating my own hardware. I saw the two ConnectionModes I2C and Serial/UART. So my question is it necessary to use both of these or can I just use UART.

Also, I ask me why you decide to bit-banging the I2C instead of using the normal one. My Suggestion is, that you want to avoid conflicts with other I2C components. Is this right? But is it also possible to use the normal one and use the second I2C bus for the other components?

daveake commented 7 years ago

The software supports software I2C (used on the PITS board) or serial (used on some of my custom trackers).

PITS uses I2C because the serial port is used for the RTTY transmitter.

Software I2C is used because the UBlox performs clock-stretching at points which are incompatible with the PI hardware I2C implementation (i.e. the latter is broken).

jstjst commented 7 years ago

Thanks for you fast answer