RAK2245 - LoRa Concentrator modules


(Kenyu) #7

Do you mean you try the RAK2245 or RAK831? @fomi


(Digiheart) #8

The RAK2245


(Fomi) #9

Hi, @digiheart
I’ve used the source code https://github.com/RAKWireless/RAK2245-LoRaGateway-RPi-Raspbian-OS on RAK2245+RPi for testing, and got the GPS data successfully as follow:
image
Please check the red line information, they are GPS data, and ignore the green line error information.
BTW, i’ve just updated Github to remove these additional error information, you can check it again.


(Digiheart) #10

Hi fomi,

Thank you for the help.

I installed a fresh Raspbian and tested the latest commit, and I can confirm that some of the errors during installation are gone and that the amount of warmings is way less. However I still can’t get valid coordinates. I have all antennas plugged in and the device is standing by the window. Here is the output:

44

Any suggestion?


(Jeff Uk) #11

Dont know if it will help but whilst struggling to get quick fix and consistent/stable location lock on RAK5205 trackers (same/similar GPS chip?) over last few days @paulb called out fact I was inside near window (with low K glass treatments etc.) that might be screwing with timing/multipaths etc. When I took outside all fast and stable…perhaps try same with your GW or at least if GPS on long lead get ant outside window whilst testing?! :wink: Good Luck!..


(Digiheart) #12

Thank you for the advice, however I tried to put the gateway and without any success. Still invalid coordinates


(Fomi) #13

Hi, @digiheart

Have you open the i2c interface according to the Github readme:
image

If you have done that, i think that you can reduce the rate of i2c and try again.


(Fomi) #14

@digiheart
You can do as the following steps:

step 1. Check the GPS connection as follow:
image

step 2: Modify the /boot/config.txt file as the following content to reduce the i2c rate:
dtparam=i2c1=on
dtparam=i2c_arm_baudrate=10000

Then, restart the GW and check the GPS data.


(Fomi) #15

I’ve just updated the Github repo to add a folder for testing GPS fuction.
You can check it.


(Jmfdiaz) #16

Has anyone tries the RAK2245 96Boards IoT Edition? With Orange Pi i96 as a possible target board…


(Digiheart) #17

Still nothing…

I even reinstalled a fresh raspbian, cloned the latest version of your repository, changed baudrate and still returning the same error.


#18

maybe its a good idea to contact the developpers (fomi) direct (PM), you could have a broken board, seems you did everything to fix this.
my 2 cents :wink:


(Kenyu) #19

we should have some update soon. I will keep to update here


(Kenyu) #20

I would like to exchange the hardware in your hand. pls email ken.yu@rakwireless.com


#21

