Hello,
I try to communicate between my computer with an usb stick and a MCU with an AP2.
When mcu is master there is (now) no problem to communicate with the antwareII but when mcu is slave that doesn't work.
Here is my setting for mcu :
uint8_t assign_channel[7]= {0xA4, 0x03, 0x42, 0x01, 0x00, 0x00, 0xE4};
uint8_t set_channel_ID[9]= {0xA4, 0x05, 0x51, 0x01, 0x21, 0x00, 0x01, 0x01, 0xD0};
uint8_t set_rf_frequency[6]= {0xA4, 0x02, 0x45, 0x01, 0x42, 0xA0};
uint8_t set_channel_period[7]= {0xA4, 0x03, 0x43, 0x01, 0x00, 0x20, 0xC5};
uint8_t set_tx_power[6]= {0xA4, 0x02, 0x60, 0x01, 0x03, 0xC4};
uint8_t set_search_timeouts[6]= {0xA4, 0x02, 0x44, 0x01, 0x14, 0xF7};
uint8_t open_channel[5]= {0xA4, 0x01, 0x4B, 0x01, 0xEF};
uint8_t open_RX_scan_mode[5]= {0xA4, 0x01, 0x5B, 0x00, 0xFE};
Which open channel i must use in this case ?
Then in my main loop i'm waiting rst=low then i read several bytes. But the result correpond of an answer of channel event, is it normal ?
Thanks.