[riot-devel] Host Name
Janna_OM at hotmail.com
Fri Apr 20 12:02:26 CEST 2018
thank You very much for the answers.
I'm implementing network coding, and need IDs with low memory consumption to distinguish the nodes of the network.
Unfortunately CPU Ids of the sensor nodes aren’t unique and need space.
I will try to adopt freertos UIDs for these needs.
Thank You very much again for the information.
From: devel <devel-bounces at riot-os.org> on behalf of Gaëtan Harter <gaetan.harter at fu-berlin.de>
Sent: Friday, April 20, 2018 11:29 AM
To: devel at riot-os.org
Subject: Re: [riot-devel] Host Name
in the IoT-LAB freertos port there is a dictionary for node short-id -> node name: https://github.com/iot-lab/openlab/blob/master/appli/iotlab/lib/iotlab_uid_num_hashtable.c
openlab - OpenLab, a FreeRTOS dev env - by HiKoB
There is also the script to update it in case nodes have been changed. You could adapt it in RIOT.
The short-id used is this one: https://github.com/iot-lab/iot-lab/wiki/Lib-iotlab_uid.
If you are only interested in having your current node information, and not resolve other nodes, you can also get this information from the control node i2c link.
It is not really advertised but the code is available here:
As I wrote it back then, I could do the port for RIOT if you are interested.
On 20.04.2018 03:58, Ludwig Knüpfer wrote:
If you're looking for a way to distinguish nodes based on their hardware, this might be what you want:
Am 19. April 2018 21:18:30 MESZ schrieb Janna Om <Janna_OM at hotmail.com><mailto:Janna_OM at hotmail.com>:
Is it possible with RIOT OS to get access to the host name?
I'm working with iot-lab m3 nodes and trying to get their ids or host names.
I'm trying to make the node m3-id running my application to be aware that its hostname is m3-id or that its ID = id.
Is there any possibility to achieve this goal.
Thank You in advance!
devel mailing list
devel at riot-os.org<mailto:devel at riot-os.org>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the devel