Anna-b112 Bluetooth module support

2022-10-13 Thread Embedded Systems
Hello Nuttx Community,

First i would like to say that i really hope that everybody is doing well!
I am sorry that long time i didn't had a chance to contribute anything, but
life is moving in a very fast pace for me lately.

For our sport Wearable system i am working on integration of a Bluetooth
module Anna-B112, it is a very interesting small module. The version which
we are using is preflashed with Ublox u-connect software and the module is
based on nRF52832 nordic chip. I would like to ask for advice on how
exactly to implement a relevant support for this to suit Nuttx architecture
because i wish to contribute this port when its done. I am familiar that
Nuttx has Bluetooth stack and also support for HCI bluetooth modules, but
the difference here is that ANNA-B112 has its stack embedder in the nordic
chip and the module is controlled via AT commands through UART, so i am not
exactly sure how to implement the driver for this module. To me it looks
like it has to bypass the nuttx bluetooth stack (because it already has an
embedded one) and directly connect to the application layer, please correct
me if i am wrong here.

I would really appreciate some insight of how exactly to implement the port
to suit Nuttx design and to NOT disrupt in any way the already existing
implementations of bluetooth connectivity

Thank you in advance!

-- 
Kind regards,
Ivan Ucherdzhiev

CTO @ Barin Sports
Bulgaria


simulation spi driver

2022-10-13 Thread Prelude
Have any friends done gpio simulation spi on Nuttx?






Re: Anna-b112 Bluetooth module support

2022-10-13 Thread Alan C. Assis
Hi Ivan,

Nice to hear news from you!

So, you don't to flash NuttX inside Anna-B112, but just want to use it
as external BT BLE module, right?

In this case you need to enable the "Bluetooth H4 UART"

There are some examples on NuttX about how to use it.

Also you can opt for using NuttX internal BLE Stack (that derives from
an old BLE Stack that Intel integrated on Zephyr and that was released
for Arduino/Genuino under BSD License) or you can use the NimBLE stack
that is more complete and also have examples on NuttX.

Using the internal stack could be more challenging, but it will help
to improve our own stack.

BR,

Alan

On 10/13/22, Embedded Systems  wrote:
> Hello Nuttx Community,
>
> First i would like to say that i really hope that everybody is doing well!
> I am sorry that long time i didn't had a chance to contribute anything, but
> life is moving in a very fast pace for me lately.
>
> For our sport Wearable system i am working on integration of a Bluetooth
> module Anna-B112, it is a very interesting small module. The version which
> we are using is preflashed with Ublox u-connect software and the module is
> based on nRF52832 nordic chip. I would like to ask for advice on how
> exactly to implement a relevant support for this to suit Nuttx architecture
> because i wish to contribute this port when its done. I am familiar that
> Nuttx has Bluetooth stack and also support for HCI bluetooth modules, but
> the difference here is that ANNA-B112 has its stack embedder in the nordic
> chip and the module is controlled via AT commands through UART, so i am not
> exactly sure how to implement the driver for this module. To me it looks
> like it has to bypass the nuttx bluetooth stack (because it already has an
> embedded one) and directly connect to the application layer, please correct
> me if i am wrong here.
>
> I would really appreciate some insight of how exactly to implement the port
> to suit Nuttx design and to NOT disrupt in any way the already existing
> implementations of bluetooth connectivity
>
> Thank you in advance!
>
> --
> Kind regards,
> Ivan Ucherdzhiev
>
> CTO @ Barin Sports
> Bulgaria
>


Re: simulation spi driver

2022-10-13 Thread Alan C. Assis
Hi Prelude,

It is using on boards/arm/sam34/arduino-due

What issue are you facing?

On 10/13/22, Prelude  wrote:
> Have any friends done gpio simulation spi on Nuttx?
>
>
>
>
>


Re: [RESULT] Release Apache NuttX (Incubating) 11.0.0 [RC2]

2022-10-13 Thread Tomek CEDRO
Hello Alan and Mike :-)

Most of us cyberpunks have this problem with time division between
what we want to do and what we have to do :-)

Mike, your core work might be a good fundament for other people, when
it is in the upstream someone can pick a task in a free moment, and
piece by piece it may lead to a working solution.. this will be also a
fun / hobby project for me :-)

I am also in contact with Hans from BeastieLabs, he did crosscompile
Minix to Atari ST on FreeBSD some time ago. Although there is no port,
only a build script, this also may be a good starting point for
MC68000 crossdevelopment on FreeBSD :-)

http://www.beastielabs.net/minix.html
http://www.beastielabs.net/crossdev.html

Best regards :-)
Tomek

-- 
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info


Re: Anna-b112 Bluetooth module support

2022-10-13 Thread Embedded Systems
Hello Alan,

Its good to hear from you too.

So, you don't to flash NuttX inside Anna-B112, but just want to use it
as external BT BLE module, right?

The Anna module is flashed with u-blox connect and we are using it as
external ble module, the module has the whole ble stack embedded in the
u-box connect and is controlled via AT commands, thats why i am not sure
how exactly to port it for Nuttx in a suitable way.

Best regars,
Ivan ucherdzhiev


На чт, 13.10.2022 г., 18:31 Alan C. Assis  написа:

