Forums - A problem of the API "LightSetLevel"

1 post / 0 new
A problem of the API "LightSetLevel"
jec
Join Date: 20 Nov 16
Posts: 2
Posted: Thu, 2017-02-16 18:00

Hi,

I'm transplanting the Mesh2.1 to fix our application, and most of time it's going well, but now when I try to find a solution leading to the low power consumption of Switch, I find a problem:

The environment:

1x csr_mesh_light

1x csr_mesh_switch

1 csr sniffer to monitor the mesh packet.(I change the baudrate to 115200)

They are associated in a same mesh network.

 

There are 3 buttons for csr_mesh_switch to control the light of the csr_mesh_light:

SW2: to decrease the brightness of the light.

SW3: to increase the brightness of the light.

SW4: to change the power state of the light.

Problem:

When I press the SW4, it is OK to control the power of the light, and I can see the message of the sniffer (about 8 pieces):

+2683661: -36dBm:0596c07ecff0: HLM LEN: 0a MAC: d5c07f3380a3703d TTL: 32 :: MCP: SEQ: 002ade15 SRC: 8005 DST: 0000 OPC: POWER_SET_STATE_NO_ACK(8900) PARAM: 00

+103194: -69dBm:28474b4d2b0c:(D) HLM LEN: 0a MAC: d5c07f3380a3703d TTL: 31 :: MCP: SEQ: 002ade15 SRC: 8005 DST: 0000 OPC: POWER_SET_STATE_NO_ACK(8900) PARAM: 00

+94078: -36dBm:171d3a400c08:(D) HLM LEN: 0a MAC: d5c07f3380a3703d TTL: 32 :: MCP: SEQ: 002ade15 SRC: 8005 DST: 0000 OPC: POWER_SET_STATE_NO_ACK(8900) PARAM: 00

+19332: -69dBm:0004eb4659da:(D) HLM LEN: 0a MAC: d5c07f3380a3703d TTL: 31 :: MCP: SEQ: 002ade15 SRC: 8005 DST: 0000 OPC: POWER_SET_STATE_NO_ACK(8900) PARAM: 00

+106802: -36dBm:0d7a047c0ae4:(D) HLM LEN: 0a MAC: d5c07f3380a3703d TTL: 32 :: MCP: SEQ: 002ade15 SRC: 8005 DST: 0000 OPC: POWER_SET_STATE_NO_ACK(8900) PARAM: 00

+11380: -69dBm:15e28c7aa7bd:(D) HLM LEN: 0a MAC: d5c07f3380a3703d TTL: 31 :: MCP: SEQ: 002ade15 SRC: 8005 DST: 0000 OPC: POWER_SET_STATE_NO_ACK(8900) PARAM: 00

+108692: -36dBm:02977663a200:(D) HLM LEN: 0a MAC: d5c07f3380a3703d TTL: 32 :: MCP: SEQ: 002ade15 SRC: 8005 DST: 0000 OPC: POWER_SET_STATE_NO_ACK(8900) PARAM: 00

+112065: -33dBm:237ea9683e50:(D) HLM LEN: 0a MAC: d5c07f3380a3703d TTL: 32 :: MCP: SEQ: 002ade15 SRC: 8005 DST: 0000 OPC: POWER_SET_STATE_NO_ACK(8900) PARAM: 00

But when I press the SW2 or SW3 once, the light glitters, and the monitoring messages are:

+61116: -30dBm:1e38505cc3be:(D) HLM LEN: 0a MAC: 8f429438d6a73378 TTL: 30 :: MCP: SEQ: 002ade65 SRC: 8005 DST: 0000 OPC: LIGHT_SET_LEVEL_NO_ACK(8a00) PARAM: 3f

+6434: -72dBm:3122ce10d92b:(D) HLM LEN: 0a MAC: 04dac110e0e1763e TTL: 31 :: MCP: SEQ: 002ade67 SRC: 8005 DST: 0000 OPC: LIGHT_SET_LEVEL_NO_ACK(8a00) PARAM: 3f

