nrf51822 and BLE

2020-06-16 Thread Matias N.
Hi, I'm picking up a project based on a NRF51822 module and I'm currently trying out Zephyr due to the available BLE support. However, I'm having some issues with it and, while I guess it is a matter of learning more about Zephyr to solve them, I was wondering about what is the state now for Nut

RE: nrf51822 and BLE

2020-06-16 Thread spudaneco
Why not use the BLE provided by NuttX?Sent from Samsung tablet. Original message From: "Matias N." Date: 6/16/20 6:42 PM (GMT-06:00) To: dev@nuttx.apache.org Subject: nrf51822 and BLE Hi,I'm picking up a project based on a NRF51822 module and I'm currentl

Re: nrf51822 and BLE

2020-06-16 Thread Matias N.
> Why not use the BLE provided by NuttX?Sent from Samsung tablet. > Original message From: "Matias N." Date: > 6/16/20 6:42 PM (GMT-06:00) To: dev@nuttx.apache.org Subject: nrf51822 and > BLE Hi,I'm picking up a project based on a NRF51822 module and I&

Re: nrf51822 and BLE

2020-06-16 Thread Gregory Nutt
AFAIK NuttX supports the Host level API and at most HCI UART interface. I'm referring to the link-level code which interfaces directly with NRF51822 so that you can run NuttX in the board itself (and not as an external module via UART). It supports both host and slave and uses a driver defin

Re: nrf51822 and BLE

2020-06-16 Thread Matias N.
Not sure what you mean by "slave" in this case. What I'm referring to is the access to the low-level Bluetooth hardware (register based access to radio peripheral). I didn't meant NuttX's BLE stack would only support HCI UART, I mean that there's no support for NRF radio (link-level layer) on Nu

Re: nrf51822 and BLE

2020-06-17 Thread raiden00pl .
You can use Nordic's priorpiate BLE stack (SoftDevice) and after a few hacks even Nordic SDK can be integrated with Nuttx. This gives you a certified BLE stack but it has a huge disadvantage - it is a closed source. Looking for bugs in such an environment is a nightmare. Some time ago I started wo

Re: nrf51822 and BLE

2020-06-17 Thread Alan Carvalho de Assis
Hi Mateusz, This is a great idea! Note that zGlue did exactly it, but they are using nRF52. Maybe Sony or Xiaomi has something similar implemented for NuttX and could help. Guys, are you hearing? Xiang? Masayuki? BR, Alan On 6/17/20, raiden00pl . wrote: > You can use Nordic's priorpiate BLE

Re: nrf51822 and BLE

2020-06-17 Thread Matias N.
I saw that option recently and I don't really like it. It seems a debugging nightmare. What I actually like about Nordic is that at least it is possible to have an open-source low-level radio stack, which is not the case for Espressif since this is still closed source and undocumented. So I thin

Re: nrf51822 and BLE

2020-06-17 Thread raiden00pl .
I agree that access to low-level radio with documented registers is a big plus for Nordic. I hope other vendors will follow the same path (if not then we always have reverse engineering :P). For this reason, we should have a standardized interface for BLE single-chip solutions in Nuttx. A non-stand

Re: nrf51822 and BLE

2020-06-17 Thread Ishikawa, Masayuki (SHES)
board which supports HCI and both Bluetooth stacks support POSIX environments so it was easy for us to port the stacks to NuttX. Regards, Masayuki 差出人: Alan Carvalho de Assis 送信日時: 2020年6月17日 21:13 宛先: dev@nuttx.apache.org 件名: Re: nrf51822 and BLE Hi Mateusz, This

Re: nrf51822 and BLE

2020-06-18 Thread Matias N.
I've been looking a bit more into how Zephyr code handles the NRF chips and how the Bluetooth stack is organized, see here: https://github.com/zephyrproject-rtos/zephyr/tree/master/subsys/bluetooth/controller From what I understand, they can either talk to a controller via HCI UART/SPI or direc

Re: nrf51822 and BLE

2020-06-18 Thread Alan Carvalho de Assis
Hi Matias, On 6/18/20, Matias N. wrote: > I've been looking a bit more into how Zephyr code handles the NRF chips and > how the Bluetooth stack is organized, see here: > https://github.com/zephyrproject-rtos/zephyr/tree/master/subsys/bluetooth/controller > > From what I understand, they can eith