Error while comunicating with sensor via python

Learn MoreFAQsTutorials

4 posts / 0 new
Last post
UO251410
Offline
Last seen:6 months 18 hours ago
加入:2020-07-09 09:54
Error while comunicating with sensor via python

Hello

I'm comunicating a RPi 4(as gateway) and a da14585 to send env dato to cloud. For that I use a python script. Everythings works properly, but sometimes while doing the

d = Dialog(MAC_ADDRESS), the sensor "blocks" and is imposible to connect to it. If I power off and then power on the sensor, the script continues working.

Any idea of what can be happening?

The fw of the sensor is de iot585 with the option always advertise enable.

Thanks

Device:
PM_Dialog
Offline
Last seen:2 days 9 hours ago
工作人员
加入:2018-02-08 11:03
Hi UO251410,

Hi UO251410,

Let me ask you something just to make sure that I have understood your setup: In the initial post, you have selected the DA4580 device, but you mentioned that you are using the DA14585 IoT firmware. I assume that you are using the MSK project.

//www.xmece.com/products/da14585-iot-multi-sensor-development-kit

So, could you please explain which device and which project you are using?

Did you develop a custom python script? Is it related with the Dialog product?

In the “Software Resources “section you will find the覆盆子π网关脚本包andRaspberry Pi Gateway image.

Thanks, PM_Dialog

UO251410
Offline
Last seen:6 months 18 hours ago
加入:2020-07-09 09:54
I found a solution. The

I found a solution. The problem was the USR_DWS_OUTSTANDING_NTF_THRESHOLD parameter. In the file "user_dws_reports" , in the method user_prepare_multi_sensor_report, Iremoved the first if where this parameter is compared with ntf_sent_cntr variable.

Thanks

PM_Dialog
Offline
Last seen:2 days 9 hours ago
工作人员
加入:2018-02-08 11:03
Hi UO251410,

Hi UO251410,

Gladh that you figured this out and thanks for sharing the salution.

Thanks, PM_Dialog