Comments (5)
@PhilDay-CT @vladosam Many thanks for reporting. Fixed in c665ce0
from lds.
BTW I have tried connecting to the network server instead:
chirpstack-network-server:8000
That logs that it has started the UDP forwarder, but if I now add a device in chirpstack, set the same details in client UI and hit Join I get an "Neither client is connected" error
time="2020-08-19T15:26:48+01:00" level=info msg="UDP Forwarder started (MQTT disabled)"
time="2020-08-19T15:31:51+01:00" level=error msg="Neither client is connected"
from lds.
I have also tried starting the client with a conf.toml file based on the example, which gives a bit more logging since it now connects to redis (I guess that means there does have to be a config file, but also I underdtand you only use Redis for the results from OOAP so that doesn't sound like it would be the issue here)
However it still crashes as soon as it connects to mqtt
./gui
time="2020-08-19T15:41:57+01:00" level=debug msg="Connecting to redis localhost:6379 %!s(int=10)"
time="2020-08-19T15:41:57+01:00" level=debug msg="*** Connected to Redis ***"
time="2020-08-19T15:41:57+01:00" level=warning msg="[redis] missing ulFcnt key: redis: nil"
time="2020-08-19T15:41:57+01:00" level=warning msg="[redis] missing dlFcnt key: redis: nil"
time="2020-08-19T15:41:57+01:00" level=warning msg="[redis] missing join nonce key: redis: nil"
time="2020-08-19T15:41:57+01:00" level=warning msg="[redis] missing dev nonce key: redis: nil"
time="2020-08-19T15:41:57+01:00" level=error msg="redis convert error (fNwksSIntKey): redis: nil"
time="2020-08-19T15:47:18+01:00" level=info msg="MQTT connecting..."
time="2020-08-19T15:47:18+01:00" level=info msg="connection established ##"
time="2020-08-19T15:47:18+01:00" level=info msg=subscribed
---- conf.toml --------------
log_level = "debug"
[mqtt]
server = "tcp://localhost:1883"
user = "username"
password = "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"
[gateway]
mac = "b827ebfffe9448d0"
[band]
name = "AU_915_928"
[device]
eui="eee11c479ba2b880"
address=""
network_session_encription_key=""
serving_network_session_integrity_key=""
forwarding_network_session_integrity_key=""
application_session_key=""
marshaler="json"
nwk_key="5a9c0f305e9c6647342fea59a84c4af2"
app_key="7bc312d8e6484d51d50d1414995f2013"
join_eui="0000000000000000"
mac_version=1
profile="OTAA"
joined=false
skip_fcnt_check=true
[data_rate]
bandwith = 125
spread_factor = 10
bit_rate = 0
[rx_info]
channel = 0
code_rate = "4/5"
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 = true
max_exec_time = 500
js_object = "{\n "Flags": 0,\n "Battery": 65,\n "Light": 54\n}"
fport = 2
[[encoded_type]]
name = "Flags"
value = 5.0
max_value = 255.0
min_value = 0.0
is_float = false
num_bytes = 1
[[encoded_type]]
name = "Batería"
value = 80.0
max_value = 255.0
min_value = 0.0
is_float = false
num_bytes = 1
[[encoded_type]]
name = "Luz"
value = 50.0
max_value = 255.0
min_value = -0.0
is_float = false
num_bytes = 1
[redis]
addr = "localhost:6379"
password = ""
db = 10
from lds.
@PhilDay-CT I'd be glad to help but we need to factorize the issues mentioned. Could you please isolate all failure scenarios and provided corresponding configs and logs for each one. Thank you!
from lds.
I am also having the same problem. Lds is installed on ubuntu 18.04 vm machine. And when i try to connect to mqtt gui immediately crashes. Server is on another machine.
time="2020-09-18T15:06:29+02:00" level=warning msg="[redis] missing dlFcnt key: redis: nil"
time="2020-09-18T15:06:29+02:00" level=warning msg="[redis] missing join nonce key: redis: nil"
time="2020-09-18T15:06:29+02:00" level=error msg="redis convert error (fNwksSIntKey): redis: nil"
libEGL warning: DRI2: failed to authenticate
time="2020-09-18T15:06:31+02:00" level=info msg="MQTT connecting..."
time="2020-09-18T15:06:31+02:00" level=info msg="connection established"
I can connect to server with mqtt explorer so firewall is not a problem. And once i click connect on lds there is no change in number of connected clients in mosquitto. This is my conf.toml
log_level = "debug"
[mqtt]
server = "tcp://SERVER_IP: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"
[gateway]
mac = "b827ebfffe9448d0"
[band]
name = "EU_863_870"
[device]
eui="f7efadafb2f60bf6"
address="000f6e3b"
network_session_encription_key="50004000000300000600000000000000"
serving_network_session_integrity_key="60003000000300000600000000000000"
forwarding_network_session_integrity_key="90005000000300000600000000000000"
application_session_key="90001000000300000600000000000000"
marshaler="json"
nwk_key="000a85ff0e3ddf31e4c83b0933626996"
app_key="000a85ff0e3ddf31e4c83b0933626996"
join_eui="0000000006000005"
mac_version=0
profile="OTAA"
joined=false
skip_fcnt_check=true
[data_rate]
bandwith = 125
spread_factor = 10
bit_rate = 0
[rx_info]
channel = 0
code_rate = "4/5"
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 = true
max_exec_time = 500
js_object = "{\n \"Flags\": 0,\n \"Battery\": 65,\n \"Light\": 54\n}"
fport = 2
[[encoded_type]]
name = "Flags"
value = 5.0
max_value = 255.0
min_value = 0.0
is_float = false
num_bytes = 1
[[encoded_type]]
name = "Batería"
value = 80.0
max_value = 255.0
min_value = 0.0
is_float = false
num_bytes = 1
[[encoded_type]]
name = "Luz"
value = 50.0
max_value = 255.0
min_value = -0.0
is_float = false
num_bytes = 1
[redis]
addr = "localhost:6379"
password = ""
db = 10
from lds.
Related Issues (20)
- Communication through UDP Packet forwarder HOT 8
- Working with several servers machines HOT 7
- device addr is equal to 0 in ABP HOT 2
- tmst parameter type issue with forwarder HOT 1
- GUI crash when scrolling output window HOT 8
- Re-join by UDP gives MAC Payload decrypt error HOT 4
- Port GUI to GIO UI HOT 5
- Use LDS as a Library / inside a script HOT 1
- Ubuntu 18.04 needs libgles2-mesa-dev HOT 1
- Repo maintenance HOT 3
- floating point fbos not supported HOT 5
- I don't receive the encoded data HOT 4
- Error while running cli HOT 3
- Create an executable for windows HOT 2
- Cannot join device simulator to ChirpStack via OTAA HOT 3
- run make HOT 3
- Docker Env HOT 1
- i need some help for use this simulator. HOT 3
- Several segmentation faults HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lds.