下午好,
I'm using the pan1740 together with a microcontroller cortex m4, and I wonder how to modify the DSPS to perform the following tasks on command or GPIO:
* Receive the uart command to start and end advertive;
* Enable the DSPS by a GPIO;
* go into sleep mode or deep sleep also by a GPIO;
Since already thank
Device:
Hi Jonas Freitas
If i undestand correctly, you want to load the DSPS application firmware in your chip and then send commands through the UART in order to start advertise or go to sleep mode etc. The DSPS is a full hosted application that runs exclusively on the DA. You want to create a fully embeded solution, and the DA to accept commands from the M4 ?
I suppose that you can implement the above task but its not just a modification of the DSPS firmware. You can mimic the DSPS application to your M4 and send the appropriate commands to the DA from GTL. See the proximity example (prox_monitor_ext) and the appropriate windows host application that sends commands through uart to the da. The thing is though that there isn't a command to the da that forces it in deep or extended sleep
如果你不't want this kind of thing, another case that i can think of, is to toggle some GPIO's from the M4 create, modify and call the corresponding functions in the interrupt service routines. As far as the sleeping is concern i have to inform you that in the current implementation the device never sleep permanenty, instead it always wakes up to keep the link alive.
Thanks MT_dialog
Grateful,
actually DSPS will be shipped in the DA (pan1740), the M4 cortex will only see him as a serial communication channel, which through some command or GPIO he initiated the DSPs service and advertise, as well as commands to disable . These to replace the part of a competitor who performs these tasks.
I would like to forward the code source of the .apk of DSPS?jonas.freitas@senairs.org.br
Hello Jonas, I have sent you an electronic SLA to accept for the source code for the DSPS. BR JE_DIalog