> Hi Ivan,
>
> Nice to hear news from you!
>
> So, you don't to flash NuttX inside Anna-B112, but just want to use it
> as external BT BLE module, right?
>
> In this case you need to enable the "Bluetooth H4 UART"
>
> There are some examples on NuttX about how to use it.
>
> Also you can opt for using NuttX internal BLE Stack (that derives from
> an old BLE Stack that Intel integrated on Zephyr and that was released
> for Arduino/Genuino under BSD License) or you can use the NimBLE stack
> that is more complete and also have examples on NuttX.
>
> Using the internal stack could be more challenging, but it will help
> to improve our own stack.
>
> BR,
>
> Alan
>
> On 10/13/22, Embedded Systems  wrote:
> > Hello Nuttx Community,
> >
> > First i would like to say that i really hope that everybody is doing
> well!
> > I am sorry that long time i didn't had a chance to contribute anything,
> but
> > life is moving in a very fast pace for me lately.
> >
> > For our sport Wearable system i am working on integration of a Bluetooth
> > module Anna-B112, it is a very interesting small module. The version
> which
> > we are using is preflashed with Ublox u-connect software and the module
> is
> > based on nRF52832 nordic chip. I would like to ask for advice on how
> > exactly to implement a relevant support for this to suit Nuttx
> architecture
> > because i wish to contribute this port when its done. I am familiar that
> > Nuttx has Bluetooth stack and also support for HCI bluetooth modules, but
> > the difference here is that ANNA-B112 has its stack embedder in the
> nordic
> > chip and the module is controlled via AT commands through UART, so i am
> not
> > exactly sure how to implement the driver for this module. To me it looks
> > like it has to bypass the nuttx bluetooth stack (because it already has
> an
> > embedded one) and directly connect to the application layer, please
> correct
> > me if i am wrong here.
> >
> > I would really appreciate some insight of how exactly to implement the
> port
> > to suit Nuttx design and to NOT disrupt in any way the already existing
> > implementations of bluetooth connectivity
> >
> > Thank you in advance!
> >
> > --
> > Kind regards,
> > Ivan Ucherdzhiev
> >
> > CTO @ Barin Sports
> > Bulgaria
> >
>


Re: Anna-b112 Bluetooth module support

2022-10-13 Thread Alan C. Assis
Hi Ivan,

Normally using external BLE modules that follows the HCI H4 is easier
than porting to some chip with internal BLE and application in the
same chip.

You can see how it is done in the sim and also here:

boards/arm/stm32/stm32f4discovery/src/stm32_hciuart.c

BR,

Alan

On 10/13/22, Embedded Systems  wrote:
> Hello Alan,
>
> Its good to hear from you too.
>
> So, you don't to flash NuttX inside Anna-B112, but just want to use it
> as external BT BLE module, right?
>
> The Anna module is flashed with u-blox connect and we are using it as
> external ble module, the module has the whole ble stack embedded in the
> u-box connect and is controlled via AT commands, thats why i am not sure
> how exactly to port it for Nuttx in a suitable way.
>
> Best regars,
> Ivan ucherdzhiev
>
>
> На чт, 13.10.2022 г., 18:31 Alan C. Assis  написа:
>
>> Hi Ivan,
>>
>> Nice to hear news from you!
>>
>> So, you don't to flash NuttX inside Anna-B112, but just want to use it
>> as external BT BLE module, right?
>>
>> In this case you need to enable the "Bluetooth H4 UART"
>>
>> There are some examples on NuttX about how to use it.
>>
>> Also you can opt for using NuttX internal BLE Stack (that derives from
>> an old BLE Stack that Intel integrated on Zephyr and that was released
>> for Arduino/Genuino under BSD License) or you can use the NimBLE stack
>> that is more complete and also have examples on NuttX.
>>
>> Using the internal stack could be more challenging, but it will help
>> to improve our own stack.
>>
>> BR,
>>
>> Alan
>>
>> On 10/13/22, Embedded Systems  wrote:
>> > Hello Nuttx Community,
>> >
>> > First i would like to say that i really hope that everybody is doing
>> well!
>> > I am sorry that long time i didn't had a chance to contribute anything,
>> but
>> > life is moving in a very fast pace for me lately.
>> >
>> > For our sport Wearable system i am working on integration of a
>> > Bluetooth
>> > module Anna-B112, it is a very interesting small module. The version
>> which
>> > we are using is preflashed with Ublox u-connect software and the module
>> is
>> > based on nRF52832 nordic chip. I would like to ask for advice on how
>> > exactly to implement a relevant support for this to suit Nuttx
>> architecture
>> > because i wish to contribute this port when its done. I am familiar
>> > that
>> > Nuttx has Bluetooth stack and also support for HCI bluetooth modules,
>> > but
>> > the difference here is that ANNA-B112 has its stack embedder in the
>> nordic
>> > chip and the module is controlled via AT commands through UART, so i am
>> not
>> > exactly sure how to implement the driver for this module. To me it
>> > looks
>> > like it has to bypass the nuttx bluetooth stack (because it already has
>> an
>> > embedded one) and directly connect to the application layer, please
>> correct
>> > me if i am wrong here.
>> >
>> > I would really appreciate some insight of how exactly to implement the
>> port
>> > to suit Nuttx design and to NOT disrupt in any way the already existing
>> > implementations of bluetooth connectivity
>> >
>> > Thank you in advance!
>> >
>> > --
>> > Kind regards,
>> > Ivan Ucherdzhiev
>> >
>> > CTO @ Barin Sports
>> > Bulgaria
>> >
>>
>