Re: USB controller driver usb_dc_ep_write
Carles Cufi
+ Johann, Andrei, Pawel
From: devel@...
<devel@...> On Behalf Of Mark Wang
Sent: 10 December 2018 13:37 To: devel@... Subject: [Zephyr-devel] USB controller driver usb_dc_ep_write
Hi all, I see many USB controller drivers implement usb_dc_ep_write function with one copy, copy the data (passed to usb_dc_ep_write) to one self’s buffer then do the transfer. Do I need do this when implementing one new USB controller driver? Does the Zephyr USB stack limit the data (pass to usb_dc_ep_write) is in RAM? The function prototype is as follow: int usb_dc_ep_write(const u8_t ep, const u8_t *const data, const u32_t data_len, u32_t *const ret_bytes)
Mark Wang Thanks
|
||||||||||||||
|
||||||||||||||
USB controller driver usb_dc_ep_write
Mark Wang
Hi all, I see many USB controller drivers implement usb_dc_ep_write function with one copy, copy the data (passed to usb_dc_ep_write) to one self’s buffer then do the transfer. Do I need do this when implementing one new USB controller driver? Does the Zephyr USB stack limit the data (pass to usb_dc_ep_write) is in RAM? The function prototype is as follow: int usb_dc_ep_write(const u8_t ep, const u8_t *const data, const u32_t data_len, u32_t *const ret_bytes)
Mark Wang Thanks
|
||||||||||||||
|
||||||||||||||
icephyr
Thanks Carles, I have realized it.
|
||||||||||||||
|
||||||||||||||
Re: Ble mesh stack not compatilbe with c++
#ble
#bluetoothmesh
Carles Cufi
Hi Robert,
Can you please open a GitHub issue and assign it to @jhedberg ?
Thanks,
Carles
From: devel@... <devel@...>
On Behalf Of robert.konc@...
Sent: 27 November 2018 14:56 To: devel@... Subject: [Zephyr-devel] Ble mesh stack not compatilbe with c++ #ble #bluetoothmesh
Hi,
|
||||||||||||||
|
||||||||||||||
Re: Suggestions on rpl_border_router and rpl_node
#bluetoothmesh
#nrf52480
#nrf52832
#zephyrbluetoothmesh
Ravi kumar Veeramally
Hi Akash, Look the at the hardware information and setup procedure in "samples/net/rpl_border_router/README.rst". - Ravi
On 12/7/18 12:14 PM, Akash Naidu wrote:
|
||||||||||||||
|
||||||||||||||
Re: Suggestions on rpl_border_router and rpl_node
#bluetoothmesh
#nrf52480
#nrf52832
#zephyrbluetoothmesh
Serafin
Hi
There is a platform_whitelist in the sample.yaml file. In your case: "platform_whitelist: frdm_k64f "
So you need this nxp board or have to port the sample to another board.
Serafin
On 07/12/2018 11:14, Akash Naidu wrote:
|
||||||||||||||
|
||||||||||||||
Suggestions on rpl_border_router and rpl_node
#bluetoothmesh
#nrf52480
#nrf52832
#zephyrbluetoothmesh
Akash Naidu <akashnaiduece@...>
Hi All, I have been working on ipv6 over ble on zephyr RTOS to form mesh network.I have been successfully integrated "rpl_node"(which is in zephyr/samples/net/rpl_node) with ble(nrf52832), and it has been able to connected and able to getting the response(if i ping). Now, i am in quite confusion for how to use "rpl_border_router"(which is in zephyr/samples/net/rpl_border_router). which board is suitable to configure it as a rpl_border_router?. I have 5 nrf52 modules which will acts as "rpl_nodes", but how to connect these boards to "rpl_border_router" to form DAG network? could you please suggest me that how to form DAG Network by using "rpl_border_router" and "rpl_node" on Zephyr RTOS? I am totally new to network concepts, if possible please provide some useful documents where i can form the DAG network by using RPL protocol.
Advance in thanks.
BR Akash.
|
||||||||||||||
|
||||||||||||||
Carles Cufi
Hi there,
If you are building the hci_uart then CONFIG_BT_PRIVACY is irrelevant because it’s only tied to the Host. What you need is CONFIG_BT_CTLR_PRIVACY, which enables privacy in the controller.
Carles
From: devel@... <devel@...>
On Behalf Of icephyr
Sent: 06 December 2018 04:34 To: devel@... Subject: [Zephyr-devel] CONFIG_BT_PRIVACY cannot be enabled with Hci_uart sample #nrf52832 #hci
Hi guys, I met a problem here and hop anybody can help.
config BT_PRIVACY
bool
prompt "Privacy Feature" if BT_SMP && BT_CONN && BT_HCI_HOST && BT_HCI && BT depends on BT_SMP && BT_CONN && BT_HCI_HOST && BT_HCI && BT help Enable local Privacy Feature support. This makes it possible to use Resolvable Private Addresses (RPAs).
|
||||||||||||||
|
||||||||||||||
Re: boards: Add Pico-Pi i.MX7D
Diego Sueiro
On Fri, 7 Dec 2018 at 08:48, jun <offougajoris@...> wrote:
In the "soc/arm/nxp_imx/mcimx7_m4/Kconfig.defconfig.mcimx7_m4" we default the GPIO config to "y" which will make the GPIO_IMX config default to "y" as well. I think you can have "CONFIG_GPIO=n" in the boards/arm/pico_pi_m4/pico_pi_m4_defconfig file to get rid of this warning.
|
||||||||||||||
|
||||||||||||||
boards: Add Pico-Pi i.MX7D
Hello,
I am new zephyr user and I try to integrate the Pico-Pi i.MX7D board, during my compilations, I have this warning : warning: 'imx_gpio_driver_api' defined but not used [-Wunused-const-variable=] static const struct gpio_driver_api imx_gpio_driver_api = { ^~~~~~~~~~~~~~~~~~~ /home/jun/zephyr/drivers/gpio/gpio_imx.c:157:13: warning: 'imx_gpio_port_isr' defined but not used [-Wunused-function] static void imx_gpio_port_isr(void *arg) But I do not use gpio in the example, I build correctly the hello_world example, the binary works well on the target but I will like the corrected for this PR : https://github.com/zephyrproject-rtos/zephyr/pull/11913 Best regards Joris -- Best Regards, Joris Offouga
|
||||||||||||||
|
||||||||||||||
Re: checkstack.pl
Flavio Ceolin
Hi,
For me only x86 works. Lol. Mistyped again -- to clarify, I definitely mean checkstack.pl andRegard, Flavio Ceolin
|
||||||||||||||
|
||||||||||||||
out of tree soc
mazaun@...
Hello,
I'm new to zephyr and yet working on examples. I like the modular structure of arch, toolchain, board and the use of cmake. Thats just what I was tweaking around with. Also was thinking to use a rtos in my project. So zepyrproject just seems to hit the mark for me :) I'm just trying to learn what is the best practice to add own modules in custom projects without changing the zephyr source tree. I learned how to add an out-of-tree board. Since I'm working with nios2 cores I would need a method to add a soc too. I didn't find how to include a custom quartus/qsys project. What would be the best way to do? Also concerning nios2 and qemu - how can I enable the float support in a project? Best regards Martin
|
||||||||||||||
|
||||||||||||||
terasic sockit board support
mazaun@...
Hello,
Anyone working on a nios2 soc for the terasic #sockit board ( https://tinyurl.com/ycuuedny ) ? I will try to make an example nios2 only (i.e. without support for the onchip ARM A9) - If there is a basic (free) core sample quartus project (DDR3 ram, cpu, uart) I could eventually start with. Best regards Martin
|
||||||||||||||
|
||||||||||||||
Re: How to configure BLE Mesh FN and LPN?
frv
Hi Johan,
Thanks for the fast reply and the clear explanation. I was hoping it would be simple :), thx! The Zephyr track for implementing the use cases we want to implement looks very promising. Keep up the good work. Best regards, Frank
|
||||||||||||||
|
||||||||||||||
icephyr
Hi guys, I met a problem here and hop anybody can help.
I want to enable the config CONFIG_BT_PRIVACY, and according to the official document, the config depends on BT_SMP BT_CONN BT_HCI_HOST BT_HCI and BT。 So I have to set all these configs above to "y" first, but BT_HCI_HOST conflicts with config BT_HCI_RAW and I have to disable BT_HCI_RAW config if I want to enable BT_HCI_HOST. But the hci_uart sample will compiled with errors if BT_HCI_RAW is disabled. So I wonder how to enable CONFIG_BT_PRIVACY in hci_uart sample ? thanks
config BT_PRIVACY bool prompt "Privacy Feature" if
|
||||||||||||||
|
||||||||||||||
Re: Invitation: Zephyr Bug Triage @ Thu 6 Dec 2018 10am - 11am (CST) (Kumar Gala)
Nashif, Anas
toggle quoted messageShow quoted text
From: devel@... [mailto:devel@...]
On Behalf Of Lincoln Simmons
Sent: Wednesday, December 5, 2018 9:58 PM To: Kumar Gala <kumar.gala@...> Cc: devel@...; tsc-private@... Subject: Re: [Zephyr-devel] Invitation: Zephyr Bug Triage @ Thu 6 Dec 2018 10am - 11am (CST) (Kumar Gala)
Is it possible to join the Slack channel even if we don't have an email from one of the approved domains?
Thanks, Lincoln Simmons
On Wed, Dec 5, 2018, 10:00 AM Kumar Gala <kumar.gala@...> wrote:
|
||||||||||||||
|
||||||||||||||
Re: Invitation: Zephyr Bug Triage @ Thu 6 Dec 2018 10am - 11am (CST) (Kumar Gala)
Lincoln Simmons
Is it possible to join the Slack channel even if we don't have an email from one of the approved domains?
toggle quoted messageShow quoted text
Thanks, Lincoln Simmons
On Wed, Dec 5, 2018, 10:00 AM Kumar Gala <kumar.gala@...> wrote:
|
||||||||||||||
|
||||||||||||||
Re: How to configure BLE Mesh FN and LPN?
Hi Frank,
toggle quoted messageShow quoted text
You need to have CONFIG_BT_MESH_FRIEND=y and/or CONFIG_BT_MESH_LOW_POWER=y enabled to get access to Friendship functionality. You might also want to look at the various BT_MESH_LPN_* and BT_MESH_FRIEND_* options found in subsys/bluetooth/host/mesh/Kconfig, however their default values should be enough to get you started. As Friend there’s nothing special you need to do in your application, except enable the Kconfig option for it and make sure the corresponding Configuration Model State is enabled (either statically as the default value or by a configuration client). As LPN you need to call bt_mesh_lpn_set(true) to go into Low Power mode. The reason why this is at runtime is to allow for devices that have variable power sources, e.g. an internal battery but may also be plugged to a stable external power source from time to time. The selection of Friend node happens automatically, but you can control the process by setting CONFIG_BT_MESH_LPN_RECV_WIN_FACTOR, CONFIG_BT_MESH_LPN_RSSI_FACTOR and CONFIG_BT_MESH_LPN_MIN_QUEUE_SIZE to desired values. To get a good understanding of these and how they influence the Friend Offer Delay calculation please refer to the Mesh specification (sections 3.6.6.3.1 and 3.6.6.4.1 in particular). As for meshctl from BlueZ, I’m not sure if it has any Friendship features. It can definitely not act as a Friend or LPN since it is GATT-only (Friendship is an advertising-only concept in the current spec), but it might have Configuration Client support to toggle the Friend state at runtime (note: LPN has no matching Configuration Model state so you need to use the Zephyr API I mentioned earlier). Johan
On 5 Dec 2018, at 19.02, frv <F.Vieren@...> wrote:
|
||||||||||||||
|
||||||||||||||
Re: Zephyr documentation
Carles Cufi
Hi Mayank,
A good start would be here: https://docs.zephyrproject.org/latest/devices/index.html
Then depending on what kind of driver you want to write my advice would be to look at an existing one and inspect the code in order to understand how it is implemented.
Carles
From: devel@... <devel@...>
On Behalf Of Mayank Upadhyay
Sent: 05 December 2018 19:49 To: devel@... Subject: [Zephyr-devel] Zephyr documentation
Hi, I am new to this Zephyr platform but I have worked on some other RTOs platform for quite some time and I want to get started with this platform by writing my own driver but I didn't get the appropriate documentation so can you guys help me out with this?
|
||||||||||||||
|
||||||||||||||
Zephyr documentation
Mayank Upadhyay
Hi, I am new to this Zephyr platform but I have worked on some other RTOs platform for quite some time and I want to get started with this platform by writing my own driver but I didn't get the appropriate documentation so can you guys help me out with this?
|
||||||||||||||
|