@digiheart @fomi @kenyu I have the same board and same issues, unfortunately. Also on the LoRa Server forum there is somebody else with the same issue (https://forum.loraserver.io/t/raspberry-pi-rak2245-rak2243/3512) The RAK provided LoRa Gateway OS image does provide an utility which prints the NMEA output, which (in my case) prints NMEA data, but it contains corrupted bytes:

$GPVT�,,,,,,,,,N*30
$GPRMC,121431.00,V,,,,,,,160219,,,N*74
$GPVTG,,,,,,,,,N*30
$GPGGA,121431.00,,,,,0,00,99.99,,,,,,*62
$GPRMC,121432.00,V,,,,,,,160219,,,N*77
$GPVTG,,,,,,,,,N*30
$GPGGA,121432.00,,,,,0,00,99.99,,,,,,*61
$GPRMC,121433.00,V,,,,,,,160219,,,N*76
$GPVTG,,,,,,,,,N*30
$GPRMC,121434.00,V,,,,,,,160219,,,N*71
$GPVTG,,,,,,,,,N*30
$GPGGA,121434.00,,,,,0,00,99.99,,,,,,*67
$GPGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99*30
$GPGLL,,,,,121434.00,V,N*4B
$GPRMC,121435.00,V,,,,,,,160219,,,N*70
$�PVTG,,,,,,,,,N*30
$GPGGA,121435.00,,,,,0,00,99.99,,,,,,*66
$GPRMC,121436.00,V,,,,,,,160219,,,N*73
$GPRMC,121438.00,V,,,,,,,160219,,,N*7D
$GPVTG,,,,,,,,,N*30
$GPGGA,121438.00,,,,,0,00,99.99,,,,,,*6B
$GPGSA,�,1,,�,,,,,,,,,,99.99,99.99,99.99*30
$GPGLL,,,,,121438.00,V,N*47
$GPRMC,121439.00,V,,,,,,,160219,,,N*7C
$GPVTG,,,,,,,,,N*30
$GPGGA,121439.00,,,,,0,00,99.99,,,,,,*6A
$GPRMC,121440.00,V,,,,,,,160219,,,N*72
$GPV�G,,,,,,,,,N*30
$GPRMC,121441.00,V,,,,,,,160219,,,N*73
$GPVTG,,,,,,,,,N*30
$GPGGA,121441.00,,,,,0,00,99.99,,,,,,*65
$GPRMC,121442.00,V,,,,,,,160219,,,N*70
$GPVTG,,,,,,,,,N*30
$GPTXT,01�01,00,txbuf alloc*7F
$GPRMC,121443.00,V,,,,,,,160219,,,N*71
$GPRMC,12�444.00,V,,,,,,,160219,,,N*76
$GPVTG,,,,,,,,,N*30
$GPGGA,121444.0�,,,,,0,00,99.99,,,,,,*60
$GPRMC,121446.00,V,,,,,,,160219,,,N*74
$GPVTG,,,,,,,,,N*30
$GPGGA,121446.00,,,,,0,00,99.99,,,,,,*62
$GPGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99*30
�$GPVTG,,,,,,,,,N*30,,,,,160219,,,N*7A
$GPRMC,121449.00,V,,,,,,,160219,,,N*7B
$GPVTG,,,,,,,,,N*30
$GPGGA,121449.00,,,,,0,00,99.99,,,,,,*6D
$GPRMC,121450�00,V,,,,,,,160219,,,N*73
$GPVTG,,,,,,,,,N*30
$GPRMC�121451.00,V,,,,,,,160219,,,N*72
$GPVTG,,,,,,,,,N*30
$GPGGA,121451.00,,,,,0,00,99.99,,,,,,*64
$GPRMC,121452.00,V,,,,,,,160219,,,N*71
$GPVTG,,,,,,,,,N*30
$GPRMC,121453.00,V,,,,,,,160219,,,N*70
$GPVTG,,,,,,,,,N*30
$GPGGA,121453.00,,,,,0,00,99.99,,,,,,*66
$GPRMC,121454.00,V,,,,,,,160219,,,N*77
$GPVTG,,,,,,,,,N*30
$GPRMC,121455.00,V,,,,,,,160219,,,N*76
$GPVTG,,,,,,,,,N*30
$GPGGA,121455.00,,,,,0,00,99.99,,,,,,*60
$GPRMC,121456.00,V,,,,,,,160219,,,N*75
$GPVTG,,,,,,,,,N*30
$GPRMC,12�457.00,V,,,,,,,160219,,,N*74
$GPVTG,,,�,,,,,N*30
$GPGGA,121457.00,,,,,0,00,99.99,,,,,,*62
$GPRMC,121458.0�,V�,,,,,,160219,,,N*7B
$GPVTG,,,,,,,,,N*30
$GPRMC,121459.00,V,,,,,,,160219,,,N*7A
$GPVTG,,,,,,,,,N*30
$GPGGA,121459.00,,,,,0,00,99.99,,,,,,*6C
$GPRMC,121500.00,V,,,,,,,160219,,,N*77
$GPVTG,,,,,,,,,N*30
$GPRMC,121501.00,�,,,,,,,160219,,,N*76
$GPVTG,,,,,,,,,N*30
$GPGGA,121501.00,,,,,0,00,99.99,,,,,,*60
$GPRMC,12150�.00,V,,,,,,,160219,,,N*75
$GPVTG,,,,,,,,,N*30
$GPRMC,121503.00,V,,,,,,,160219,,,N*74
$GPVTG,,,,,,,,,N*30
$GPGGA,121503.00,,,,,0,00,99.99,,,,,,*62
$GPRMC,121504.00,V,,,,,,,160219,,,N*73
$GPVTG,,,,,,,,,N*30
$GPRMC,121505.00,V,,,,,,,160219,,,N*72
$GPVTG,,,,,,,,,N*30
$GPGGA,121505.00,,,,,0,0�,99.99,,,,,,*64
$GPRMC,121506.00,V,,,,,,,1�0219,,,N*71
$GPVTG,,,,,,,,,N*�0
$GPRMC,121507.00,V,,,,,,,160219,,,N*70
$GPVTG,,,,,,,,,N*30
$GPGGA,121507.00,,,,,0,00,99.99,,,,,,*66
$GPRMC,121508.00,V,,,,,,,160219,,,N*7F
$GPVTG,,,,,,,,,N*30
$GPGGA,121508.00,,,,,0,00,99.99,,,,,,*69
$GPGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99*30
$GPGLL,,,,,121508.00,V,N*45
$GPRMC,121509.00,V,,,,,,,160219,,,N*7E
$GPVTG,,,,,,,,,N*30
$GPRMC,121510.00,V,,,,,,,160219,,,N*76
$GPVTG,,,,,,,,,N*30
$GPRMC,121512.00,V,,,,,,,160219,,,N*74
$GPVTG,,,,,,,,,N*30
$GPGGA,121512.00,,,,,0,00,99.99,,,,,,*62
$GPGSA,A,1�,,,,,,,,,,,,99.99,99.99,99.99*30
$GPGLL,,,,,121512.00,V,N*4E
$GPRMC,121513.00,V,,,,,,,160219,,,N*75
$GPVTG,,,,,,,,,N*30
$GPRMC,121514.00,V,,,,,,,160219,,,N*72
$GPVTG,,,,,,,,,N*30
$GPGGA,121514.00,,,,,0,00,99.99,,,,,,*64
$GPRMC,121516.00,V,,,,,,,160219,,,N*70
$GPVTG,,,,,,,,,N*30
$GPGGA,121516.00,,,,,0,0�,99.99,,,,,,*66
$GPGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99*30
$GPGLL,,,,,121516.00,V,N*4A
$GPTXT,01,01,00,txbuf alloc*7F
$GPRMC,121517.00,V,,,,,,,160219,,,N*71
$GPRMC,121518.00,V,,,,,,,160219,,,N*7E
$GPVTG,,,,,,,,,N*30
$GPGGA,121518.00,,,,,0,00,99.99,,,,�,*68
$GPRMC,121520.00,V,�,,,,,160219,,,N*75
$GPVTG,,,,,,,,,�*30
$GPGGA,121520.00,,,,,0,00,99.99,,,,,,*63
$GPGSA,A,1,,,,,,,,,,,,,99.99,99.99,99�99*30
$GPRM�,121522.00,V,,,,,,,160219,,,N*77
$GPVTG,,,,,,,,,N*30
$GPRMC,121523.00,V,,,,,,,160219,,,N*76
$GPVTG,,,,,,,,,N*30
$GPRMC,121524.00,V,,,,,,,160219,,,N*71
$GPVTG,,,,,,,,,N*30
$GPGGA,121524.00,,,,,0,00,99.99,,,,,,*67
$GPRMC,12152�.00,V,,,,,,,160219,,,N*70
$GPVTG,,,,,,,,,N*30
$GPRMC,121526.00,V,,,,,,,160219,,,N*73
$GPVTG,,,,,,,,,N*30
$GPGGA,121526.00,,,,,0,00,99.99,,,,,,*65
$GPRMC,121527�00,V,,,,,,,160219,,,N*72
$GPVTG,,,,,,,,,N*30
$GPRMC,121528.00,V,,,,,,,160219,,,N*7D
$GPVTG,,,,,,,,,N*30
$GPGGA,121528.00,,,,,0,00,99.99,,,,,,*6B
$GPRMC,121529.00,V,,,,,,,160219,,,N*7C
$GPVTG,,,,,,,,,N*30
$GPRMC,121530.00,V,,,,,,,160219,,,N*74
$GPV�G,,,,,,,,,N*30
$GPGGA,121530.00,,,,,0,00,99.9�,,,,,,*62
$GP�MC,121531.00,V,,,,,,,160219,,,N*75
$GPVTG,,,,,,,,,N*30
$GPRMC,121532.00,V,,,,,,,160219,,,N*76
$GPVTG,,,,,,,,,N*30�
$GPGGA,1215�2.00,,,,,0,00,99.99,,,,,,*60
$GPRMC,121533.00,V,,,,,,,160219,,,N*77
$GPVTG,,,,,,,,,N*30�
$GPRMC,121534.00,V,,,,,,,160219,,,N*70
$GPVTG,,,,,,,,,N*30
$GPGGA,121534.00,,,,,0,00,99.99,,,,,,*66
$GPRMC,121535.00,V,,,,,,,160219,,,N*71
$GPVTG,,,,,,,,,N*30
$GPRMC,121536.00,V,,,,,,,16�219,,,N*72
$GPVTG,,,,,,,,,N*30
�GPGGA,121536.00,,,,,0,00,99.99,,,,,,*64
$GPRMC,121537.00,V,,�,,,,160219,,,N*73
$GPVTG,�,,,�,,,N*30
$GPRMC,121538.00,V,,,,,,,160219,,,N*7C
$GPVTG,,,,,,,,,N*30
$GPGGA,121538.00,,,,,0,00,99.99,,,,,,*6A
�GPRMC,121539.00,V,,,,,,,160219,,,N*7D
$GPVTG,,,,,,,,,N*30
$GPRMC,121540.00,V,,,,,,,160219,,,N*73
$GPVTG,,,,,,,,,N*30
$GPGGA,121540.00,,,,,0,00,99.99,,,,,,*65
$GPRMC,121541.00,V,�,,,,,160219,�,N*72
$GPVTG,,,,,,,,,N*30
$GPRMC,121542.00,V,,,,,,,160219,,,N*71
$GPVTG,,,,,,,,,N*30
$GPRMC,121543.00,V,,,,,,,160219,,,N*70
$GPVTG,,,,,,,,,N*30
$G�GGA,121543.00,,,,,0,00,99.99,,,,,,*66
$GPGSA,A,1,,,,,,,,,,,,,99.9�,99.99,99.99*30
$GPGLL,,,,,121543.00,V,N*4A�
$GPRMC,121544.00,V,,�,,,,160219,,,N*77
$GPVTG,,,,,,,,,N*30
$GPGGA,121544.00,,,,,0,00,99.99,,,,,,*61
$GPGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99*30
$GPRMC,121546.00,V,,,,,,,160219,,,N*75
$GPVTG,,,,,,,,,N*30
$GPGGA,121546.00,,,,,0,00,99.99,,,,,,*63
$GPGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99*30
$GPRMC,121547.00,V,,,,,,,160219,,,N*74
$GPVTG,,,,,,,,,N*30
$GPGGA,121547.00,,,,,0,00,99.99,,,,,,*62
$GPRMC,121548.00,V,,,,,,,160219,,,N*7B
$G�VTG,,,,,,,,,N*30
$GPRMC,121549.00,V,,,,,,,160219,,,N*7A
$GPVTG,,,,,,�,,N*30

(https://github.com/RAKWireless/RAK2245-LoRaGateway-RPi-LoRa-Gateway-OS/blob/master/layers/loraserver/meta-semtech/recipes-lora/lora-packet-forwarder/lora-packet-forwarder/gps.c)

@fomi the output I’m seeing looks a lot like this issue: https://portal.u-blox.com/s/question/0D52p00008HKDtfCAH/how-to-use-i2c-to-get-the-nmea-frames

The problem is that sometimes (approximately 1 on 12 character that i read are not good), i got a non-ascii character or i am simply missing one character resulting in a bad frame.

Personally I would have prefered when the GPS was using the Raspberry Pi UART interface like the RAK831. That way no patching of the packet-forwarder would have been needed and it would not break compatibility with other GPS utilities that usually read from an UART interface.


(Fomi) #22

Hi, @brocaar @digiheart

Thanks for your advice.

I’ve discussed with team, and we decide to use uart interface for RAK2245 GPS as usual.

We’ll send you a new RAK2245 Pi Hat board which uses uart for GPS ASAP.


(Kenyu) #23

All, As Fomi mentioned, we will adjust the product strategy and use UART interface as regular model# for RAK2245 Pi Hat, But in order to support the developer who like to Add on cellular Pi Hat, we will assembly with another model# using I2C in Pilot Gateway Pro and RAK provide the workable firmware in that device. Some of the developer already purchase the RAK2245 Pi hat, they can use current firmware to start the testing at least:https://github.com/RAKWireless/RAK2245-LoRaGateway-RPi-Raspbian-OS

We will also contact with the people who have that inhand and exchange the board if they need UART interface to play. Don’t worry everybody:)


(Michael) #24

Hi @kenyu @fomi,
I would also be very happy to get my board exchanged with an UART version. Just found the time to start working on my resion.io image when I learned about the I2C connection of gps module.

Also there was a little mistake with the two included u.FL <-> SMA pigtails. It fits for the LoRa-Antenna, but for the GPS Antenna an Reverse-SMA pigtail would have been needed. Not big deal, because I had the needed parts flying arround. But I think you might want to know. See the picture I took:

IMG_0089

Cheers and have a nice weekend!
Michael


(Drzoidberg) #25

When will new orders be fullfilled with the UART version? I’m about buy a board, but willing to wait a for the new version rather than getting an exchange.


(Drzoidberg) #26

@kenyu, @fomi,
I’d like to buy a RAK2245 Pi Hat board, but I want to be sure I get the latest UART version that was mentioned in your previous post. How can I specifically order the latest UART version?