Re: aws iot
Ryan Erickson
Hey Guy,
Start with the MQTT publisher example. You only need to make a few small tweaks to account for the device cert and key. For example: #if defined(CONFIG_MQTT_LIB_TLS)
#include "certificate.h"
#define APP_CA_CERT_TAG CA_TAG
#define APP_DEVICE_CERT_TAG DEVICE_CERT_TAG
static sec_tag_t m_sec_tags[] = {
#if defined(CONFIG_NET_SOCKETS_SOCKOPT_TLS)
APP_CA_CERT_TAG, APP_DEVICE_CERT_TAG
#endif
};
static int tls_init(void)
{
int err = -EINVAL;
#if defined(CONFIG_NET_SOCKETS_SOCKOPT_TLS)
err = tls_credential_add(APP_CA_CERT_TAG, TLS_CREDENTIAL_CA_CERTIFICATE,
ca_certificate, sizeof(ca_certificate));
if (err < 0) {
LOG_ERR("Failed to register public certificate: %d", err);
return err;
}
err = tls_credential_add(APP_DEVICE_CERT_TAG,
TLS_CREDENTIAL_SERVER_CERTIFICATE,
dev_certificate, sizeof(dev_certificate));
if (err < 0) {
LOG_ERR("Failed to register device certificate: %d", err);
return err;
}
err = tls_credential_add(APP_DEVICE_CERT_TAG,
TLS_CREDENTIAL_PRIVATE_KEY, dev_key,
sizeof(dev_key));
if (err < 0) {
LOG_ERR("Failed to register device key: %d", err);
return err;
}
#endif
return err;
}
#endif /* CONFIG_MQTT_LIB_TLS */
|
|
Development in Zephyr
Muhammad Muh <muhammad.muh83@...>
Hi.....I found this email address from Zephyr Projects. Basically i am totally new in the area of development. I want to start development using Zephyr. I have already installed Zephyr by following the instruction given in the website. Also, ran the hello world
program. Now i want to take help from you people as how i should go on and develop the application like given in your Zephyr SAMPLES. I am confused from where i start my programming. For example talking of Bluetooth Mesh Sample. You have one sample program.
First of all how can i see the output of Mesh Demo Program. Moreover, from where i start to add on features and run with some hardware board as given in the list on zephyr website. I will be thank full
if i can get help to start my programming in Zephyr.
|
|
aws iot
guy.benyehuda@...
looking for an example/insights with respect to working with aws iot and/or using x.509 certificate.
any information will be much appreciated. thanks, guy
|
|
Discussion about libc development for external lib integration
pzierhoffer@...
// this is a resend of an email that I apparently failed to send via the web ui. Sorry if you get two copies, // if at the end of the day the mailing system decides to deliver my previous message Hi all As suggested by Paul Sokolovsky, I just wanted to let everyone know that there is an ongoing effort to integrate Zephyr with CivetWeb - an external, posix-based HTTP library. The mail goal here is to add the HTTP API to Zephyr, but also to verify integration capabilities. This effort made quite a stir, as different implementations of libc have different level of completeness and compatibility with Zephyr's POSIX layer. The summarizing ticket is here: https://github.com/zephyrproject-rtos/zephyr/issues/16683 Currently, as suggested by Anas, we are creating a pull request with a CivetWeb sample with all the missing libc functions implemented as stubs in the sample directory. The incompatibilities of POSIX and newlib would definitely require attention from the community, you are all welcome to help. If you are interested in the topic and would like to know more, please take a look at the ticket and leave your comments there. Best regards Piotr Zierhoffer Antmicro
|
|
Discussion about libc development for external lib integration
pzierhoffer@...
Hi all
As suggested by Paul Sokolovsky, I just wanted to let everyone know that there is an ongoing effort to integrate Zephyr with CivetWeb - an external, posix-based HTTP library. The mail goal here is to add the HTTP API to Zephyr, but also to verify integration capabilities. This effort made quite a stir, as different implementations of libc have different level of completeness and compatibility with Zephyr's POSIX layer. The summarizing ticket is here: https://github.com/zephyrproject-rtos/zephyr/issues/16683 Currently, as suggested by Anas, we are creating a pull request with a CivetWeb sample with all the missing libc functions implemented as stubs in the sample directory. The incompatibilities of POSIX and newlib would definitely require attention from the community, your support is very welcome. If you are interested in the topic and would like to know more, please take a look at the ticket and leave your comments there. Best regards Piotr Zierhoffer Antmicro
|
|
Upcoming Event: Zephyr Project: Dev Meeting - Thu, 06/20/2019 8:00am-9:00am, Please RSVP
#cal-reminder
devel@lists.zephyrproject.org Calendar <devel@...>
Reminder: Zephyr Project: Dev Meeting When: Thursday, 20 June 2019, 8:00am to 9:00am, (GMT-07:00) America/Los Angeles Where:https://zoom.us/j/993312203 An RSVP is requested. Click here to RSVP Organizer: devel@... Description: Join Zoom Meeting
|
|
Re: nrf52 debug with Linux VirtualBox
Chettimada, Vinayak Kariappa
Hi David,
You can try adding the device to “USB Device filters” in the VirtualBox guest’s settingsàports à USB.
Usually, if the Segger firmware has updates, the JLink will try firmware upgrade hence will recycling the host MPU (Atmel) and by having the device in “USB Device filters” it will get re-enumerated, DFU completes and thereafter continue flashing firmware to target MCU (Nordic SoC).
Regards, Vinayak
From:
<devel@...> on behalf of "David Leach via Lists.Zephyrproject.Org" <david.leach=nxp.com@...>
Are there any tricks to get the nrf52 board to be able to use the Zephyr build chain from within a VirtualBox Linux machine? When ever I run ‘ninja -Cbuild flash’ the Jlink usb device disconnects from the virtual box.
David Leach
NXP Semiconductors phone: +1.210.241.6761 Email: david.leach@...
** PROPRIETARY & COMPANY-CONFIDENTIAL **
|
|
nrf52 debug with Linux VirtualBox
David Leach
Are there any tricks to get the nrf52 board to be able to use the Zephyr build chain from within a VirtualBox Linux machine? When ever I run ‘ninja -Cbuild flash’ the Jlink usb device disconnects from the virtual box.
David Leach
NXP Semiconductors phone: +1.210.241.6761 Email: david.leach@...
** PROPRIETARY & COMPANY-CONFIDENTIAL **
|
|
Re: Callback on DNS added/removed
Ryan Erickson <Ryan.Erickson@...>
Hello All,
toggle quoted messageShow quoted text
What I have found is that the event handler will only let you register similar events. Only IF_UP/IF_DOWN can be registered to one callback function. For IPV4 events, you must register a separate callback function. This is not ideal and is very confusing. Looking through the code, this happens due to the filtering on NET_MGMT_GET_LAYER, NET_MGMT_GET_LAYER_CODE, NET_MGMT_GET_COMMAND in mgmt_run_callbacks() of net_mgmt.c. Regards, Ryan Erickson
-----Original Message-----
From: devel@... <devel@...> On Behalf Of lairdjm via Lists.Zephyrproject.Org Sent: Wednesday, June 19, 2019 03:53 To: Jukka Rissanen <jukka.rissanen@...>; devel@... Cc: devel@... Subject: Re: [Zephyr-devel] Callback on DNS added/removed EXTERNAL EMAIL: This email originated outside of Laird. Be careful with attachments and links. Hi Jukka, That seems to fix it for (NET_EVENT_IPV4_ADDR_ADD | NET_EVENT_IPV4_CMD_ROUTER_ADD) but (NET_EVENT_IF_UP | NET_EVENT_IPV4_ADDR_ADD | NET_EVENT_IPV4_CMD_ROUTER_ADD) prevents any events triggering, so it's a step in the right direction. I'm not actually checking for events in the handler code, I'm just printing out each time it runs: static void iface_evt_handler(struct net_mgmt_event_callback *cb, u32_t mgmt_event, struct net_if *iface) { printf("MGMT_EVT\r\n"); } Thanks, Jamie Hi Jamie, On Tue, 2019-06-18 at 14:53 +0000, lairdjm wrote:Also I see on
|
|
Re: Callback on DNS added/removed
lairdjm
Hi Jukka,
toggle quoted messageShow quoted text
That seems to fix it for (NET_EVENT_IPV4_ADDR_ADD | NET_EVENT_IPV4_CMD_ROUTER_ADD) but (NET_EVENT_IF_UP | NET_EVENT_IPV4_ADDR_ADD | NET_EVENT_IPV4_CMD_ROUTER_ADD) prevents any events triggering, so it's a step in the right direction. I'm not actually checking for events in the handler code, I'm just printing out each time it runs: static void iface_evt_handler(struct net_mgmt_event_callback *cb, u32_t mgmt_event, struct net_if *iface) { printf("MGMT_EVT\r\n"); } Thanks, Jamie
Hi Jamie, On Tue, 2019-06-18 at 14:53 +0000, lairdjm wrote:Also I see on
|
|
Re: Callback on DNS added/removed
Jukka Rissanen
Hi Jamie,
toggle quoted messageShow quoted text
note that in your callback, you need to check the exact value of the event, so if (mgmt_event == NET_EVENT_IPV6_ADDR_ADD) {} instead of if (mgmt_event & NET_EVENT_IPV6_ADDR_ADD) {} I also noticed some issues with multiple events mask last week. My fix proposal can be found in https://github.com/zephyrproject-rtos/zephyr/pull/16743, see commit "net: mgmt: Fix the layer and layer code matching" in that PR. Please try and report if it works for you or not. Cheers, Jukka
On Tue, 2019-06-18 at 14:53 +0000, lairdjm wrote:
Also I see on
|
|
Re: Callback on DNS added/removed
Jukka Rissanen
Hi Jamie,
toggle quoted messageShow quoted text
adding some net_mgmt events for DNS is certainly possible. Currently there are none as you have noticed. Could you create a github issue for this so it is not forgotten? Cheers, Jukka
On Tue, 2019-06-18 at 14:46 +0000, lairdjm wrote:
Hi,
|
|
counter.h API
Chruściński, Krzysztof
Hi,
If anyone is interested in counter.h API there are two ongoing PR’s with proposed changes:
https://github.com/zephyrproject-rtos/zephyr/pull/16252 - extending API to support detection of setting alarm too late https://github.com/zephyrproject-rtos/zephyr/pull/14794 - adding flag to keep counter running when top value is changed
Regards, Krzysztof
|
|
Upcoming Event: Zephyr Project: APIs - Tue, 06/18/2019 9:00am-10:00am, Please RSVP
#cal-reminder
devel@lists.zephyrproject.org Calendar <devel@...>
Reminder: Zephyr Project: APIs When: Tuesday, 18 June 2019, 9:00am to 10:00am, (GMT-07:00) America/Los Angeles Where:https://zoom.us/j/177647878 An RSVP is requested. Click here to RSVP Organizer: devel@... Description: Join from PC, Mac, Linux, iOS or Android: https://zoom.us/j/177647878 Live meeting minutes: https://docs.google.com/
|
|
API meeting: Agenda
Carles Cufi
Agenda:
- New proposal: Video for Zephyr API - Sensor API: Update on progress - GPIO: Update on progress Additional items in the "Triage" column in the GitHub project may be discussed if time permits. If you want an item included in the meeting, please add it to the GitHub project. https://github.com/zephyrproject-rtos/zephyr/wiki/Zephyr-Committee-and-Working-Group-Meetings#zephyr-api-discussion https://github.com/zephyrproject-rtos/zephyr/projects/18 https://docs.google.com/document/d/1lv-8B5QE2m4FjBcvfqAXFIgQfW5oz6306zJ7GIZIWCk/edit Regards, Carles
|
|
Re: Callback on DNS added/removed
lairdjm
Also I see on https://docs.zephyrproject.org/latest/reference/networking/net_mgmt.html?highlight=net_mgmt_init_event_callback that net_mgmt_init_event_callback() specifies it takes a bitmask of events for combining them into a single event but I am unable to get this working, NET_EVENT_IPV4_ADDR_ADD works and I get the callback but (NET_EVENT_IF_UP | NET_EVENT_IPV4_ADDR_ADD) doesn’t seem to give me a callback at all.
|
|
Callback on DNS added/removed
lairdjm
Hi, There currently doesn’t seem to be any hooks in Zephyr for getting a callback when a DNS server is added or removed which would be useful for on systems where setting up DNS takes longer than it takes to add a network interface, so there is the potential for a network interface to be added, a callback to be sent to the user application and a TCP connection attempt before DNS is added – is there a way to get a notification when DNS has been added that I’ve overlooked? Thanks, Jamie
|
|
I2C: Bitbang driver and clock stretching
Hi,
while playing with an BQ27421YZFR battery gauge, I noticed that the I²C bitbang driver does not support clock stretching. Easy enough to fix: https://github.com/zephyrproject-rtos/zephyr/pull/16849 The code in i2c_gpio_set_scl() just waits until SCL actually reads back as high. There is currently no timeout - misbehaving slave would cause a deadlock. I also noticed that reading a bit from the SDA line was done a bit too early - it is supposed to be done when SCL is high. Slaves w/o clock stretching would not have noticed this bug, as these would set up SDA line early enough. Yours sincerely, Jörg Fischer
|
|
Re: ninja guiconfig fail
#gettingstartedguide
hotkernel@...
Hi,
I get it, thanks for your patience explain.
|
|
Re: ninja guiconfig fail
#gettingstartedguide
Bolivar, Marti
Hi,
"hotkernel via Lists.Zephyrproject.Org" <hotkernel=163.com@...> writes: Hi Carles,It doesn't matter how you get the source code; west will work too. The important thing is that you need something more recent than LTS for this new feature. If you run plain "west init" it will pull the latest zephyr master -- you would actually have to specify additional arguments not to get the latest, as in "west init --mr v1.14.0". If you previously cloned zephyr v1.14 and want to update to a later version, you can use "git pull". Just make sure to run "west update" after each git pull to update your modules. As has been discussed on other threads in this list, new modules are being added often right now as zephyr/ext is cleared out, and your build will break if you don't keep the up to date. Thanks, Marti
|
|