+48664: -36dBm:1b5e7f4e52c3:(D) HLM LEN: 0a MAC: 04dac110e0e1763e TTL: 32 :: MCP: SEQ: 002ade67 SRC: 8005 DST: 0000 OPC: LIGHT_SET_LEVEL_NO_ACK(8a00) PARAM: 3f

+13804: -69dBm:3c66d37765bf:(D) HLM LEN: 0a MAC: 26a37426c0579b78 TTL: 31 :: MCP: SEQ: 002ade68 SRC: 8005 DST: 0000 OPC: LIGHT_SET_LEVEL_NO_ACK(8a00) PARAM: 2b

+55031: -30dBm:3fd61f701421:(D) HLM LEN: 0a MAC: 8f429438d6a73378 TTL: 30 :: MCP: SEQ: 002ade65 SRC: 8005 DST: 0000 OPC: LIGHT_SET_LEVEL_NO_ACK(8a00) PARAM: 3f

+75415: -30dBm:21772d4faba7:(D) HLM LEN: 0a MAC: 04dac110e0e1763e TTL: 32 :: MCP: SEQ: 002ade67 SRC: 8005 DST: 0000 OPC: LIGHT_SET_LEVEL_NO_ACK(8a00) PARAM: 3f

+122777: -36dBm:00af826292cf:(D) HLM LEN: 0a MAC: 04dac110e0e1763e TTL: 32 :: MCP: SEQ: 002ade67 SRC: 8005 DST: 0000 OPC: LIGHT_SET_LEVEL_NO_ACK(8a00) PARAM: 3f

+39109: -36dBm:09bb9d7325eb:(D) HLM LEN: 0a MAC: 26a37426c0579b78 TTL: 32 :: MCP: SEQ: 002ade68 SRC: 8005 DST: 0000 OPC: LIGHT_SET_LEVEL_NO_ACK(8a00) PARAM: 2b

+207714: -36dBm:13c098438735: HLM LEN: 0a MAC: 6924db6c0b79ab37 TTL: 32 :: MCP: SEQ: 002ade69 SRC: 8005 DST: 0000 OPC: LIGHT_SET_LEVEL_NO_ACK(8a00) PARAM: 3f

+17350: -69dBm:12f7f3514cf6:(D) HLM LEN: 0a MAC: 6924db6c0b79ab37 TTL: 31 :: MCP: SEQ: 002ade69 SRC: 8005 DST: 0000 OPC: LIGHT_SET_LEVEL_NO_ACK(8a00) PARAM: 3f

+19603: -30dBm:2d759c4b5127: HLM LEN: 0a MAC: 997294ada9fb27d1 TTL: 32 :: MCP: SEQ: 002ade6a SRC: 8005 DST: 0000 OPC: LIGHT_SET_LEVEL_NO_ACK(8a00) PARAM: 2b

+68246: -36dBm:3d0798450e7a:(D) HLM LEN: 0a MAC: 6924db6c0b79ab37 TTL: 32 :: MCP: SEQ: 002ade69 SRC: 8005 DST: 0000 OPC: LIGHT_SET_LEVEL_NO_ACK(8a00) PARAM: 3f

+24576: -69dBm:199e03536844:(D) HLM LEN: 0a MAC: 997294ada9fb27d1 TTL: 31 :: MCP: SEQ: 002ade6a SRC: 8005 DST: 0000 OPC: LIGHT_SET_LEVEL_NO_ACK(8a00) PARAM: 2b

+30068: -30dBm:1590d74c0f4c:(D) HLM LEN: 0a MAC: 997294ada9fb27d1 TTL: 32 :: MCP: SEQ: 002ade6a SRC: 8005 DST: 0000 OPC: LIGHT_SET_LEVEL_NO_ACK(8a00) PARAM: 2b

+73024: -36dBm:0aa073576dce: HLM LEN: 0d MAC: 3f459e5e2ada645b TTL: 32 :: MCP: SEQ: 002ade6b SRC: 8005 DST: 0000 OPC: WATCHDOG_MESSAGE(0000) PARAM: 0151a404f2

