Skip to content

Commit a079b01

Browse files
CopilotMRC3742
andauthored
Use stock CG022 bind ID
Agent-Logs-Url: https://github.com/MRC3742/DIY-Multiprotocol-TX-Module/sessions/78f6f2a2-aec3-46d0-8489-959d8e5ddf21 Co-authored-by: MRC3742 <26642502+MRC3742@users.noreply.github.com>
1 parent 3be995b commit a079b01

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

Multiprotocol/CG022_nrf24l01.ino

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
static const uint8_t PROGMEM CG022_hop[] = { 0x0A, 0x32, 0x14, 0x3C, 0x1E, 0x46, 0x00, 0x28 };
2626
static const uint8_t CG022_addr[] = { 0x5A, 0x5A, 0x00, 0x33 };
27+
static const uint8_t CG022_bind_id[] = { 0x00, 0x11, 0x22, 0x33 };
2728

2829
static uint8_t CG022_scale_channel(uint8_t channel)
2930
{
@@ -40,13 +41,11 @@ static void __attribute__((unused)) CG022_set_channel()
4041

4142
static void __attribute__((unused)) CG022_build_bind_packet()
4243
{
43-
uint8_t id = rx_tx_addr[3] & 0x3F;
44-
4544
packet[0] = 0x0A;
46-
packet[1] = id;
47-
packet[2] = rx_tx_addr[0];
48-
packet[3] = rx_tx_addr[1];
49-
packet[4] = rx_tx_addr[2];
45+
packet[1] = CG022_bind_id[0];
46+
packet[2] = CG022_bind_id[1];
47+
packet[3] = CG022_bind_id[2];
48+
packet[4] = CG022_bind_id[3];
5049
packet[5] = 0x06;
5150
packet[6] = 0xAB;
5251
packet[7] = 0xFC;
@@ -56,10 +55,8 @@ static void __attribute__((unused)) CG022_build_bind_packet()
5655

5756
static void __attribute__((unused)) CG022_build_data_packet()
5857
{
59-
uint8_t id = rx_tx_addr[3] & 0x3F;
60-
6158
packet[0] = 0x0A;
62-
packet[1] = id;
59+
packet[1] = CG022_bind_id[0];
6360
packet[2] = CG022_scale_channel(THROTTLE);
6461
packet[3] = CG022_scale_channel(ELEVATOR);
6562
packet[4] = CG022_scale_channel(RUDDER);

Protocols_Details.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1759,6 +1759,7 @@ The receiver bound to the model is un-bound. This happens immediately when the
17591759

17601760
## CG022 - *109*
17611761
Proof-of-possibility NRF24L01 transmission test for the CG022 AO-SEN-MA (LT8910) protocol.
1762+
Uses the stock TX bind ID sequence 00 11 22 33 for initial testing.
17621763

17631764
CH1|CH2|CH3|CH4|CH5|CH6|CH7
17641765
---|---|---|---|---|---|---

0 commit comments

Comments
 (0)