Hi everyone,
the previous information and all the documenation on the thisisant website have been very helpful. I am however still struggling to connect to my HRM through an arduino mega using the code posted in this forum. It appears i correctly initialize the ant component, but it never detects my sensor (either the hrm or a simulated one using my garmin ant usb key and the ant+ sensor simulator on my laptop). I am however able to detect my hrm directly on my laptop through the ant display simulator, meaning that there is some signal being sent, but my ant & arduino fail to receive it.
I am using an arduino mega, I connected the ant transceiver on +3v, gnd, and two pins for rx tx.
Config is apparently sent correctly (except for the second call A4 2 4D 0 3D D6 which returns an error message, but I do not believe this instruction is required in any case) and the channel is correctly open, but it never syncs with my hrm...
it does time out after the allocated time
Code: Select allConfig Starting
TX: A4 1 4A 0 EF
TX: A4 2 4D 0 54 BF
TX: A4 2 4D 0 3D D6
TX: A4 3 42 0 0 0 E5
TX: A4 5 51 0 0 0 0 0 F0
TX: A4 9 46 0 B9 A5 21 FB BD 72 C3 45 64
TX: A4 2 44 0 A E8
TX: A4 2 45 0 39 DA
TX: A4 3 43 0 1F 86 7D
TX: A4 1 4B 0 EE
Config Done
RX: [sync]
..0x4..0x54..0x4..0x3..0x0..0x3..0xF0
RX: msg received-
RX: [sync]
..0x3..0x40..0x0..0x4D..0x28..0x82
RX: msg received-
RX: [sync]
..0x3..0x40..0x0..0x42..0x0..0xA5
RX: msg received-
RX: [sync]
..0x3..0x40..0x0..0x51..0x0..0xB6
RX: msg received-
RX: [sync]
..0x3..0x40..0x0..0x46..0x0..0xA1
RX: msg received-
RX: [sync]
..0x3..0x40..0x0..0x44..0x0..0xA3
RX: msg received-
RX: [sync]
..0x3..0x40..0x0..0x45..0x0..0xA2
RX: msg received-
RX: [sync]
..0x3..0x40..0x0..0x43..0x0..0xA4
RX: msg received-
RX: [sync]
..0x3..0x40..0x0..0x4B..0x0..0xAC
RX: msg received-
I have tried setting the network key before assigning the channel to no avail. i have managed to transmit data from my arduino to the ant+ display simulator however, meaning i can at least send data, but I still cannot receive any...
anyone has an idea ? could my ant transceiver be faulty ?
thanks a lot
UPDATE
I discovered (by mistake) that if I unplugged the Vin on the transceiver after the initialization, I received the data correctly! apparently it is only because I have a 5V arduino and I need to add a voltage divider, I'll check on that and make sure to provide detailed instruction on how to get everything working once it does