WS558 publish states but ignore commands

Posted 23 days ago by Chiara

Post a topic
Solved
C
Chiara

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 the ug/downlinkdata topic. However, none of the relays responds.

Here is an example of the payload generated by the script:

{
  "devEui": "notshown",
  "confirmed": true,
  "fPort": 85,
  "data": "CEBA"
}

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:

{
  "acknowledged": false,
  "applicationID": "1",
  "applicationName": "PROVA",
  "devEUI": "notshown",
  "deviceName": "KM1",
  "fCnt": 47,
  "reference": "",
  "time": "2026-10-29T22:27:56+01:00"
}

The acknowledged: false field 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

Sorted by
Aslan Lu

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

C

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

C

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

0 Votes

Aslan Lu

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