Configuring parameters for PR52-33A temp/humidity node

@Eduardo_Mtz I am looking at the delay frame and want set it to 600 seconds. In your 10 sec delay command you provided I see F7 02 00 00 00 00 00 00 0A as the data portion of the frame, with the following breakdown:

F7 -> Header
02 00 00 00 00 -> Reserved
00 00 0A -> Delay in Seconds

But you stated that is for setting the delay for node ID 00. Is the node ID 00 the first 00 in the delay in seconds hex value as circled below or is that specified in a different position?

image

You also said the node ID is sent for each packet, but where in the packet frame is that located? For example with the PR52-33A I receive 3 frames on first transmission with the following RF data in each:

7A 00 00 00 01 03 19 52 55 4E 06 00 00 00 00 00
7F 00 0E 03 FC 04 00 01 02 00 00 00 00
6F 00 00 19 0E 00 01 00 00 06 55 55 59 32 7F FF 00 00 FF FF 00 00 00 02 58

Right now my 600 sec delay data frame is the folllowing. I just need to know where to find Node ID and also where to specify it within the frame.

F7 02 00 00 00 00 00 02 58

Hello @duelingcats sure, you can use same command to set ID and Delay. For example to set ID to 2 and Delay to 600 seconds, this is the command:

F7 -> Header
02 00 00 00 -> Reserved
02 -> Node ID (1 Byte)
00 02 58 -> Delay in Seconds (3 Bytes)

Yes, sensor also sends their node ID value in packets (I have highlighted them in bold below):

7A 00 00 00 01 03 19 52 55 4E 06 00 00 00 00 00 – RUN
7F 00 0E 03 FC 04 00 01 02 00 00 00 00 – Sensor_data
6F 00 00 19 0E 00 01 00 00 06 55 55 59 32 7F FF 00 00 FF FF 00 00 00 02 58 – FLY

Thanks

Oh, so Node ID is intended as a configurable identifier? I thought it was meant to map to a specific sensor model. Like PR52-33A might be ID 1, PR63-23A might be ID 2, etc. I assumed it was an identifier set from factory that was used by node-red to know the data structure of the sensor data coming from the device.

Yes, that is correct. The Node ID is a user-configurable identifier.

On the other hand, Node-RED uses the sensor type to determine the data structure coming from the device. For example this is a Type 1 - Temperature/Humidity Sensor:

7A 00 00 00 01 03 19 52 55 4E 06 00 00 00 00 00 – RUN
7F 00 0E 03 FC 04 00 01 02 00 00 00 00 – Sensor_data
6F 00 00 19 0E 00 01 00 00 06 55 55 59 32 7F FF 00 00 FF FF 00 00 00 02 58 – FLY

Thank you.

After sending those frames the you provided, I get responses from every send except for the encryption key. Transmit request goes out, but no response is received.
After waiting approx. 10~ minutes I see what looks like a data packet coming from the device. So it appears that it is still transmitting on the default network ID (even though I got a response packet) and default encryption key (that never received a response). After waiting another 10 minutes, I see another packet coming to the default network ID with default encryption key.

I then pressed the reset button and saw data packets now going to the assigned network ID correctly (so that isn’t that big of a deal), however it is still using the default encryption key.

Can you use node red by any chance?

I have been using node-red for receiving device data, but have not used it for configuration. The Wireless Device configuration node does not have a parameter to set the encryption key.

Hi @duelingcats the only command that is not working is the encryption key? correct?
Could you share the command here in order to test it please?

That’s correct. The other commands appeared to be working. I took out the Xbee module and put it in one of the modem enclosures so I could communicate with it via USB connection to confirm that values like NH, power level, and network ID were being set correctly. This is the order of the commands I am running. Note that this list doesn’t include my actual encryption key as I don’t want to post it here publicly. I edited the frame you provided to use my real key.

Extend Config Mode:
7E 00 13 10 00 00 00 00 00 00 00 FF FF FF FE 00 00 F7 36 00 00 00 C7

Set Network ID:
7E 00 15 10 00 00 00 00 00 00 00 FF FF FF FE 00 00 F7 05 00 00 00 10 AA F9

Set sample rate to 120 sec and node ID to 00:
7E 00 17 10 01 00 00 00 00 00 00 FF FF FF FE 00 00 F7 02 00 00 00 00 00 00 78 82

Set Power to 2:
7E 00 14 10 00 00 00 00 00 00 00 FF FF FF FE 00 00 F7 04 00 00 00 02 F7

Set NH to 0A (I have changed the MAC address here, this is not the real mac):
7E 00 10 17 01 00 13 A2 00 42 32 AA AA FF FE 02 4E 48 0A CB

Write to Memory (I have changed the MAC address here, this is not the real mac):
7E 00 0F 17 01 00 13 A2 00 42 32 AA AA FF FE 02 57 52 C2

Write encrpytion key (I am replacing the key with my intended key here along with the proper calculated checksum as the last 2 hex values)
7E 00 23 10 00 00 00 00 00 00 00 FF FF FF FE 00 00 F2 03 00 00 00 01 02 03 04 05 06 FF FF FF FF FF FF FF FF FF FF F4

The encryption key can also be changed. For security reasons, we will share the process with you via email.