Connecting iC880A-SPI concentrator to Raspberry Pi 2 Type B

Hello,

I have recently acquired an iC880A-SPI concentrator and a Raspberry Pi 2 Type B to build a gateway using the reference code from Github ( https://github.com/Lora-net/lora_gateway and https://github.com/Lora-net/packet_forwarder )

I have checked IMST documentations here:
http://www.wireless-solutions.de/forum/images/stories/downloads/Radio%20Modules/iC880A/iC880A_Datasheet_V0_15.pdf
http://www.wireless-solutions.de/forum/images/stories/downloads/Radio%20Modules/iC880A/iC880A-SPI_QuickStartGuide.pdf

On paragraphs 1.4 and later from the QuickStartGuide, there are some descriptions of the Pin headers.

I am not very familiar with the GPIO connections on Raspberry Pi and would like to check the wiring between the Pi and the concentrator.

Would I just need to wire CLK/MISO/MOSI/NSS and Reset pins from the IC880A-SPI to the Raspberry Pi 2 ?
What are the corresponding pins on the Raspberry Pi 2 side ?

About power supply on the IC880A-SPI, I suppose it is preferable to provide a separate power supply to the concentrator rather than getting power from the RPI 2 ?

Finally, can anyone confirm having a working gateway with setup similar to mine (RPI2 with iC880A-SPI) ?

Thanks for your help.

I have used a 5V 3A powersupply from Conrad
https://www.conrad.nl/nl/hn-power-hnp18-050-c-stekkernetvoeding-vaste-spanning-5-vdc-3000-ma-512693.html
although i think 2A is good enough. I have connected it to the PI-pins 4(+5V) and 6(gnd).
Connections RPI <=> IC880
+5V…2…21
NSS…26…17 (i have rpi-24 but changed the source of poly-forwarder)
MOSI…19…16
MISO…21…15
SCLK…23…14
reset…39…13 =gnd - dont know what else to do with it
GND…25…12

please doublecheck the connections for yourself…:cold_sweat:

I will next connect an Adafruit ultimate GPS to the PI’s rxd/txd and the IC880’s PPS.
See what happens…

succes,
Art

I got this configuration up and running easily last week. The gateway has been running since then (Utrecht Noord-Oost, Holland), without the power block getting (too) warm.

I used a 5V 2A power block for the Raspberry Pi, with the Pi then powering the IC880A-SPI. I followed the instructions and the installation script (!!) at https://github.com/ttn-zh/ic880a-gateway/tree/spi (don’t forget to select the spi branch).

1 Like

Thanks to you both arthoo and ernestopace.
Actually I did not know about that that auto install script, thanks for the link and the details on the connections.
I’ll post back when I have everything running :smile:

Cheers.

Do not get your hopes up for the adafruit gps I had some bad experience with it I ended up with this board http://ava.upuaut.net/store/index.php?route=product/product&path=59_60&product_id=117 which you can use to have your own stratum 1 ntp server on your raspberry at the same time.

@w4e,
Do you still know what the problem/failure was?
Something with the messageformat?
On my windowsill it works a treat. It has a fix in 40sec after a cold start.

Fo reference the board https://www.kiwi-electronics.nl/adafruit-ultimate-gps-hat-voor-raspberry-pi?search=ADA-2324 and the issue is that the pps signal was there at moments it shouldn’t which made the solution (NTP server) unreliable … could be an isolated case just sharing my not so good experience …

Hello,

Just coming back to confirm the install went smooth, thanks guys for the tips !

The concentrator interface seems to be work and running util_tx_test gives some good feedback and LEDs flashing on the IC880A.

sudo ./util_tx_test -f 868 -r 1257
Sending -1 packets on 868000000 Hz (BW 125 kHz, SF 10, CR 1, 16 bytes payload, 8 symbols preamble) at 14 dBm, with 1000 ms between each
INFO: concentrator started, packet can be sent
Sending packet number 1 ...OK
Sending packet number 2 ...OK
....

Next, I need to get a node and connect it to the gateway.

Cheers.

1 Like

Hi all, hi lojim,

First of all, my first post here and enjoying this forum and the input of many of you to help out!

Lojim, I have almost the same configuration not a RPi 2 but a B+ and followed the perfect installation script without any problem. Unfortunately I can’t get the poly_pkt_fwd up and running, I keep getting the ERROR: [main] failed to start the concentrator.

Did you do anything more than the installation script?

The install scripts setup the gateway software as a service which gets starter achter a reboot. So afterthe installatie( and perhaps a reboot) the gateway should be running.
You can check if it is running by looking at the system log file /var/log/daemon.log. The gateway posts some info here every minute or so.
Remember to use sudo to view this file.

You could also check if the gateway is running by using ps -ef.

If you want to run by hand, don’t forget to run the gateway with sudo.

Finally, make sure you have enabled SPI with the programming raspi-config, under Advanced options - SPI.

Good luck.

If you’re getting that error, chances are there’s either a problem with the wiring or -as @ernestopace said- you need to enable SPI using raspi-config.

Thanx for your support gentleman! it was the cabling. Counting is hard :smile:

Cheers!

Hi guys,

I’ve followed this for the gateway: https://github.com/ttn-zh/ic880a-gateway/tree/spi
and this for a node: https://thinginnovations.uk/getting-started-with-microchip-rn2483-lorawan-modules

Can someone help me as to what I should read to do the next step (make them communicate)?

Cheers

Well, I think you’re all set! If the gateway is running and the node is sending data, they head over to the API and see if you see your data there.

I think there is a problem. How do I find the ttn address to put in this line:

sendCmd(“mac set devaddr AABBCCDD”); // Set own address

EDIT: The problem seems to be that it never gets through the waitForResponse() function. so lora.available is never true…

I had the problem documented here:
https:// github.com/Lora-net/lora_gateway/issues/17
So I just didn’t connect the TX of the Pi. Is it necessary to have the Pi being able to talk back to the GPS? My GPS sends its status once per second, and everything seems to be fine.

Greetings!
Excuse me for newbie’s question )
Does IC880A board match to use it in LoRa network environment?
I found the and want to build my own system.
I faced with the problem to make a gateway.
In project description I found out that the LoRaWan concentrator is needed.
But I did not found the schematics of this board.
The IMST sell the IC880A board, and, as far as I understand, the board is the same. Is’nt it?

Thanks in advance!
Best regards!

Yes, it does. Check this guide: https://github.com/ttn-zh/ic880a-gateway/wiki

gonzalo, thank you very much! I will read the information you gave