We use cookies to try and give you a better experience in Freshdesk.
You can learn more about what kind of cookies we use, why, and how from our Privacy policy. If you hate cookies, or are just on a diet, you can disable them altogether too. Just note that the Freshdesk service is pretty big on some cookies (we love the choco-chip ones), and some portions of Freshdesk may not work properly if you disable cookies.
We’ll also assume you agree to the way we use cookies and are ok with it as described in our Privacy policy, unless you choose to disable them altogether through your browser.
Dear Sirs,
could you please test this Bash script ( https://github.com/sfoglia/iot_tester/blob/main/milesight_test.sh ) with a Milesight WS558 and let me know if you can get the relays to respond?
The device is activated and connected via LoRaWAN and MQTT. I can receive its status updates, but I cannot get any downlink command to work.
I tested trying all relays ON/OFF and sequential activation of relays L1–L8. The script reports
MQTT publish OK, and all messages appear on theug/downlinkdatatopic. However, none of the relays responds.Here is an example of the payload generated by the script:
The script generates the following payloads:
All relays ON:
CP//(hex:08ffff)All relays OFF:
CP8A(hex:08ff00)Relay L1 ON:
CAEB(hex:080101)Relay L8 ON:
CICA(hex:088080)I also receive the following MQTT acknowledgement notifications:
The
acknowledged: falsefield makes me wonder whether the device is actually receiving the downlinks, whether the payload format is correct, or whether something is wrong with the MQTT-to-LoRaWAN integration.Could someone with a WS558 please test these commands and confirm the correct downlink payload format, FPort, and MQTT topic?
Any suggestions or working examples would be greatly appreciated.
Thank you in advance!
0 Votes
4 Comments
Aslan Lu posted 11 days ago Admin
Hi,
Thanks for your reply.
Glad to hear that all working properly.
It is an excellent job finishing this job.
Please feel free to reach us if you have any other questions.
Wish you have a nice day.
0 Votes
Chiara posted 14 days ago
Hello,
I've rewritten settings on device via NFC with Toolbox now it's properly working, also from gateway all white rows appears.
Best regards
0 Votes
Chiara posted 17 days ago
Dear Aslan,
thanks for reply, attached you can find the log exported from the gateway.
On the web ui grey and blue rows are shown.
Best regards
Attachments (1)
UG5620261104-201556.0.0.9datastream.csv
7.67 KB
0 Votes
Aslan Lu posted 18 days ago Admin
Hi Chiara,
Thanks for sharing your excellent script.
The script itself looks great, we would like to check further.
Could you please check on your network server about the packet it sends and the packet the device replied?
It would help us better check where the issue locates.
Wish you have a nice day.
0 Votes
Login or Sign up to post a comment