I have two Rikaline GPS receivers, one with USB plug and the other with RS232.
I connected the USB one to Raspberry Pi and immediately got the NMEA data correctly using AsyncStreamText.
The RS232 is connected to Arduino Uno by SoftwareSerial and Astream and it shows data that looks like this:
The first number is buffer(0) and the rest of each line is bc.StringFromBytes(buffer).
In the Data of NMEA each line starts and ends with "$" (byte 36 or 0x0024), but this is not like this here.
The Datasheet says :"Dual channel RS-232 or TTL compatible level, with user selectable baud rate (4800-Default, 9600, 19200, 38400).", in the USB it works with 4800 so I tried it here also, but changing to the other rates doesn't correct it.
Any idea what to do in order to see it correctly ? Maybe it is not "UTF8" ? or the bit order LSB/MSB?
I connected the USB one to Raspberry Pi and immediately got the NMEA data correctly using AsyncStreamText.
The RS232 is connected to Arduino Uno by SoftwareSerial and Astream and it shows data that looks like this:
AppStart
149 �����f���39�f��Y�)�
155 �����9��榦&f�.N>>>>F>>>>N�N>>>>>F>>>>N�N>N>>N*>F>N>F>N�NNNN>>>>V2��n⾶��N>>>::"F.N�N>>>>F>>>>N
198 �N>>>>>F>>>>N�N>F>>NN6">:>6NNV>���n⾦��NN�NN�N>F>>N�N>F>N�V"���
155 �����9��榦���.N>>>>F>>>>N�N>>>>>F>>>>N�N>N>>N*>F>N>F>N�NNNN>>>>V2"��n⾶��N>>>::F.N�N>>>>F>>>>N
198 �N>>>>>F>>>>N�N>F>>NN6">:>6NNV>>��n⾦��NN�NN�N>F>>N�N>F>N�V"���
155 �����9��榦���.N>>>>F>>>>N�N>>>>>F>>>>N�N>N>>N*>F>N>F>N�NNNN>>>>V2&��n⾶��N>>>::F.N�N>>>>F>>>>N
198 �N>>>>>F>>>>N�N>F>>NN6">:>6NNV>:��n⾦��NN�NN�N>F>>N�N>F>N�V"���
B4X:
Private Sub AppStart
Serial1.Initialize(115200)
Log("AppStart")
ASerial.Initialize(4800, 11,10)
Astream.Initialize(ASerial.Stream, "Astream_NewData", Null)
End Sub
Sub Astream_NewData(Buffer() As Byte)
Private st As String = bc.StringFromBytes(Buffer)
Log( Buffer(0)," " ,st)
End Sub
In the Data of NMEA each line starts and ends with "$" (byte 36 or 0x0024), but this is not like this here.
The Datasheet says :"Dual channel RS-232 or TTL compatible level, with user selectable baud rate (4800-Default, 9600, 19200, 38400).", in the USB it works with 4800 so I tried it here also, but changing to the other rates doesn't correct it.
Any idea what to do in order to see it correctly ? Maybe it is not "UTF8" ? or the bit order LSB/MSB?
Last edited: