So how to connect virtual gateway to `chirpstack` and interact with it?

I created virtual gateway based on LWN Simulator.

Gateway Bridge’s address is 127.0.0.1:8081 and virtual gateway MAC is 29272682558d9843 .

So how to connect virtual gateway to chirpstack and interact with it?

Are you sure? That’s a rather odd port choice for that purpose.

Anyway, that’s the loopback address, and so only meaningful on the machine on which the bridge is running.

If the fake gateway model is running on the same machine, point it at that address.

If it’s running on a different machine, you’ll first have to expose the gateway bridge on a routable interface and address.

Or better yet, move the gateway bridge to the same machine running the fake gateway, matching how it’s preferable if possible to run the gateway bridge on the gateway’s own computer.

@cstratton , I use gateway simulator as a virtual device, so I think 127.0.0.1 is OK. I don’t understand how to connect virtual gateway to chirpstack, I read docs, but it totally unclear - I don’t see instructions how to connect virtual gateway to ChirpStack on admin dashboard page.

A virtual gateway would connect the same way a real gateway does - presumably (if the gateway bridge is to be involved) the same way as a gateway running the Semtech UDP packet forwarder, since that’s what the gateway bridge is for.

But your port 8081 is an odd choice for the gateway bridge to be listening on.

Chirpstack has published directions for connecting a UDP packet forwarder, try those.

Could you be more specific and give me clear and explicit steps of how I might connect virtual gateway with known bridge adress and MAC to chirpstack?

Hello @sergorl and @cstratton

I have the same problem as you.

This log is the simulator log:


[ Apr 6 09:41:39 ] GW[Lora_Agr]: PUSH ACK received

[ Apr 6 09:41:50 ] DEV[Test_agr_dev] |Activation| {A}: None downlink received

[ Apr 6 09:41:50 ] DEV[Test_agr_dev] |Activation| {A}: Unjoined

[ Apr 6 09:41:50 ] DEV[Test_agr_dev] |Activation| {A}: JOIN REQUEST sent

[ Apr 6 09:41:50 ] DEV[Test_agr_dev] |Activation| {A}: Open RXs

[ Apr 6 09:41:50 ] GW[Lora_Agr]: PUSH DATA send

[ Apr 6 09:41:51 ] GW[Lora_Agr]: PUSH ACK received

[ Apr 6 09:42:02 ] GW[Lora_Agr]: PULL DATA send

[ Apr 6 09:42:02 ] DEV[Test_agr_dev] |Activation| {A}: None downlink received

[ Apr 6 09:42:02 ] DEV[Test_agr_dev] |Activation| {A}: Unjoined

[ Apr 6 09:42:02 ] DEV[Test_agr_dev] |Activation| {A}: JOIN REQUEST sent

[ Apr 6 09:42:02 ] DEV[Test_agr_dev] |Activation| {A}: Open RXs

[ Apr 6 09:42:02 ] GW[Lora_Agr]: PUSH DATA send

[ Apr 6 09:42:03 ] GW[Lora_Agr]: PULL ACK received
2022/04/06 09:39:02 GW[Lora_Agr]: Setup OK!
2022/04/06 09:39:02 GW[Lora_Agr]: UDP connection with "Server IP":1700
2022/04/06 09:39:02 GW[Lora_Agr]: Turn ON
2022/04/06 09:39:02 GW[Lora_Agr]: PULL DATA send

On our server PORT is opened(windows server 2008 R2).


Finally I receive GW message :grinning:

But I cannot figure out how to set up the example device.
Can anyone example setting hot to set a test device and payload the both side (server and end node)?

@bakok , hi, thanks for reply. My simulator logs look like:

C:\lowawan\LWN-Simulator>go run cmd/main.go
2022/04/06 11:24:25 LWN Simulator is online...
2022/04/06 11:24:25 [WS]: Listen [ 127.0.0.1:8000 ]
2022/04/06 11:24:38 [WS]: Socket connected
2022/04/06 11:24:44 [SIM]: Gateway Bridge Address saved
2022/04/06 11:24:46 [SIM]: SETUP OK!
2022/04/06 11:24:46 [SIM]: START
2022/04/06 11:24:46 GW[test0]: Setup OK!
2022/04/06 11:24:46 GW[test0]: UDP connection with 127.0.0.1:1700
2022/04/06 11:24:46 GW[test0]: Turn ON
2022/04/06 11:24:46 GW[test0]: PULL DATA send
2022/04/06 11:24:47 GW[test0]: PULL ACK received

PORT is opened. But I still don’t see gateway in chirpstack.

@bakok , please, give me the steps of how you connected virtual gateway to chirpstack.

Your Server and Simulator are working on the same machine?

@bakok , yes: I use docker compose for chirpstack and LoraWAN Simulator for gateway virtualization on the same machine.

@sergorl
Sorry i Don’t know the docker composer.
Maybe open the IP ports on your firewall.

Look at this tutorial: Install and configure ChirpStack components with Semtech UDP packet-forwarder backend

I’ve been working through the same situation running both chirpstack and LWN-Simulator in docker container and managed to get a bit further using host.docker.internal for the bridge address instead of 127.0.0.1

I still don’t have virtual devices showing in Chripstack from LWN, but this at least makes sense because localhost or 127.0.0.1 is the address of the docker container “machine” LWN is running in, so of course Chirpstack isn’t there. :smile: