dspMIAC Bluetooth

For MIAC users to discuss projects, applications, and any other issues related to the MIAC unit.

Moderators: Benj, Mods

Post Reply
gavo4
Posts: 92
Joined: Sat Aug 25, 2018 7:58 pm
Been thanked: 8 times
Contact:

dspMIAC Bluetooth

Post by gavo4 »

Hi All,

Has anyone played with the BT Module inside the dspMIAC?, does anyone have some sample code?

Regards,

Gavin

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: dspMIAC Bluetooth

Post by Benj »

Hi Gavin,

Assuming you're using Flowcode 8, Please can you try this and let us know how you get on.
MIAC_dsPIC_Bluetooth.fcfx
(11.17 KiB) Downloaded 299 times

gavo4
Posts: 92
Joined: Sat Aug 25, 2018 7:58 pm
Been thanked: 8 times
Contact:

Re: dspMIAC Bluetooth

Post by gavo4 »

Thanks Benj!,

Will give it a go tomorrow..;-)

gavo4
Posts: 92
Joined: Sat Aug 25, 2018 7:58 pm
Been thanked: 8 times
Contact:

Re: dspMIAC Bluetooth

Post by gavo4 »

Hi Benj,

Please see attached Screen Grab of the Set-Up, I assume the Baud rate is 115200?
Clipboard04.jpg
Clipboard04.jpg (143.11 KiB) Viewed 9778 times

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: dspMIAC Bluetooth

Post by LeighM »

57600
TX E.4
RX E.3
Flow Control Off

gavo4
Posts: 92
Joined: Sat Aug 25, 2018 7:58 pm
Been thanked: 8 times
Contact:

Re: dspMIAC Bluetooth

Post 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

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: dspMIAC Bluetooth

Post 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
Attachments
MIAC_dsPIC_InputOutput.hex
(40.9 KiB) Downloaded 258 times

gavo4
Posts: 92
Joined: Sat Aug 25, 2018 7:58 pm
Been thanked: 8 times
Contact:

Re: dspMIAC Bluetooth

Post by gavo4 »

Hi Leigh,

It only says MI5809 dsPIC

F1 for Input Test
F2 for Output Test

No BT

Regards,

Gavin

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: dspMIAC Bluetooth

Post by LeighM »

Oh, that's not a good start then :roll:
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
bluetooth.jpg (121.16 KiB) Viewed 9767 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.

gavo4
Posts: 92
Joined: Sat Aug 25, 2018 7:58 pm
Been thanked: 8 times
Contact:

Re: dspMIAC Bluetooth

Post 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

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: dspMIAC Bluetooth

Post by LeighM »

Also worth checking that the two sets of jumper links are as in the photo

gavo4
Posts: 92
Joined: Sat Aug 25, 2018 7:58 pm
Been thanked: 8 times
Contact:

Re: dspMIAC Bluetooth

Post by gavo4 »

Thanks Leigh,

I did check that as well and all is in order,

Regards,

Gavin

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: dspMIAC Bluetooth

Post by LeighM »

Hi,
Here's another Bluetooth test program, this one checks the baud rate.
Leigh
Attachments
MIAC (dsPIC) HP1001 (RN4677) Bluetooth setup.hex
(41.64 KiB) Downloaded 215 times

gavo4
Posts: 92
Joined: Sat Aug 25, 2018 7:58 pm
Been thanked: 8 times
Contact:

Re: dspMIAC Bluetooth

Post 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

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: dspMIAC Bluetooth

Post by LeighM »

Hi Gavin,
Thanks for the update, glad to hear it is working now :D
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 :roll:
But if you check and fix the UART properties all should be well
Leigh
Attachments
MIAC (dsPIC) HP1001 (RN4677) Bluetooth setup.fcfx
(34.97 KiB) Downloaded 184 times

Post Reply