-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Working with several servers machines #12
Comments
For Version 1.0 case (mac_version = 0 in config) you need: ABP case:
OTAA case:
You can take a look here: https://github.com/iegomez/lds/blob/master/device.go#L46 Marshaller is all about application payload, it is not involved in ABP/OTAA processes. Please feel free to ask futher questions (or just close the issue). Hope this helps |
I've recently a bunch of issues in the |
I just tried with this pull request and the result is the same: the message appears on the mosquitto_sub command, but the network server and application server don't react (no response, no log) |
Could you please provide your configuration files for lds and chirpstack server components? I'll try to reproduce |
Sure,
For LDS (OTAA):
For the network server (it's the configuration file located in /etc/chirpstack-network-server/chirpstack-network-server-us-us915.toml with the updated password for postgres):
Application Server (it's the configuration suggested in the "getting started" guide of chirpstack:
Thank you very much for your help! |
Hi @4br3mm0rd You have multiple issues with LDS config:
Try this config: encoded_type = []
log_level = "debug"
[mqtt]
server = "localhost:1883"
user = ""
password = ""
# Uplink topic. %s will be replaced with the gateway mac.
uplink_topic="gateway/%s/event/up"
# Downlink topic. %s will be replaced with the gateway mac.
downlink_topic="gateway/%s/command/down"
[forwarder]
nserver = ""
nsport = ""
[band]
name = "US_902_928"
[device]
eui = "1111111111111111"
address = "22222222"
network_session_encription_key = "33333333333333333333333333333333"
serving_network_session_integrity_key = "00000000000000000000000000000001"
forwarding_network_session_integrity_key = "00000000000000000000000000000001"
application_session_key = "44444444444444444444444444444444"
marshaler = "json"
nwk_key = "00000000000000000000000000000001"
app_key = "00000000000000000000000000000001"
join_eui = "0000000000000001"
mac_version = 0
profile = "ABP"
joined = false
skip_fcnt_check = false
[gateway]
mac = "abababababababab"
bridge_version = ""
[data_rate]
bandwith = 125
spread_factor = 10
bit_rate = 0
[rx_info]
channel = 0
code_rate = ""
crc_status = 1
frequency = 916800000
lora_snr = 7.0
rf_chain = 1
rssi = -57
[raw_payload]
payload = "ff00"
use_raw = false
script = "\n// Encode encodes the given object into an array of bytes.\n// - fPort contains the LoRaWAN fPort number\n// - obj is an object, e.g. {\"temperature\": 22.5}\n// The function must return an array of bytes, e.g. [225, 230, 255, 0]\nfunction Encode(fPort, obj) {\n\treturn [\n obj[\"Flags\"],\n obj[\"Battery\"],\n obj[\"Light\"],\n ];\n}\n"
use_encoder = false
max_exec_time = 500
js_object = "{\n \"Flags\": 0,\n \"Battery\": 65,\n \"Light\": 54\n}"
fport = 2
[redis]
addr = ""
password = ""
db = 0
[window]
width = 1200
height = 1000
[provisioner]
hostname = ""
username = ""
password = ""
path = ""
Token = "" |
Hi everyone!
I am working in an environment with separate machines for the Chirpstack Network Server, Application Server, and the Device Simulator. I am trying to send a Join Request using the following configuration.
Where:
For some reason, I can see the message arrive to the mqtt on the Network server, but I do not see the Network Server handle it, and the message is not forwarded to the Application Server.
I also have a few questions:
I hope you can help me (or redirect me to some relevant documentation)!
Thank you very much!
The text was updated successfully, but these errors were encountered: