Page 1 of 1

Nanopi m3 bluetooth & wifi

Posted: Sat Sep 24, 2016 3:07 pm
by MarkL
Hi,

Where are the datasheet for wifi & bluetooth on the M3 board?
I need to configure it for bare metal applications.

Thanks

Re: Nanopi m3 bluetooth & wifi

Posted: Sat Sep 24, 2016 7:49 pm
by davef
Check the M3 schematic. If is a AP6210 go to the bottom of the NanoPI Wiki page

Re: Nanopi m3 bluetooth & wifi

Posted: Sat Sep 24, 2016 8:51 pm
by MarkL
Davef,
It is a ap6212. It is apparently based on a broadcom chip.
After many searches, nothing enables me to code it, past reverse engineering maybe.

I find it odd that manufacturers don't release the API + addresses with the doc (or as an annex)..

Re: Nanopi m3 bluetooth & wifi

Posted: Sun Sep 25, 2016 12:30 am
by davef
MarkL,

It must either be a recognised kernel driver in Debian Jessie or FA have written some code to interface to it. Still that would only give you the API that they have used.

Try asking FA directly if they would release it.

Good luck,
Dave

Re: Nanopi m3 bluetooth & wifi

Posted: Sun Sep 25, 2016 12:34 am
by davef
For the NanoPi:

linux-4.x.y/arch/arm/mach-s3c24xx/mach-mini2451.c

it tells you how to turn in ON. That is a start.

Re: Nanopi m3 bluetooth & wifi

Posted: Sun Sep 25, 2016 11:02 am
by MarkL
Actually, the APi is the only thing I need.

I don't want to rewrite the whole stack or interfere with it. Just a msg list in a FIFO to send and receive and configure some basic stuffs like being discoverable or not.

The specification talks about the gpio connected to bluetooth, I think I can do something with it.

But I will definitely need to talk to FA tech to know the API.

Thanks Davef

Re: Nanopi m3 bluetooth & wifi

Posted: Sun Sep 25, 2016 8:27 pm
by MarkL
Now,

I am pretty sure that I just need to use the UART to send my commands and set my interrupts to answer bluetooth events.
Then read the HCI buffers and keep rolling.

Actually, it should be much simpler than I thought.

Re: Nanopi m3 bluetooth & wifi

Posted: Sun Oct 09, 2016 10:01 am
by jjm
Actually the Bluetooth driver of Linux is in:https://github.com/friendlyarm/wireless,and about Android system the Bluetooth driver is in kernel code.
About Bluetooth and WiFi datasheet which named AP6212,you can download in wiki :http://wiki.friendlyarm.com/wiki/images/5/57/AP6212_V1.1_09022014.pdf .
Bluetooth uses UART2 serial in the board,about all of Bluetooth sources you can read the source codes which are open source completely.

Re: Nanopi m3 bluetooth & wifi

Posted: Thu Oct 13, 2016 2:14 pm
by awl29
Regarding Bluetooth on both NanoPi-M3 and NanoPC-T3 (using AP6212/BCM43438) please read here:

http://www.friendlyarm.com/Forum/viewtopic.php?f=44&t=312#p958

and try my Bluetooth fix tarball attached to that post.

Best,
awl