xbee x2c problem

Hi, I've two xbee model x2c.
I use both xbee modules on two arduino uno connected through the shields.
i set the xbee parameters through the xctu software, in particular: pan id, channel, api: enable[2].
I attach code of arduino.

through the xctu software the communication in api mode works very well.
When I go to upload the code on arduino it doesn't work anymore.
The rx light flashes on the coordinator and on the serial port prints The rx light flashes on the coordinator and the serial port prints many strange characters and then Hello.
On the receiver side, nothing happens. The rx and tx lights are off, the arduino serial monitor and the xctu monitor do not return anything.

I noticed a difference between the packets that are exchanged through the xctu software (and they work) and those that are sent by the arduino transmitter (and they don't work)

TX (Transmit) Request 64-bit address (API 2) ** (work well on xctu)**
7E 00 10 00 01 00 7D 33 A2 00 41 94 49 E8 00 48 65 6C 6C 6F 4F
Start delimiter: 7E
Length: 00 10 (16)
Frame type: 00 (TX (Transmit) Request 64-bit address)
Frame ID: 01 (1)
64-bit dest. address: 00 13 A2 00 41 94 49 E8
Options: 00
RF data (HEX): 48 65 6C 6C 6F
RF data (ASCII): Hello
Checksum: 4F

Transmit Request (API 2) (NOt work on arduino)
7E 00 7D 33 10 01 00 7D 33 A2 00 41 94 49 E8 FF FE 00 00 48 65 6C 6C 6F 42
Start delimiter: 7E
Length: 00 13 (19)
Frame type: 10 (Transmit Request)
Frame ID: 01 (1)
64-bit dest. address: 00 13 A2 00 41 94 49 E8
16-bit dest. address: FF FE
Broadcast radius: 00 (0)
Options: 00
RF data (HEX): 48 65 6C 6C 6F
RF data (ASCII): Hello
Checksum: 42

In both packets the information to be sent was identical: "Hello".

the strange thing is that on xctu everything works perfectly, while on aruduino it doesn't.
I've used other xbee versions in the past and had no problems. I'm thinking this library might not be compatible with this xbee x2c model.
what do you think ? how did you feel with these x2c modules?

test_semp_lice_tx.ino (376 Bytes)

test_semplice_rx.ino (791 Bytes)

What made you think that your question has anything to do with the Website and Forum section which is clearly stated to be for "Improvements for the web system, applications to moderator, spam, etc."? I have suggested to the Moderator to move it to the Programming section.

This sort of carelessness makes unnecessary work for the Moderators.

Please read How to get the best out of the Forum

...R

@danidanioh

Your topic was Moved to it's current location / section as it is more suitable.

Could you also take a few moments to Learn How To Use The Forum.

Other general help and troubleshooting advice can be found here.
It will help you get the best out of the forum in the future.

sorry for my inattention, thanks

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.