Bug #376
MAC Address issue with trace_oml2
| Status: | Closed | Start date: | 01/09/2010 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | 20/10/2010 | |
| Assignee: | Jolyon White | % Done: | 100% |
|
| Category: | trace | |||
| Target version: | 2.4.0 | Estimated time: | 0.00 hour |
Description
Zainab needs to use "trace_oml2" for her experiments.
In the current binary on the current baseline, the src and dst MAC addresses are not strings but integers.
From the node (node30 with current baseline):
root@node30:~# trace_oml2 --version # OML Client V2.3.9 Copyright (c)2007-2009, NICTA # OML Protocol V1 Missing interface root@node30:~#
The application is run with the following command line:
env -i OML_SERVER=tcp:norbit.npc.nicta.com.au:3003 OML_EXP_ID=testing_slice-2010-09-01t14.24.36+10.00 OML_NAME=Observers OML_CONFIG=/tmp/testing_slice-2010-09-01t14.24.36+10.00-test_app_trace_oml2.xml /usr/bin/trace_oml2 -i int:ath0 -r
The content of the XML config file is:
<omlc id='Observers' exp_id='testing_slice-2010-09-01t14.24.36+10.00'><collect url='tcp:norbit.npc.nicta.com.au:3003'><mp name='radiotap' samples='1'/></collect></omlc>
The resulting database is attached, and a quick query for a few lines with src & dst MAC returns:
[thierry@norbit ~]$ sqlite3 /tmp/testing_slice-2010-09-01t14.24.36+10.00.sq3 SQLite version 3.6.22 Enter ".help" for instructions Enter SQL statements terminated with a ";" sqlite> .schema CREATE TABLE _experiment_metadata (key TEXT PRIMARY KEY, value TEXT); CREATE TABLE _senders (name TEXT PRIMARY KEY, id INTEGER UNIQUE); CREATE TABLE trace_oml2_radiotap (oml_sender_id INTEGER, oml_seq INTEGER, oml_ts_client REAL, oml_ts_server REAL, tsft INTEGER, rate INTEGER, freq INTEGER, sig_strength_dBm INTEGER, noise_strength_dBm INTEGER, sig_strength INTEGER, noise_strength INTEGER, attenuation INTEGER, attenuation_dB INTEGER, power INTEGER, antenna INTEGER, sourceMAC INTEGER, dstMAC INTEGER); sqlite> select sourceMAC,dstMAC,sig_strength_dBm from trace_oml2_radiotap limit 5; 155107896|155107890|-94 155107896|155107890|-96 155107896|155107890|-96 155107896|155107890|-96 155107896|155107890|-94 sqlite>
History
Updated by Jolyon White over 1 year ago
- Due date set to 20/10/2010
- Status changed from New to Assigned
- Assignee set to Jolyon White
- Priority changed from Urgent to Normal
- Target version set to 2.4.0
- % Done changed from 0 to 100
- Estimated time set to 0.00
The current release of the packages (v2.4.0) has already been changed to represent MAC addresses as strings. This doesn't seem urgent anymore.
Updated by Jolyon White over 1 year ago
- Status changed from Assigned to Closed