cancel
Showing results for 
Search instead for 
Did you mean: 

STWIN Box Datalog2 WiFi Connection not working

frogrammer
Associate II

I have STWIN.Box with Datalog2 3.10.0 software. I have first upgraded the wifi module using this instructions given here .

Then i have installed the Datalog2 3.10.0 software. 

Currently this is my application  as viewed in ST BLE Sensor app (iOS)

WhatsApp Image 2025-10-28 at 11.42.14_66ddbe7a.jpg

WhatsApp Image 2025-10-28 at 11.42.16_403e0b50.jpg

WhatsApp Image 2025-10-28 at 11.42.29_5d96f471.jpg

 

I have first tried with the iOS app, it doesn't let me to use the Wifi connect button or disconnect.

 

Then,  I tried using PnPL messages :

message = PnPLCMDManager.create_set_property_cmd("wifi_config", "ssid", "Nothing")
print(message)
print(hsd_link.send_command(hsd_link_instance, device_id, message))


message = PnPLCMDManager.create_command_cmd("wifi_config", "wifi_connect" , "password", "11223344")
print(message)
print(hsd_link.send_command(hsd_link_instance, device_id, message))


message = PnPLCMDManager.create_set_property_cmd("wifi_config", "ip", "0.0.0.0")
print(message)
print(hsd_link.send_command(hsd_link_instance, device_id, message))

time.sleep(30)

message = PnPLCMDManager.create_command_cmd("wifi_config", "wifi_disconnect" ,"ssid", "Nothing")
print(message)
print(hsd_link.send_command(hsd_link_instance, device_id, message))

 I get these messages in terminal

{"wifi_config": {"ssid": "Nothing"}}
2025-10-28 12:30:51,645 - HSDatalogApp.stdatalog_core.HSD_link.communication.PnPL_HSD.hsd_dll - INFO - PnPL Response: {"PnPL_Response":{"message":"","value":"Nothing","status":true}}
{"PnPL_Response":{"message":"","value":"Nothing","status":true}}
{"wifi_config*wifi_connect": {"password": "11223344"}}
None
{"wifi_config": {"ip": "0.0.0.0"}}
None
{"wifi_config*wifi_disconnect": {"ssid": "Nothing"}}
2025-10-28 12:31:23,726 - HSDatalogApp.stdatalog_core.HSD_link.communication.PnPL_HSD.hsd_dll - INFO - PnPL Response: {"PnPL_Response":{"message":"","status":true}}
{"PnPL_Response":{"message":"","status":true}}

and this screenshot from the computer that a device is connected :

frogrammer_0-1761650647879.png

MAC address prefix 84:9D:C2 is registered to Shanghai MXCHIP Information Technology Co., Ltd., ( Google )

and in my ST BLE iOS App,

 

WhatsApp Image 2025-10-28 at 12.26.22_657de0ac.jpg

So far, I could not get the wifi working as expected, wifi connect with password and ip set is showing None without any PnPL response. However, the device gets connected ( viewed in hotspot laptop) and disconnected PnPL message can be received in Terminal .

What needs to be changed to be able to use WIFI with PnPL properly or using the app first as described in this document 

 

@SimonePradolini 

0 REPLIES 0