[BitCloud] Read or write an Attribute

Last post
5 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hallo,
I have a problem with the Runner Skript Environment in BitCloud Profile Suite 1.8. I wrote an application for a thermostat device and want to test it with runner scripts. My scripts can create a connection, send clusterspezific commands from the thermostat Cluster and the Basic Cluster. With ZclAttributeReq i can read the values of different attributes. Now i want to change the value of the attribute MinHeatSetpointLimit. My first idea was to add the Thermostat Cluster as Server Cluster in the runner script. But if i do this the script with the attribute request doesn't work and there is the error you can see below. That is strange because the script, which does the Binding and creat the network, doesn't show any errors.
I had the idea to register more than one endpoint with the runner script but i don't know how.

An other idea i had is to use the ZclAttributeReq to write the attribute value, but there is no effect if if i send it to my thermostat. Even though it shows no errors. I dont know if i have to write any callback or response function on the side of the thermostat.
Could any one help me please, i would be very thankful.

Using COM:COM6 for port
Stable Library
=========================================
Native lib Version = RXTX-2.1-7
Java lib Version   = RXTX-2.1-7
Send command ZdpNwkAddrReq
  length 0x000C
  id 0x00C0
  IeeeAddr 00-00-00-00-00-00-00-06
  reqType 0x00 (Single device response)
  startIndex 0x00
16:13:13.632  RECV Serial:COM6: 0x2A 0x0F 0x00 0xC1 0x00 0x00 0x06 0x00 0x00 0x0
0 0x00 0x00 0x00 0x00 0xE2 0x89

16:13:13.648  RECV Serial:COM6: 0x00 0x00

Receive command ZdpNwkAddrResp
  length 0x000F
  id 0x00C1
  status 0x00 (Success)
  ieeeAddrRemoteDev 00-00-00-00-00-00-00-06
  nwkAddrRemoteDev 0x89E2
  numAssocDev 0x00
  startIndex 0x00
Send command ZclAttributeReq
  length 0x0019
  id 0x0042
  dstAddrMode 0x03 (Extended address)
  dstShortAddress 0x89E2
  dstExtAddress 00-00-00-00-00-00-00-06
  profileId 0x0104
  endpoint 0x0B
  dstEndpoint 0x15
  clusterId 0x0201
  defaultResponse 0x00 (Enabled)
  commandOptions.direction 0x00 (FROM_CLIENT_TO_SERVER)
  commandOptions.generalCommand 0x01 (GENERAL_COMMAND)
  commandOptions.reserved 0x00
  commandId 0x00 (READ_ATTRIBUTES)
  recordsCount 0x01
  attribute[0] 0x0000
16:13:13.749  RECV Serial:COM6: 0x2A 0x03 0x00 0x94 0x00 0x01

Receive command ZclDefaultResponse
  length 0x0003
  id 0x0094
  status 0x01 (0x01)
Check failed C:\Users\adminhtw\Desktop\Muehlig\BitCloud_PS_MEGARF_1_8_0\BitCloud
_PS_MEGARF_1_8_0\Evaluation Tools\Runner\scripts\HAscripts\.\localtemperature.py
, 93: check(data['status'] == 'Success')
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

What is your final goal. Runner is basically a testing application, it does not allow to register endpoints that are not hard coded inside the embedded part.

The opinions and views expressed by me on this forum are my own and do not represent my employer or anyone else that I'm affiliated with.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

My final goal is to write an application for a thermostat in C. I use the runner to test this application and to demonstrate the functionality to other people. Finally my thermostat should communicate with other ZigBee devices. Until now anything worked like i wanted, out of the changig of Attributes. For examble, the thermostat can read the time from the runner application without any problems. When I began to work, Ithought it is the best way to use the runner for testing, because ZigBee and BitCloud was totally new to me. I use two Boards with Atmega128rfa1.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

My advice would be to write your application in C using BitCloud API instead of serial interface. I personally don't want to deal with it, so if you feel like going on this way then you might want to use the source code of the embedded part to figure out why it is not working or contact the official support. I doubt that someone here can help you with this.

The opinions and views expressed by me on this forum are my own and do not represent my employer or anyone else that I'm affiliated with.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thank you for answering