Re: BT Mesh Health Server Fault Register
#bluetoothmesh
#zephyrbluetoothmesh
Hi Billy,
On 3 Apr 2019, at 19.44, William Fish <William.fish@manulytica.com> wrote: Thanks, I've had a look but I still need to understand how to register the faults, via application. Any hint would be appreciated.That depends on your application and the source of the faults. All the stack requires is for you to keep track of the fault history. You could do that e.g. with a simple u8_t array like the mesh shell does. In the case of the mesh shell it has arrays for current and registered faults, with the assumption that there can be up to CUR_FAULTS_MAX different faults. There are also fault-add and fault-del commands to artificially introduce faults (the shell is a testing program - for a real device you’d have the faults coming from some real source). Take a look at how the command handlers for add-fault and del-fault behave, i.e. the cmd_add_fault() and cmd_del_fault() functions. Any time a fault appears or goes away you’re expected to call the bt_mesh_fault_update() API so that the right message gets sent out to the network (if the node is configured to do publication through its health server). The difference between the two types fault arrays (if it’s unclear from the mesh spec): registered faults is the history of faults that your device has experienced at some point in its history, whereas current faults is the set of faults that is currently experiencing. That’s why the add-fault shell command adds to both arrays but the del-fault only removes from the current faults array. Johan
|
|
Re: BT Mesh Health Server Fault Register
#bluetoothmesh
#zephyrbluetoothmesh
Hi,
On 3 Apr 2019, at 19.13, William Fish <William.fish@manulytica.com> wrote: I am looking at the BT Mesh Health Server, and Client, so that i can report faults between nodes and ultimately to the central control application.The Zephyr mesh health server leaves fault registration up to the application, however you do need to register a bt_mesh_health_srv_cb struct which includes callbacks for retrieving the faults, clearing them, etc (these are called whenever the stack needs them). Take a look at e.g. how this is done in the mesh shell in subsys/bluetooth/host/mesh/shell.c. Johan
|
|
BT Mesh Health Server Fault Register
#bluetoothmesh
#zephyrbluetoothmesh
Hi All,
I am looking at the BT Mesh Health Server, and Client, so that i can report faults between nodes and ultimately to the central control application. Unfortunately, i have run into a problem; How do I register a fault? Now the nice people over at Nordic have a few handy functions that allow me to add/set/clear faults but I'm at a loss with the Zephyr implementation. Nordic SDK Functions void health_server_fault_register(health_server_t * p_server, uint8_t fault_code);
void health_server_fault_clear(health_server_t * p_server, uint8_t fault_code);
bool health_server_fault_is_set(health_server_t * p_server, uint8_t fault_code);
|
|
Carles Cufi
Hi Henry,
This is news to me and, although it might be expected, I would like to check with a couple of people. So I think this deserves being tracked. Would you mind opening a “Question” issue on GitHub so I can copy the relevant people and we can investigate a bit further? If you have any code snippets that you can attach to the issue that would be most helpful as well.
Thanks,
Carles
From: devel@... <devel@...>
On Behalf Of henry.wagner via Lists.Zephyrproject.Org
Sent: 29 March 2019 22:41 To: devel@... Cc: devel@... Subject: [Zephyr-devel] #ble #nrf52840
After implementing a throughput test for BLE using #nrf52840 hardware and Zephyr 1.14-rc1, notice some curious behavior in data we are collecting. The test seems to show that sending data from the central (client) to peripheral (server)
throughput performance is relatively balanced per connection but one peripheral seems to get little data and one peripheral get more. In data flow from the peripherals to the central, it is much more unbalanced with one or two peripherals having all the throughput
and the others having none.
|
|
Re: Error Msg whey type "west --version" on the guide of v1.14-rc3
Kai Ren
Hi Aaron,
I'm using Windows. After type "pip --version", the output is: pip3 --version pip 19.0.3 from c:\python37\lib\site-packages\pip (python 3.7) Best Regards, Kai From: Aaron Xu <overheat1984@gmail.com> Sent: Wednesday, April 3, 2019 9:53 AM To: Kai Ren <kren@bluetooth.com> Cc: devel@lists.zephyrproject.org Subject: Re: [Zephyr-devel] Error Msg whey type "west --version" on the guide of v1.14-rc3 Hi, Which OS? win or linux(ubuntu etc.)? # Linux pip3 install --user west # macOS and Windows pip3 install west PS: make sure you already installed python3. On Wed, Apr 3, 2019 at 9:37 AM Kai Ren <mailto:kren@bluetooth.com> wrote: Hello, I follow this link, https://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.zephyrproject.org%2Flatest%2Fgetting_started%2Findex.html%23get-the-source-code&data=02%7C01%7C%7Cc25091f7b8ac4cd5416108d6b7d72dac%7Ce4e0fec5fc6c4dd6ae374bdb30e156b9%7C0%7C0%7C636898532159410710&sdata=GafJVpl0vcuzNoeWclKDT8N3zb9s%2BQyTV5tfNzvZY0Q%3D&reserved=0 , to install west, but after type *west --version*, below message pop-up, it looks abnormal. West bootstrapper version: v0.5.7 (c:\python37\lib\site-packages\west\_bootstrap) Traceback (most recent call last): File "c:\python37\lib\runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "c:\python37\lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "C:\Python37\Scripts\west.exe\__main__.py", line 9, in <module> File "c:\python37\lib\site-packages\west\_bootstrap\main.py", line 479, in main wrap(wrap_argv) File "c:\python37\lib\site-packages\west\_bootstrap\main.py", line 445, in wrap cwd=west_git_repo).decode(sys.getdefaultencoding()).strip() File "c:\python37\lib\subprocess.py", line 376, in check_output **kwargs).stdout File "c:\python37\lib\subprocess.py", line 453, in run with Popen(*popenargs, **kwargs) as process: File "c:\python37\lib\subprocess.py", line 756, in __init__ restore_signals, start_new_session) File "c:\python37\lib\subprocess.py", line 1155, in _execute_child startupinfo) NotADirectoryError: [WinError 267] The directory name is invalid Best Regards, Kai
|
|
Re: Error Msg whey type "west --version" on the guide of v1.14-rc3
Aaron Xu
Hi, Which OS? win or linux(ubuntu etc.)?
PS: make sure you already installed python3. On Wed, Apr 3, 2019 at 9:37 AM Kai Ren <kren@...> wrote:
|
|
Error Msg whey type "west --version" on the guide of v1.14-rc3
Kai Ren
Hello, I follow this link, https://docs.zephyrproject.org/latest/getting_started/index.html#get-the-source-code , to install west, but after type *west --version*, below message pop-up, it looks abnormal.
West bootstrapper version: v0.5.7 (c:\python37\lib\site-packages\west\_bootstrap) Traceback (most recent call last): File "c:\python37\lib\runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "c:\python37\lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "C:\Python37\Scripts\west.exe\__main__.py", line 9, in <module> File "c:\python37\lib\site-packages\west\_bootstrap\main.py", line 479, in main wrap(wrap_argv) File "c:\python37\lib\site-packages\west\_bootstrap\main.py", line 445, in wrap cwd=west_git_repo).decode(sys.getdefaultencoding()).strip() File "c:\python37\lib\subprocess.py", line 376, in check_output **kwargs).stdout File "c:\python37\lib\subprocess.py", line 453, in run with Popen(*popenargs, **kwargs) as process: File "c:\python37\lib\subprocess.py", line 756, in __init__ restore_signals, start_new_session) File "c:\python37\lib\subprocess.py", line 1155, in _execute_child startupinfo) NotADirectoryError: [WinError 267] The directory name is invalid
Best Regards, Kai
|
|
henry.wagner@...
After implementing a throughput test for BLE using Nordic nrf52840 hardware and Zephyr 1.14-rc1, notice some curious behavior in data we are collecting. The test is to evaluate maximum throughput in a 1 to many and many to 1 scenario. Testing seems to show that when sending data from the central (client) to peripheral (server), the throughput performance is relatively balanced per connection but one peripheral seems to get less data and one peripheral get more than the others. In data flow from the peripherals to the central, it is much more unbalanced with one or two peripherals having all the throughput and the others having none.
The central to peripheral is 1:N where the central is a single point source. The many peripherals to central is an N:1 with many sources. In my case N is 1 up to 5, but would like to be greater. The overall aggregate throughput is constant, just not evenly distributed among the BLE devices or comm directions. Using DLE and 2M PHY and data is transferred using bt_gatt_write_without_response on client and bt_gatt_notify and the server. There doesn't seem to be any QOS but I would not have expected such unbalanced behavior. Any thoughts to why this is and how to diagnose/resolve to produce consistent and balanced throughput among the BLE devices? Do I have something misconfigured in my devices? Can share if that will help.
|
|
lightweight hash/MAC support
Jacob Morales Gonzalez <jacobinho86@...>
Hi, currently i am working on a benchmark project of the following light weight crypto hash and mac primitives:
Currently (as far as i know) there are baremetal software implementations for ATtiny Devices (https://link.springer.com/content/pdf/10.1007%2F978-3-642-37288-9_11.pdf), that ignore portability, and i think it is worth to integrate that functionality into the zephyr project, because it'll add light weight crypto protocols that are starting to be used in its fields of application:
|
|
Re: Atomic() vs k_sched_lock() vs irq_lock() vs k_mutex_lock()
Boie, Andrew P
You should be using the APIs in include/atomic.h
On arches that don't natively support atomic operations, these get implemented in terms of irq_lock()
Andrew
From: devel@... [mailto:devel@...]
On Behalf Of Kim Bøndergaard
Sent: Monday, April 1, 2019 6:53 AM To: Zephyr-devel@... Subject: [Zephyr-devel] Atomic() vs k_sched_lock() vs irq_lock() vs k_mutex_lock()
We have an internal discussion about the recommended usage of the 4 methods mentioned in subjects, when the goal is to protect an assignment of a variable (u32 - any platform) within one task so it is not resulting in an invalid reading from a higher priority task.
Mutex'es are usually good since they only disturb the threads being involved in accessing the shared variable - but are they overkill in this case? irq_lock() sounds like something fast but effects the entire system k_sched_lock() is fast (according to the manual) but effects all threads as I see it.
atomic is probably a good option, but what's the efficiency on e.g. an ARM platform not natively supporting atomic's.
Any ideas or recommendation about when to use what solution?
Kim Bøndergaard Phone +45 3315 9090
|
|
Re: GitHub Help
Kinder, David B <david.b.kinder@...>
Hi Lars and Billy, When you do get things figured out, please let me know what GitHub issues you were having and if there are improvements to the Zephyr getting started documentation we can make. I’m a tech writer on the project, so you can reply just to me with any insights on improvements.
Thanks! -- david (david.b.kinder@...)
From: devel@... [mailto:devel@...]
On Behalf Of Lars Knudsen
Sent: Monday, April 01, 2019 8:27 AM To: William Fish <William.fish@...> Cc: devel@... Subject: Re: [Zephyr-devel] GitHub Help
Hi Billy,
what seems to be the problem? - just reply to me so we don't bother the list
br Lars
On Mon, Apr 1, 2019 at 5:25 PM William Fish <William.fish@...> wrote:
|
|
Re: GitHub Help
Lars Knudsen
Hi Billy, what seems to be the problem? - just reply to me so we don't bother the list br Lars
On Mon, Apr 1, 2019 at 5:25 PM William Fish <William.fish@...> wrote: Help Please.
|
|
GitHub Help
Help Please.
I am new to GitHub and am having a terrible time trying to follow the instructions as I used a mixed environment the instructions and results are causing me (and everyone involved) a lot of unnecessary problems. Can anyone help? Billy..
|
|
Atomic() vs k_sched_lock() vs irq_lock() vs k_mutex_lock()
Kim Bøndergaard
We have an internal discussion about the recommended usage of the 4 methods mentioned in subjects, when the goal is to protect an assignment of a variable (u32 - any platform) within one task so it is not resulting in an invalid reading from a higher priority task.
Mutex'es are usually good since they only disturb the threads being involved in accessing the shared variable - but are they overkill in this case? irq_lock() sounds like something fast but effects the entire system k_sched_lock() is fast (according to the manual) but effects all threads as I see it.
atomic is probably a good option, but what's the efficiency on e.g. an ARM platform not natively supporting atomic's.
Any ideas or recommendation about when to use what solution?
Kim Bøndergaard
Prevas A/S Team Manager / Systems Architect Hedeager 3, DK-8200 Aarhus N Phone +45 3315 9090
|
|
Re: [Zephyr Main] WEST File Initialization Problem
M Rizwan Ghori <rizwanghori@...>
Dear,
I am able to install the latest DTC version. Now i am stuck up with the following error while doing the HelloWorld.
mrg@mrg-Lenovo-ideapad-110-15ISK:~/zephyrproject/zephyr/samples/hello_world/build$ cmake -GNinja -DBOARD=qemu_x86 ..
Zephyr version: 1.14.0
-- Selected BOARD qemu_x86
-- Found west: /home/mrg/.local/bin/west (found suitable version "0.5.7", minimum required is "0.5.6")
CMake Error at /home/mrg/zephyrproject/zephyr/cmake/extensions.cmake:1104 (message):
Assertion failed: Zephyr toolchain variant invalid: please set the
ZEPHYR_TOOLCHAIN_VARIANT-variable
Call Stack (most recent call first):
/home/mrg/zephyrproject/zephyr/cmake/generic_toolchain.cmake:47 (assert)
/home/mrg/zephyrproject/zephyr/cmake/app/boilerplate.cmake:395 (include)
CMakeLists.txt:3 (include)
-- Configuring incomplete, errors occurred!
Best Regards
From: M Rizwan Ghori
Sent: Monday, April 1, 2019 4:02 PM To: Cufi, Carles; VanCutsem, Geoffroy; Marti Bolivar Cc: devel@... Subject: Re: [Zephyr-devel] [Zephyr Main] WEST File Initialization Problem
Dear,
Thank you for your reply. I have run the command for hello world example advised by you.
Now i am getting the error as follows while executing the command.
mrg@mrg-Lenovo-ideapad-110-15ISK:~/zephyrproject/zephyr/samples/hello_world/build$ cmake -GNinja -DBOARD=qemu_x86 ..
Zephyr version: 1.14.0
-- Selected BOARD qemu_x86
-- Found west: /home/mrg/.local/bin/west (found suitable version "0.5.7", minimum required is "0.5.6")
CMake Error at /home/mrg/zephyrproject/zephyr/cmake/extensions.cmake:1104 (message):
Assertion failed: The detected dtc version is unsupported.
The version was found to be 1.4.5
But the minimum supported version is 1.4.6
See https://docs.zephyrproject.org/latest/getting_started/
for how to use the SDK's dtc alongside a custom toolchain.
Call Stack (most recent call first):
/home/mrg/zephyrproject/zephyr/cmake/host-tools.cmake:67 (assert)
/home/mrg/zephyrproject/zephyr/cmake/app/boilerplate.cmake:379 (include)
CMakeLists.txt:3 (include)
-- Configuring incomplete, errors occurred!
After this Error i tried to update the device tree compiler (dtc) and i am getting these errors after trying dtc x64 and i386 .
mrg@mrg-Lenovo-ideapad-110-15ISK:~/zephyrproject/zephyr/samples/hello_world/build$ sudo apt install ./device-tree-compiler_1.4.7-1_i386.deb
Reading package lists... Done
E: Unsupported file ./device-tree-compiler_1.4.7-1_i386.deb given on commandline
KIndly advise.
Best Regards
RIzwan
Best Regards
Muhammad Rizwan Ghori
USM Fellow,
School of Computer Sciences,
Universiti Sains Malaysia (USM),
HP: +60-189147161 USM Email: mrizwanghori@...
Private Email: rizwanghori@...
From: Cufi, Carles <Carles.Cufi@...>
Sent: Monday, April 1, 2019 3:37 PM To: M Rizwan Ghori; VanCutsem, Geoffroy; Marti Bolivar Cc: devel@... Subject: RE: [Zephyr-devel] [Zephyr Main] WEST File Initialization Problem Hi there,
This looks like there might be stale build files somewhere in your tree. Can you clean the tree and try again? You can use the following command, but please be careful since it will remove all files that are not tracked by Git:
$ cd $ZEPHYR_BASE $ git clean -fdx
Carles
From: M Rizwan Ghori <rizwanghori@...>
Dear All,
Thank you very much for your response. That problem is resolved by following your advised step. Moreover, now i was moving towards the HelloWorld example i received the following error.
mrg@mrg-Lenovo-ideapad-110-15ISK:~/zephyrproject/zephyr/samples/hello_world/build$ cmake -GNinja -DBOARD=qemu_x86 ..
Zephyr version: 1.14.0 CMake Error at /home/mrg/zephyrproject/zephyr/cmake/app/boilerplate.cmake:104 (message): Source directory equals build directory. In-source builds are not supported. Please specify a build directory, e.g. cmake -Bbuild -H. Call Stack (most recent call first): CMakeLists.txt:3 (include)
Kindly advise.....
Best Regards Muhammad Rizwan Ghori USM Fellow, Universiti Sains Malaysia (USM),
From: Cufi, Carles <Carles.Cufi@...>
Hi there,
This has been a bug that has popped up several times in the past with Ubuntu: https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1588562
As mentioned by others, please add the following line you your ~/.bashrc:
export PATH=$PATH:~/.local/bin
Regards,
Carles
From:
devel@... <devel@...>
On Behalf Of via Lists.Zephyrproject.Org
Dear,
Thank you all for the quick response. Here is the copy paste code.
runs fine, after this i have run the following command and it echos the error shown below.
Command 'west' not found, did you mean:
command 'test' from deb coreutils
Try: sudo apt install <deb name>
Name: west Version: 0.5.7 Summary: Zephyr RTOS Project meta-tool (wrapper and bootstrap) Home-page: https://github.com/zephyrproject-rtos/west Author: Zephyr Project Author-email: devel@... License: UNKNOWN Location: /home/mrg/.local/lib/python3.6/site-packages Requires: configobj, PyYAML, colorama, pykwalify Files: ../../../bin/west west-0.5.7.dist-info/DESCRIPTION.rst west-0.5.7.dist-info/INSTALLER west-0.5.7.dist-info/METADATA west-0.5.7.dist-info/RECORD west-0.5.7.dist-info/WHEEL west-0.5.7.dist-info/entry_points.txt west-0.5.7.dist-info/metadata.json west-0.5.7.dist-info/top_level.txt west/_bootstrap/__init__.py west/_bootstrap/__pycache__/__init__.cpython-36.pyc west/_bootstrap/__pycache__/main.cpython-36.pyc west/_bootstrap/__pycache__/version.cpython-36.pyc west/_bootstrap/main.py west/_bootstrap/version.py west/_bootstrap/west-schema.yml
Kindly advise
Best Regards Muhammad Rizwan Ghori USM Fellow, School of Computer Sciences, Universiti Sains Malaysia (USM),
From: VanCutsem, Geoffroy <geoffroy.vancutsem@...>
Can you paste on this thread what the output of “pip3 show –f west” and “echo $PATH” return?
From:
devel@... [mailto:devel@...]
On Behalf Of M Rizwan Ghori
Dear, I am using Ubuntu 18.04. Moreover, the path of West file is after running the command "pip3 show -f west" is home/rizwan/.local/python 3.6/packages Subsequently, i have installed all the stuff related to Zephyr including Cmake and Zephyr sdk in a path /home/rizwan/zaphyr Kindly advise.
Rizwan
From: Marti Bolivar Sent: Friday, 29 March, 12:43 pm Subject: Re: [Zephyr-devel] [Zephyr Main] WEST File Initialization Problem To: M Rizwan Ghori Cc: Brett Preston, devel@... What version of Ubuntu are you using? If you ran "pip3 install --user west" and west cannot be run afterwards, it sounds like the directory that the west binary was installed into is not on your $PATH. Older versions of Ubuntu sometimes have this issue; I forget which ones. Usually this directory is ~/.local/bin. Please ensure this directory is on your PATH environment variable and try again. If that doesn't work, you can confirm where west was installed by running "pip3 show -f west"; check both the Location: value and the [...]/bin/west relative path in the Files: list that follows. Marti On Thu, Mar 28, 2019, 10:22 PM M Rizwan Ghori <rizwanghori@...> wrote:
|
|
Re: [Zephyr Main] WEST File Initialization Problem
M Rizwan Ghori <rizwanghori@...>
Dear,
Thank you for your reply. I have run the command for hello world example advised by you.
Now i am getting the error as follows while executing the command.
mrg@mrg-Lenovo-ideapad-110-15ISK:~/zephyrproject/zephyr/samples/hello_world/build$ cmake -GNinja -DBOARD=qemu_x86 ..
Zephyr version: 1.14.0
-- Selected BOARD qemu_x86
-- Found west: /home/mrg/.local/bin/west (found suitable version "0.5.7", minimum required is "0.5.6")
CMake Error at /home/mrg/zephyrproject/zephyr/cmake/extensions.cmake:1104 (message):
Assertion failed: The detected dtc version is unsupported.
The version was found to be 1.4.5
But the minimum supported version is 1.4.6
See https://docs.zephyrproject.org/latest/getting_started/
for how to use the SDK's dtc alongside a custom toolchain.
Call Stack (most recent call first):
/home/mrg/zephyrproject/zephyr/cmake/host-tools.cmake:67 (assert)
/home/mrg/zephyrproject/zephyr/cmake/app/boilerplate.cmake:379 (include)
CMakeLists.txt:3 (include)
-- Configuring incomplete, errors occurred!
After this Error i tried to update the device tree compiler (dtc) and i am getting these errors after trying dtc x64 and i386 .
mrg@mrg-Lenovo-ideapad-110-15ISK:~/zephyrproject/zephyr/samples/hello_world/build$ sudo apt install ./device-tree-compiler_1.4.7-1_i386.deb
Reading package lists... Done
E: Unsupported file ./device-tree-compiler_1.4.7-1_i386.deb given on commandline
KIndly advise.
Best Regards
RIzwan
Best Regards
Muhammad Rizwan Ghori
USM Fellow,
School of Computer Sciences,
Universiti Sains Malaysia (USM),
HP: +60-189147161 USM Email: mrizwanghori@...
Private Email: rizwanghori@...
From: Cufi, Carles <Carles.Cufi@...>
Sent: Monday, April 1, 2019 3:37 PM To: M Rizwan Ghori; VanCutsem, Geoffroy; Marti Bolivar Cc: devel@... Subject: RE: [Zephyr-devel] [Zephyr Main] WEST File Initialization Problem Hi there,
This looks like there might be stale build files somewhere in your tree. Can you clean the tree and try again? You can use the following command, but please be careful since it will remove all files that are not tracked by Git:
$ cd $ZEPHYR_BASE $ git clean -fdx
Carles
From: M Rizwan Ghori <rizwanghori@...>
Dear All,
Thank you very much for your response. That problem is resolved by following your advised step. Moreover, now i was moving towards the HelloWorld example i received the following error.
mrg@mrg-Lenovo-ideapad-110-15ISK:~/zephyrproject/zephyr/samples/hello_world/build$ cmake -GNinja -DBOARD=qemu_x86 ..
Zephyr version: 1.14.0 CMake Error at /home/mrg/zephyrproject/zephyr/cmake/app/boilerplate.cmake:104 (message): Source directory equals build directory. In-source builds are not supported. Please specify a build directory, e.g. cmake -Bbuild -H. Call Stack (most recent call first): CMakeLists.txt:3 (include)
Kindly advise.....
Best Regards Muhammad Rizwan Ghori USM Fellow, Universiti Sains Malaysia (USM),
From: Cufi, Carles <Carles.Cufi@...>
Hi there,
This has been a bug that has popped up several times in the past with Ubuntu: https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1588562
As mentioned by others, please add the following line you your ~/.bashrc:
export PATH=$PATH:~/.local/bin
Regards,
Carles
From:
devel@... <devel@...>
On Behalf Of via Lists.Zephyrproject.Org
Dear,
Thank you all for the quick response. Here is the copy paste code.
runs fine, after this i have run the following command and it echos the error shown below.
Command 'west' not found, did you mean:
command 'test' from deb coreutils
Try: sudo apt install <deb name>
Name: west Version: 0.5.7 Summary: Zephyr RTOS Project meta-tool (wrapper and bootstrap) Home-page: https://github.com/zephyrproject-rtos/west Author: Zephyr Project Author-email: devel@... License: UNKNOWN Location: /home/mrg/.local/lib/python3.6/site-packages Requires: configobj, PyYAML, colorama, pykwalify Files: ../../../bin/west west-0.5.7.dist-info/DESCRIPTION.rst west-0.5.7.dist-info/INSTALLER west-0.5.7.dist-info/METADATA west-0.5.7.dist-info/RECORD west-0.5.7.dist-info/WHEEL west-0.5.7.dist-info/entry_points.txt west-0.5.7.dist-info/metadata.json west-0.5.7.dist-info/top_level.txt west/_bootstrap/__init__.py west/_bootstrap/__pycache__/__init__.cpython-36.pyc west/_bootstrap/__pycache__/main.cpython-36.pyc west/_bootstrap/__pycache__/version.cpython-36.pyc west/_bootstrap/main.py west/_bootstrap/version.py west/_bootstrap/west-schema.yml
Kindly advise
Best Regards Muhammad Rizwan Ghori USM Fellow, School of Computer Sciences, Universiti Sains Malaysia (USM),
From: VanCutsem, Geoffroy <geoffroy.vancutsem@...>
Can you paste on this thread what the output of “pip3 show –f west” and “echo $PATH” return?
From:
devel@... [mailto:devel@...]
On Behalf Of M Rizwan Ghori
Dear, I am using Ubuntu 18.04. Moreover, the path of West file is after running the command "pip3 show -f west" is home/rizwan/.local/python 3.6/packages Subsequently, i have installed all the stuff related to Zephyr including Cmake and Zephyr sdk in a path /home/rizwan/zaphyr Kindly advise.
Rizwan
From: Marti Bolivar Sent: Friday, 29 March, 12:43 pm Subject: Re: [Zephyr-devel] [Zephyr Main] WEST File Initialization Problem To: M Rizwan Ghori Cc: Brett Preston, devel@... What version of Ubuntu are you using? If you ran "pip3 install --user west" and west cannot be run afterwards, it sounds like the directory that the west binary was installed into is not on your $PATH. Older versions of Ubuntu sometimes have this issue; I forget which ones. Usually this directory is ~/.local/bin. Please ensure this directory is on your PATH environment variable and try again. If that doesn't work, you can confirm where west was installed by running "pip3 show -f west"; check both the Location: value and the [...]/bin/west relative path in the Files: list that follows. Marti On Thu, Mar 28, 2019, 10:22 PM M Rizwan Ghori <rizwanghori@...> wrote:
|
|
Re: [Zephyr Main] WEST File Initialization Problem
Did you set up a toolchain as per https://docs.zephyrproject.org/latest/getting_started/index.html#set-up-a-toolchain?
If so, make sure you source zephyr-env.sh before attempting to build any sample code.
Note: you can also use west directly to build the sample code (since you invested some time to set it up correctly) – short version: $ source ./zephyr-env.sh $ west build –b qemu_x86 samples/hello_world And that’s it.
Geoffroy
From: M Rizwan Ghori [mailto:rizwanghori@...]
Sent: Monday, April 1, 2019 1:14 PM To: Cufi, Carles <Carles.Cufi@...>; VanCutsem, Geoffroy <geoffroy.vancutsem@...>; Marti Bolivar <marti@...> Cc: devel@... Subject: Re: [Zephyr-devel] [Zephyr Main] WEST File Initialization Problem
Dear,
I am able to install the latest DTC version. Now i am stuck up with the following error while doing the HelloWorld.
mrg@mrg-Lenovo-ideapad-110-15ISK:~/zephyrproject/zephyr/samples/hello_world/build$ cmake -GNinja -DBOARD=qemu_x86 .. Zephyr version: 1.14.0 -- Selected BOARD qemu_x86 -- Found west: /home/mrg/.local/bin/west (found suitable version "0.5.7", minimum required is "0.5.6") CMake Error at /home/mrg/zephyrproject/zephyr/cmake/extensions.cmake:1104 (message): Assertion failed: Zephyr toolchain variant invalid: please set the ZEPHYR_TOOLCHAIN_VARIANT-variable Call Stack (most recent call first): /home/mrg/zephyrproject/zephyr/cmake/generic_toolchain.cmake:47 (assert) /home/mrg/zephyrproject/zephyr/cmake/app/boilerplate.cmake:395 (include) CMakeLists.txt:3 (include)
-- Configuring incomplete, errors occurred!
Best Regards
From: M Rizwan Ghori
Dear,
Thank you for your reply. I have run the command for hello world example advised by you. Now i am getting the error as follows while executing the command.
mrg@mrg-Lenovo-ideapad-110-15ISK:~/zephyrproject/zephyr/samples/hello_world/build$ cmake -GNinja -DBOARD=qemu_x86 .. Zephyr version: 1.14.0 -- Selected BOARD qemu_x86 -- Found west: /home/mrg/.local/bin/west (found suitable version "0.5.7", minimum required is "0.5.6") CMake Error at /home/mrg/zephyrproject/zephyr/cmake/extensions.cmake:1104 (message): Assertion failed: The detected dtc version is unsupported.
The version was found to be 1.4.5 But the minimum supported version is 1.4.6 for how to use the SDK's dtc alongside a custom toolchain. Call Stack (most recent call first): /home/mrg/zephyrproject/zephyr/cmake/host-tools.cmake:67 (assert) /home/mrg/zephyrproject/zephyr/cmake/app/boilerplate.cmake:379 (include) CMakeLists.txt:3 (include)
-- Configuring incomplete, errors occurred!
After this Error i tried to update the device tree compiler (dtc) and i am getting these errors after trying dtc x64 and i386 .
mrg@mrg-Lenovo-ideapad-110-15ISK:~/zephyrproject/zephyr/samples/hello_world/build$ sudo apt install ./device-tree-compiler_1.4.7-1_i386.deb Reading package lists... Done E: Unsupported file ./device-tree-compiler_1.4.7-1_i386.deb given on commandline
KIndly advise. Best Regards RIzwan
Best Regards Muhammad Rizwan Ghori USM Fellow, School of Computer Sciences, Universiti Sains Malaysia (USM), Private Email: rizwanghori@...
From: Cufi, Carles <Carles.Cufi@...>
Hi there,
This looks like there might be stale build files somewhere in your tree. Can you clean the tree and try again? You can use the following command, but please be careful since it will remove all files that are not tracked by Git:
$ cd $ZEPHYR_BASE $ git clean -fdx
Carles
From: M Rizwan Ghori <rizwanghori@...>
Dear All,
Thank you very much for your response. That problem is resolved by following your advised step. Moreover, now i was moving towards the HelloWorld example i received the following error.
mrg@mrg-Lenovo-ideapad-110-15ISK:~/zephyrproject/zephyr/samples/hello_world/build$ cmake -GNinja -DBOARD=qemu_x86 ..
Zephyr version: 1.14.0 CMake Error at /home/mrg/zephyrproject/zephyr/cmake/app/boilerplate.cmake:104 (message): Source directory equals build directory. In-source builds are not supported. Please specify a build directory, e.g. cmake -Bbuild -H. Call Stack (most recent call first): CMakeLists.txt:3 (include)
Kindly advise.....
Best Regards Muhammad Rizwan Ghori USM Fellow, Universiti Sains Malaysia (USM),
From: Cufi, Carles <Carles.Cufi@...>
Hi there,
This has been a bug that has popped up several times in the past with Ubuntu: https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1588562
As mentioned by others, please add the following line you your ~/.bashrc:
export PATH=$PATH:~/.local/bin
Regards,
Carles
From:
devel@... <devel@...>
On Behalf Of via Lists.Zephyrproject.Org
Dear,
Thank you all for the quick response. Here is the copy paste code.
runs fine, after this i have run the following command and it echos the error shown below.
Command 'west' not found, did you mean:
command 'test' from deb coreutils
Try: sudo apt install <deb name>
Name: west Version: 0.5.7 Summary: Zephyr RTOS Project meta-tool (wrapper and bootstrap) Home-page: https://github.com/zephyrproject-rtos/west Author: Zephyr Project Author-email: devel@... License: UNKNOWN Location: /home/mrg/.local/lib/python3.6/site-packages Requires: configobj, PyYAML, colorama, pykwalify Files: ../../../bin/west west-0.5.7.dist-info/DESCRIPTION.rst west-0.5.7.dist-info/INSTALLER west-0.5.7.dist-info/METADATA west-0.5.7.dist-info/RECORD west-0.5.7.dist-info/WHEEL west-0.5.7.dist-info/entry_points.txt west-0.5.7.dist-info/metadata.json west-0.5.7.dist-info/top_level.txt west/_bootstrap/__init__.py west/_bootstrap/__pycache__/__init__.cpython-36.pyc west/_bootstrap/__pycache__/main.cpython-36.pyc west/_bootstrap/__pycache__/version.cpython-36.pyc west/_bootstrap/main.py west/_bootstrap/version.py west/_bootstrap/west-schema.yml
Kindly advise
Best Regards Muhammad Rizwan Ghori USM Fellow, School of Computer Sciences, Universiti Sains Malaysia (USM),
From: VanCutsem, Geoffroy <geoffroy.vancutsem@...>
Can you paste on this thread what the output of “pip3 show –f west” and “echo $PATH” return?
From: devel@... [mailto:devel@...]
On Behalf Of M Rizwan Ghori
Dear, I am using Ubuntu 18.04. Moreover, the path of West file is after running the command "pip3 show -f west" is home/rizwan/.local/python 3.6/packages Subsequently, i have installed all the stuff related to Zephyr including Cmake and Zephyr sdk in a path /home/rizwan/zaphyr Kindly advise.
Rizwan
From: Marti Bolivar Sent: Friday, 29 March, 12:43 pm Subject: Re: [Zephyr-devel] [Zephyr Main] WEST File Initialization Problem To: M Rizwan Ghori Cc: Brett Preston, devel@... What version of Ubuntu are you using? If you ran "pip3 install --user west" and west cannot be run afterwards, it sounds like the directory that the west binary was installed into is not on your $PATH. Older versions of Ubuntu sometimes have this issue; I forget which ones. Usually this directory is ~/.local/bin. Please ensure this directory is on your PATH environment variable and try again. If that doesn't work, you can confirm where west was installed by running "pip3 show -f west"; check both the Location: value and the [...]/bin/west relative path in the Files: list that follows. Marti On Thu, Mar 28, 2019, 10:22 PM M Rizwan Ghori <rizwanghori@...> wrote:
|
|
Re: [Zephyr Main] WEST File Initialization Problem
Carles Cufi
Hi there,
This looks like there might be stale build files somewhere in your tree. Can you clean the tree and try again? You can use the following command, but please be careful since it will remove all files that are not tracked by Git:
$ cd $ZEPHYR_BASE $ git clean -fdx
Carles
From: M Rizwan Ghori <rizwanghori@...>
Sent: 31 March 2019 19:58 To: Cufi, Carles <Carles.Cufi@...>; VanCutsem, Geoffroy <geoffroy.vancutsem@...>; Marti Bolivar <marti@...> Cc: devel@... Subject: Re: [Zephyr-devel] [Zephyr Main] WEST File Initialization Problem
Dear All,
Thank you very much for your response. That problem is resolved by following your advised step. Moreover, now i was moving towards the HelloWorld example i received the following error.
mrg@mrg-Lenovo-ideapad-110-15ISK:~/zephyrproject/zephyr/samples/hello_world/build$ cmake -GNinja -DBOARD=qemu_x86 ..
Zephyr version: 1.14.0 CMake Error at /home/mrg/zephyrproject/zephyr/cmake/app/boilerplate.cmake:104 (message): Source directory equals build directory. In-source builds are not supported. Please specify a build directory, e.g. cmake -Bbuild -H. Call Stack (most recent call first): CMakeLists.txt:3 (include)
Kindly advise.....
Best Regards Muhammad Rizwan Ghori USM Fellow, Universiti Sains Malaysia (USM),
From: Cufi, Carles <Carles.Cufi@...>
Hi there,
This has been a bug that has popped up several times in the past with Ubuntu: https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1588562
As mentioned by others, please add the following line you your ~/.bashrc:
export PATH=$PATH:~/.local/bin
Regards,
Carles
From:
devel@... <devel@...>
On Behalf Of via Lists.Zephyrproject.Org
Dear,
Thank you all for the quick response. Here is the copy paste code.
runs fine, after this i have run the following command and it echos the error shown below.
Command 'west' not found, did you mean:
command 'test' from deb coreutils
Try: sudo apt install <deb name>
Name: west Version: 0.5.7 Summary: Zephyr RTOS Project meta-tool (wrapper and bootstrap) Home-page: https://github.com/zephyrproject-rtos/west Author: Zephyr Project Author-email: devel@... License: UNKNOWN Location: /home/mrg/.local/lib/python3.6/site-packages Requires: configobj, PyYAML, colorama, pykwalify Files: ../../../bin/west west-0.5.7.dist-info/DESCRIPTION.rst west-0.5.7.dist-info/INSTALLER west-0.5.7.dist-info/METADATA west-0.5.7.dist-info/RECORD west-0.5.7.dist-info/WHEEL west-0.5.7.dist-info/entry_points.txt west-0.5.7.dist-info/metadata.json west-0.5.7.dist-info/top_level.txt west/_bootstrap/__init__.py west/_bootstrap/__pycache__/__init__.cpython-36.pyc west/_bootstrap/__pycache__/main.cpython-36.pyc west/_bootstrap/__pycache__/version.cpython-36.pyc west/_bootstrap/main.py west/_bootstrap/version.py west/_bootstrap/west-schema.yml
Kindly advise
Best Regards Muhammad Rizwan Ghori USM Fellow, School of Computer Sciences, Universiti Sains Malaysia (USM),
From: VanCutsem, Geoffroy <geoffroy.vancutsem@...>
Can you paste on this thread what the output of “pip3 show –f west” and “echo $PATH” return?
From:
devel@... [mailto:devel@...]
On Behalf Of M Rizwan Ghori
Dear, I am using Ubuntu 18.04. Moreover, the path of West file is after running the command "pip3 show -f west" is home/rizwan/.local/python 3.6/packages Subsequently, i have installed all the stuff related to Zephyr including Cmake and Zephyr sdk in a path /home/rizwan/zaphyr Kindly advise.
Rizwan
From: Marti Bolivar Sent: Friday, 29 March, 12:43 pm Subject: Re: [Zephyr-devel] [Zephyr Main] WEST File Initialization Problem To: M Rizwan Ghori Cc: Brett Preston, devel@... What version of Ubuntu are you using? If you ran "pip3 install --user west" and west cannot be run afterwards, it sounds like the directory that the west binary was installed into is not on your $PATH. Older versions of Ubuntu sometimes have this issue; I forget which ones. Usually this directory is ~/.local/bin. Please ensure this directory is on your PATH environment variable and try again. If that doesn't work, you can confirm where west was installed by running "pip3 show -f west"; check both the Location: value and the [...]/bin/west relative path in the Files: list that follows. Marti On Thu, Mar 28, 2019, 10:22 PM M Rizwan Ghori <rizwanghori@...> wrote:
|
|
Re: MCUMGR SMP implementations
Carles Cufi
Hi Rodrigo,
Assuming Board B is running Zephyr and not Linux, you can actually use LWM2M to update the firmware on Board B without having to write any additional code. The foundries.io folks use this model to update internet-connected boards. When it comes to SMP over IP, AFAIR it is actually supported on the open source project (mcumgr) but not in Zephyr. That said LWM2M is probably a better fit, since SMP uses a “push” model and you probably want a “pull” one for Board B, which will typically periodically poll the server for a firmware update.
You are right that there is no client available for SMP today written in C (that I know of). There’s only a desktop one written in Go (mcumgr) and iOS/Android libraries.
Carles
From: devel@... <devel@...>
On Behalf Of Rodrigo Peixoto via Lists.Zephyrproject.Org
Sent: 31 March 2019 00:02 To: devel@... Cc: devel@... Subject: [Zephyr-devel] MCUMGR SMP implementations
Hi all.
My company is developing two boards let's call them Board A and Board B for illustrating purpose. Board A is simple it has some sensors and it has a shell interface for communicating with the other one. Board B is the "gateway" and has Internet connectivity through the Cellular network. They had to be created separately.
We need to upgrade the firmware of both boards in the field. For now, Zephyr only supports FOTA over Bluetooth and Shell/UART, right? So I guess we'll need: 1 - to create a Shell SMP Client at Board B that will be able to upgrade the firmware of Board A using a version of the firmware received by the internet; 2 - to implement a different SMP Server at Board B to receive its own firmware by the Internet as well.
Do you have any start point, tips, something that could help here?
The future plan, after I made customs SMP Client and Server, is creating an SMP Server over Bluetooth Mesh. In another project, we will need that. Is anybody working with it already?
Thank you. Best regards, Rodrigo Peixoto Co-founder and Technical advisor
+55 (82) 98144-8585 http://ayna.tech | Skype: rodrigopex
|
|
Re: [Zephyr Main] WEST File Initialization Problem
M Rizwan Ghori <rizwanghori@...>
Dear All,
Thank you very much for your response. That problem is resolved by following your advised step. Moreover, now i was moving towards the HelloWorld example i received the following error.
mrg@mrg-Lenovo-ideapad-110-15ISK:~/zephyrproject/zephyr/samples/hello_world/build$ cmake -GNinja -DBOARD=qemu_x86 ..
Zephyr version: 1.14.0
CMake Error at /home/mrg/zephyrproject/zephyr/cmake/app/boilerplate.cmake:104 (message):
Source directory equals build directory. In-source builds are not
supported. Please specify a build directory, e.g. cmake -Bbuild -H.
Call Stack (most recent call first):
CMakeLists.txt:3 (include)
Kindly advise.....
Best Regards
Muhammad Rizwan Ghori
USM Fellow,
Universiti Sains Malaysia (USM),
From: Cufi, Carles <Carles.Cufi@...>
Sent: Sunday, March 31, 2019 6:07 PM To: rizwanghori@...; VanCutsem, Geoffroy; Marti Bolivar Cc: devel@... Subject: RE: [Zephyr-devel] [Zephyr Main] WEST File Initialization Problem Hi there,
This has been a bug that has popped up several times in the past with Ubuntu: https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1588562
As mentioned by others, please add the following line you your ~/.bashrc:
export PATH=$PATH:~/.local/bin
Regards,
Carles
From: devel@... <devel@...>
On Behalf Of via Lists.Zephyrproject.Org
Dear,
Thank you all for the quick response. Here is the copy paste code.
runs fine, after this i have run the following command and it echos the error shown below.
Command 'west' not found, did you mean:
command 'test' from deb coreutils
Try: sudo apt install <deb name>
Name: west Version: 0.5.7 Summary: Zephyr RTOS Project meta-tool (wrapper and bootstrap) Home-page: https://github.com/zephyrproject-rtos/west Author: Zephyr Project Author-email: devel@... License: UNKNOWN Location: /home/mrg/.local/lib/python3.6/site-packages Requires: configobj, PyYAML, colorama, pykwalify Files: ../../../bin/west west-0.5.7.dist-info/DESCRIPTION.rst west-0.5.7.dist-info/INSTALLER west-0.5.7.dist-info/METADATA west-0.5.7.dist-info/RECORD west-0.5.7.dist-info/WHEEL west-0.5.7.dist-info/entry_points.txt west-0.5.7.dist-info/metadata.json west-0.5.7.dist-info/top_level.txt west/_bootstrap/__init__.py west/_bootstrap/__pycache__/__init__.cpython-36.pyc west/_bootstrap/__pycache__/main.cpython-36.pyc west/_bootstrap/__pycache__/version.cpython-36.pyc west/_bootstrap/main.py west/_bootstrap/version.py west/_bootstrap/west-schema.yml
Kindly advise
Best Regards Muhammad Rizwan Ghori USM Fellow, School of Computer Sciences,
Universiti Sains Malaysia (USM),
From: VanCutsem, Geoffroy <geoffroy.vancutsem@...>
Can you paste on this thread what the output of “pip3 show –f west” and “echo $PATH” return?
From: devel@... [mailto:devel@...]
On Behalf Of M Rizwan Ghori
Dear, I am using Ubuntu 18.04. Moreover, the path of West file is after running the command "pip3 show -f west" is home/rizwan/.local/python 3.6/packages Subsequently, i have installed all the stuff related to Zephyr including Cmake and Zephyr sdk in a path /home/rizwan/zaphyr Kindly advise.
Rizwan
From: Marti Bolivar Sent: Friday, 29 March, 12:43 pm Subject: Re: [Zephyr-devel] [Zephyr Main] WEST File Initialization Problem To: M Rizwan Ghori Cc: Brett Preston, devel@... What version of Ubuntu are you using? If you ran "pip3 install --user west" and west cannot be run afterwards, it sounds like the directory that the west binary was installed into is not on your $PATH. Older versions of Ubuntu sometimes have this issue; I forget which ones. Usually this directory is ~/.local/bin. Please ensure this directory is on your PATH environment variable and try again. If that doesn't work, you can confirm where west was installed by running "pip3 show -f west"; check both the Location: value and the [...]/bin/west relative path in the Files: list that follows. Marti On Thu, Mar 28, 2019, 10:22 PM M Rizwan Ghori <rizwanghori@...> wrote:
|
|