Other Parts Discussed in Thread: CC1310
Tool/software: Code Composer Studio
Hi all,
I am trying to construct a project that combines concepts from a number of examples. Most of the example code in the subghz world is reasonably straightforward. Unfortunately I need to leverage the BLE example code, which is incredibly complex and fragile.
Here's what I want to do:
I have 2 devices plus a BLE phone - a remote cc1310, and a cc1352
The cc1310 is acting as a remote battery powered sensor and will transmit small packets via easylink to the 1352.
The cc1352 will receive the subghz packets, but I also want to allow concurrent BLE connections to this device. The 1352 has the dual mode manager, so this setup seems reasonable (although I'm having a rough time tweaking the example code to passively/perpetually listen for subghz and still advertise on the BLE)
I also want to do OAD via BLE to the 1352, and also upload a 1310 image to the 1352, which will then be OAD'd down to the 1310.
I have the following examples that need to be merged for the 1352:
ble5_simple_peripheral_oad_offchip
dmm_wsnnode_remote_display
And then
rfWsnConcentratorOadServer
Each of these 3 example projects utilize a different linked project (the stacks for the BLE stuff and the tirtos for the concentrator). My thoughts are to start with the ble5_simple_peripheral_oad_offchip example as its stack project seems to be the most complex, and presumably covers the other 2 (?).
As far as modifications, I'm not quite sure where to start. My thoughts at this point are to have 2 "modes" on the 1352 - "normal" mode where the 1352 is listening for subghz packets and ble. When someone connects via BLE they would trigger "OAD" mode which would then spool down the normal mode (DMM) stacks and start up some fresh stacks with just the OAD code running in a single mode BLE. After some inactivity timeout, it would revert to normal mode.
Is that a reasonable approach?
Can the OAD code run in DMM mode? If so, how would one go about implementing that?