brocaar / chirpstack-simulator

Simulator utility for the ChirpStack open-source LoRaWAN Network-Server.
https://www.chirpstack.io
MIT License
64 stars 51 forks source link

LORA Simulator don't do anything #5

Open nicolasbertaud opened 3 years ago

nicolasbertaud commented 3 years ago

I have installed the CHirpstack simulator . I have set up the .toml file for my set up. I use Two VM one is for the simulator the other is the NS. When i lauch the simulator nothing happened. For promotheus i don't set up anything but seems it try to set up it locally. Could my problem linked to promotheus configuration ? user1@cl3vm1130:~/chirpstack-simulator/chirpstack-simulator-master$ ./build/chirpstack-simulator -c chirpstack-simulator.toml INFO[0000] starting ChirpStack Simulator docs="https://www.chirpstack.io/" version= INFO[0000] as: connecting api client insecure=true server="10.35.97.101:8080" INFO[0000] as: connecting to mqtt broker server="tcp://10.35.97.101:1883" INFO[0000] ns: connecting to mqtt broker server="tcp://10.35.97.101:1883" INFO[0000] starting Prometheus endpoint server bind="0.0.0.0:9000"

the toml file to illustrate ^Cuser1@cl3vm1130:~/chirpstack-simulator/chirpstack-simulator-master$ cat chirpstack-simulator.toml [general]

Log level

#

debug=5, info=4, warning=3, error=2, fatal=1, panic=0

log_level=5

Application Server configuration.

[application_server]

API configuration.

#

This configuration is used to automatically create the:

* Device profile

* Gateways

* Application

* Devices

[application_server.api]

JWT token.

#

The JWT token to connect to the ChirpStack Application Server API. This

token can be generated using the login API endpoint. In the near-future

it will be possible to generate these tokens within the web-interface:

https://github.com/brocaar/chirpstack-application-server/pull/421

jwt_token="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJjaGlycHN0YWNrLWFwcGxpY2F0aW9uLXNlcnZlciIsImV4cCI6MTYwNjgxNTY5MCwiaWQiOjEsImlzcyI6ImNoaXJwc3RhY2stYXBwbGljYXRpb24tc2VydmVyIiwibmJmIjoxNjA2NzI5MjkwLCJzdWIiOiJ1c2VyIiwidXNlcm5hbWUiOiJhZG1pbiJ9.n2oe0W-foWX6N4ernqqaH1k7F3xOJ1GBGQJfy7QICMQ"

Server.

#

This must point to the external API server of the ChirpStack Application

Server. When the server is running on the same machine, keep this to the

default value.

server="10.35.97.101:8080"

Insecure.

#

Set this to true when the endpoint is not using TLS.

insecure=true

MQTT integration configuration.

#

This integration is used for counting the number of uplinks that are

published by the ChirpStack Application Server integration.

[application_server.integration.mqtt]

MQTT server.

server="tcp://10.35.97.101:1883"

Username.

username=""

Password.

password=""

Network Server configuration.

#

This configuration is used to simulate LoRa gateways using the MQTT gateway

backend.

[network_server]

MQTT gateway backend.

[network_server.gateway.backend.mqtt]

MQTT server.

server="tcp://10.35.97.101:1883"

Username.

username=""

Password.

password=""

Simulator configuration.

#

Example:

[[simulator]]

#

Service-profile ID.

It is recommended to create a new organization with a new service-profile

in the ChirpStack Application Server.

service_profile_id="6689481a-4e01-438c-a8f0-45b6f5adb78b" #

Duration.

This defines the duration of the simulation. If set to '0s', the simulation

will run until terminated. This includes the activation time.

duration="0s" #

Activation time.

This is the time that the simulator takes to activate the devices. This

value must be less than the simulator duration.

activation_time="1m" #

Device configuration.

[simulator.device]

#

Number of devices to simulate.

count=5 #

Uplink interval.

uplink_interval="2m" #

FPort.

f_port=10 #

Payload (HEX encoded).

payload="010203" #

Frequency (Hz).

frequency=868100000 #

Bandwidth (Hz).

bandwidth=125000 #

Spreading-factor.

spreading_factor=7 #

Gateway configuration.

[simulator.gateway]

#

Event topic template.

event_topic_template="gateway/{{ .GatewayID }}/event/{{ .Event }}" #

Command topic template.

command_topic_template="gateway/{{ .GatewayID }}/command/{{ .Command }}" #

Min number of receiving gateways.

min_count=1 #

Max number of receiving gateways.

max_count=3

Prometheus metrics configuration.

#

Using Prometheus (and Grafana), it is possible to visualize various

simulation metrics like:

* Join-Requests sent

* Join-Accepts received

* Uplinks sent (by the devices)

* Uplinks sent (by the gateways)

* Uplinks sent (by the ChirpStack Application Server MQTT integration)

[prometheus]

IP:port to bind the Prometheus endpoint to.

#

Metrics can be retrieved from /metrics.

:wqbind="10.35.97.101:9000"

user1@cl3vm1130:~/chirpstack-simulator/chirpstack-simulator-master$

any idea ?

Sudip-star-a11y commented 2 years ago

I am also facing the same issue. @brocaar Could you please help on the same ?

sergorl commented 2 years ago

@Sudip-star-a11y @nicolasbertaud Do you find solution?

bertaudnicolas commented 2 years ago

no . I have seen several other people have problem withe simulator o so i have stopped to try it