3 posts / 0 new
Last post
dhrishi
Offline
Last seen:3 years 3 months ago
Joined:2017-02-10 09:56
Co-existence Scheme

Hi,

I am looking to implement a simple coex scheme between DA14580 and an external radio in a shared antenna design. I wish to grant antenna to the DA14580 whenever required (priority to BLE). I looked at the wlan_coex.c implementation and found that KE_EVENT_BLE_EVT_START and KE_EVENT_BLE_EVT_END are the events generated. I could see the events being generated for every advertisement for a peripheral implementation. Is it safe to assume that the event handlers for these events is the correct place to switch the antenna?

Where can I find a description for these event? Can there be a case of attempted transmission after KE_EVENT_BLE_EVT_END?

Also, is there any documentation for the supported co-ex scheme by the wlan_coex.c implementation?

Thanks.

Keywords:
Device:
Qinjiny_Dialog
Offline
Last seen:4 weeks 1 day ago
Staff
Joined:2016-11-01 05:47
Hi,

Hi,

You might wanna check the software architectrue document UM-B-015 on page 34 for some limited information about the coex api.

For the timing info I got:

-DA14580 can communicate its radio status in advance (BLE_event_in_process)
-Using the BLE_event_in_process signal from its internal FSM
-This is an envelop signal to TX and RX activity of the BLE Radio
-It starts before the actual radio activity so it can upfront inform the coexisting system of scheduled RF activity.
-DA14580 can be indicated the status of the WiFi (WiFi_event_in_process)
-The signal can be connected to any GPIO to generate an interrupt to the ARM M0 CPU
-This GPIO can sense posedge of the external signal and then reprogrammed to sense negedge of the same signal.
-It will stop the Radio activity by the software overriding the RX_EN and TX_EN signals
-Timing
-event_in_process is an envelope on the scheduled radio activity
——它是断言实际上t ~ 300之前我们收音机ransmits or receives
-It is de-asserted synchronously to the RX_EN signal and after radio activity is finished
-How to map it on IOs
-Only P0_0 or P0_7 are allowed for this signal. Code for P0_7 follows:
-BLE_DIAGCNTL_REG[DIAG2_EN]=1 // Enable port 2 of the internal diagnostics
-BLE_DIAGCNTL_REG[DIAG2]=0x08 // Select diagnostic signals page
-P07_MODE_REG[PID]=0x12 // Select diagnostic mode for P0_7
-P07_MODE_REG[PUPD]=0x3 // Set P0_7 as output
dhrishi
Offline
Last seen:3 years 3 months ago
Joined:2017-02-10 09:56
Thanks for the answer. It

Thanks for the answer. It helped