+30514: -69dBm:0a59be56db33:(D) HLM LEN: 0a MAC: 997294ada9fb27d1 TTL: 31 :: MCP: SEQ: 002ade6a SRC: 8005 DST: 0000 OPC: LIGHT_SET_LEVEL_NO_ACK(8a00) PARAM: 2b

+12336: -33dBm:0e199b6eae2a:(D) HLM LEN: 0a MAC: 6924db6c0b79ab37 TTL: 32 :: MCP: SEQ: 002ade69 SRC: 8005 DST: 0000 OPC: LIGHT_SET_LEVEL_NO_ACK(8a00) PARAM: 3f

+45687: -39dBm:39a39c1344bc:(D) HLM LEN: 0a MAC: 997294ada9fb27d1 TTL: 32 :: MCP: SEQ: 002ade6a SRC: 8005 DST: 0000 OPC: LIGHT_SET_LEVEL_NO_ACK(8a00) PARAM: 2b

+44682: -39dBm:22990a14f125:(D) HLM LEN: 0d MAC: 3f459e5e2ada645b TTL: 32 :: MCP: SEQ: 002ade6b SRC: 8005 DST: 0000 OPC: WATCHDOG_MESSAGE(0000) PARAM: 0151a404f2

+7497: -69dBm:212c9b141f8a:(D) HLM LEN: 0a MAC: 6924db6c0b79ab37 TTL: 31 :: MCP: SEQ: 002ade69 SRC: 8005 DST: 0000 OPC: LIGHT_SET_LEVEL_NO_ACK(8a00) PARAM: 3f

….

(endless)

And when I press the SW4 again, the endless messages disappear, it’s good again.

+37035: -36dBm:1b5dfb534caf:(D) HLM LEN: 0a MAC: 77f0be6de7bf5fc5 TTL: 32 :: MCP: SEQ: 002ade6d SRC: 8005 DST: 0000 OPC: LIGHT_SET_LEVEL_NO_ACK(8a00) PARAM: 2b

+112557: -36dBm:3d03aa616702:(D) HLM LEN: 0a MAC: 0a9f45001a0f7925 TTL: 32 :: MCP: SEQ: 002ade6e SRC: 8005 DST: 0000 OPC: POWER_SET_STATE_NO_ACK(8900) PARAM: 01

+69496: -69dBm:20f9474fe665:(D) HLM LEN: 0a MAC: 0a9f45001a0f7925 TTL: 31 :: MCP: SEQ: 002ade6e SRC: 8005 DST: 0000 OPC: POWER_SET_STATE_NO_ACK(8900) PARAM: 01

+50833: -36dBm:1859436935da:(D) HLM LEN: 0a MAC: 0a9f45001a0f7925 TTL: 32 :: MCP: SEQ: 002ade6e SRC: 8005 DST: 0000 OPC: POWER_SET_STATE_NO_ACK(8900) PARAM: 01

+65051: -69dBm:3ab05244ff00:(D) HLM LEN: 0a MAC: 0a9f45001a0f7925 TTL: 31 :: MCP: SEQ: 002ade6e SRC: 8005 DST: 0000 OPC: POWER_SET_STATE_NO_ACK(8900) PARAM: 01

+59311: -36dBm:10e69d43970a:(D) HLM LEN: 0a MAC: 0a9f45001a0f7925 TTL: 32 :: MCP: SEQ: 002ade6e SRC: 8005 DST: 0000 OPC: POWER_SET_STATE_NO_ACK(8900) PARAM: 01

+121285: -33dBm:25558915ed40:(D) HLM LEN: 0a MAC: 0a9f45001a0f7925 TTL: 32 :: MCP: SEQ: 002ade6e SRC: 8005 DST: 0000 OPC: POWER_SET_STATE_NO_ACK(8900) PARAM: 01

 

I guessed it was the hardware issue of buttons, I checked the SW2,SW3,SW4, and exchanged the SW2 <-> SW4, SW3<->SW4, the problem transfers to SW4 both.

So I think it is the problem of the API function “LightSetLevel”, or anything else?

Please advise! thank you in advace!

  • Up0
  • Down0

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.