Page 1 of 1
dspMIAC Bluetooth
Posted: Tue Jan 08, 2019 7:00 pm
by gavo4
Hi All,
Has anyone played with the BT Module inside the dspMIAC?, does anyone have some sample code?
Regards,
Gavin
Re: dspMIAC Bluetooth
Posted: Thu Jan 10, 2019 12:13 pm
by Benj
Hi Gavin,
Assuming you're using Flowcode 8, Please can you try this and let us know how you get on.
Re: dspMIAC Bluetooth
Posted: Thu Jan 10, 2019 7:59 pm
by gavo4
Thanks Benj!,
Will give it a go tomorrow..

Re: dspMIAC Bluetooth
Posted: Fri Jan 11, 2019 12:22 pm
by gavo4
Hi Benj,
Please see attached Screen Grab of the Set-Up, I assume the Baud rate is 115200?

- Clipboard04.jpg (143.11 KiB) Viewed 13670 times
Re: dspMIAC Bluetooth
Posted: Fri Jan 11, 2019 12:55 pm
by LeighM
57600
TX E.4
RX E.3
Flow Control Off
Re: dspMIAC Bluetooth
Posted: Fri Jan 11, 2019 2:42 pm
by gavo4
Thanks Leigh,
Still no connection, keeps saying FAIL, I also can't see the BT module in my "search" on my BT Terminal program
Any ideas what else I should check?
Regards,
Gavin
Re: dspMIAC Bluetooth
Posted: Fri Jan 11, 2019 3:04 pm
by LeighM
Hi Gavin,
Might be worth just giving the MIAC a test.
Could you load the attached test program using mLoader
On running the program, the MIAC should display the message "MI8759 dsPIC + BT" if all is well and the Bluetooth module has been detected.
Thanks
Leigh
Re: dspMIAC Bluetooth
Posted: Fri Jan 11, 2019 4:08 pm
by gavo4
Hi Leigh,
It only says MI5809 dsPIC
F1 for Input Test
F2 for Output Test
No BT
Regards,
Gavin
Re: dspMIAC Bluetooth
Posted: Fri Jan 11, 2019 4:21 pm
by LeighM
Oh, that's not a good start then
If it was bought as a Bluetooth version MI8759, then it should look like this inside,
the Bluetooth module is on the right between the two white support pillars

- bluetooth.jpg (121.16 KiB) Viewed 13659 times
To open the unit, pull at the sides slightly to release the top cover catches,
then pull off the top cover whilst pressing on the key pad to push the top pcb out of the cover.
Re: dspMIAC Bluetooth
Posted: Sat Jan 12, 2019 12:48 pm
by gavo4
Hi Leigh,
I opened the unit and saw the blue LED flashing on/off every 2-3 seconds. I tried both your code and the one from Benj with the no response from the BT module.
I have ordered any BT Miac so I will wait test that one incase something is no right with the hardware,
Regards,
Gavin
Re: dspMIAC Bluetooth
Posted: Sat Jan 12, 2019 1:12 pm
by LeighM
Also worth checking that the two sets of jumper links are as in the photo
Re: dspMIAC Bluetooth
Posted: Sat Jan 12, 2019 1:19 pm
by gavo4
Thanks Leigh,
I did check that as well and all is in order,
Regards,
Gavin
Re: dspMIAC Bluetooth
Posted: Mon Jan 14, 2019 8:54 am
by LeighM
Hi,
Here's another Bluetooth test program, this one checks the baud rate.
Leigh
Re: dspMIAC Bluetooth
Posted: Mon Jan 14, 2019 9:10 am
by gavo4
Hi Leigh,
Its working 100%, I also loaded the code from Benj and now it also working,
Thanks allot!,
I would love to see the code the BT Setup..
Regards,
Gavin
Re: dspMIAC Bluetooth
Posted: Mon Jan 14, 2019 9:36 am
by LeighM
Hi Gavin,
Thanks for the update, glad to hear it is working now
Setup program source attached.
It's an (old) Flowcode V6 program that was written prior to the CAL component property expose changes.
So when you load it into V8 the UART properties will all be incorrect.
I've not got around to fixing all that yet
But if you check and fix the UART properties all should be well
Leigh