Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenVisualizer implementation of OpenBenchmark API v0.0.1 #14

Open
wants to merge 108 commits into
base: develop
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
108 commits
Select commit Hold shift + click to select a range
ea72078
OV-7. Add the new component and separate logging handlers and formatters
malishav Sep 28, 2018
005ee5f
OV-7. Log network events as part of moteState class.
malishav Oct 1, 2018
7048e16
OV-7. When converting ASN object to string, handle None case.
malishav Oct 2, 2018
6154c22
OV-7. Add a method to return cell type to typeCellType class.
malishav Oct 2, 2018
388fec0
OV-7. Implement StateTable as an abstract class to facilitate logging.
malishav Oct 2, 2018
ed241b7
OV-7. Log additional metrics.
malishav Oct 2, 2018
82557ec
OV-7. Add hostname to the serial port name of a opentestbed mote.
malishav Oct 6, 2018
f30ae75
OV-7. Log mote_info object encompassing EUI-64 and serial port name.
malishav Oct 6, 2018
581275a
OV-7. REL-1.2.2 OpenTestbed API implementation and generic MQTT broke…
malishav Feb 6, 2019
7610d6a
OV-7. Add separate component to implement OpenBenchmark APIs.
malishav Feb 6, 2019
4c884e2
OV-7. Add openBenchmarkAgent to setup.py and remove trailing whitespa…
malishav Feb 6, 2019
e9b36af
OV-7. Implement interface of openBenchmarkAgent with the rest of open…
malishav Feb 6, 2019
e74b2b0
OV-7. startBenchmark handling.
malishav Feb 11, 2019
702460d
OV-7. More robust MQTT handling.
malishav Feb 12, 2019
2b7baf6
OV-7. Add MQTT command handling.
malishav Feb 12, 2019
a7d9542
OV-7. Update command handler API and add mockup handlers.
malishav Feb 12, 2019
c3b2c07
OV-7. Add hooks between openBenchmarkAgent and OpenVisualizer.
malishav Feb 13, 2019
4cce259
OV-7. Hot fixes for simulation and local execution.
malishav Feb 13, 2019
b01ca76
OV-7. Improve the logging of connection handling.
malishav Feb 13, 2019
3e71920
OV-7. Implement sendPacket command in moteConnector.
malishav Feb 13, 2019
e88674b
OV-7. Expect exactly 16 bytes for sendPacket command payload.
malishav Feb 21, 2019
dda90b1
OV-7. Human-friendly var names for command handling.
malishav Feb 28, 2019
4e58ed7
OV-7. Expect formatted byte string as a param for sendPacket.
malishav Feb 28, 2019
f30f0d7
OV-7. Format sendPacket payload in openBenchmarkAgent.
malishav Feb 28, 2019
b73a721
OV-7. Add virtual CoAP server listening on DAG root's IPV6.
malishav Mar 1, 2019
b1bf7eb
OV-7. Handle sendPacket on behalf of the DAG root.
malishav Mar 3, 2019
e4fce80
OV-7. Implement handlers for openbenchmark serial status dumps.
malishav Mar 8, 2019
462638e
OV-19. Add virtual CoAP server files.
malishav Mar 8, 2019
7b5db33
OV-19. Make coap server a stand-alone component. Adapt JRC and OpenBe…
malishav Mar 8, 2019
d0795f5
OV-7. Remove remnant calls to networkEventLogger.
malishav Mar 18, 2019
46881af
OV-7. Add a special parser for benchmarking-related events.
malishav Mar 19, 2019
b73679a
OV-7. Remove remnant status handlers and parsers.
malishav Mar 19, 2019
4b1fae9
OV-7. Have OpenBenchmarkAgent subscribe to performanceData events.
malishav Mar 19, 2019
2f39fbf
OV-7. Remove remnants in web_files.
malishav Mar 19, 2019
b552cdf
OV-7. Rename class.
malishav Mar 19, 2019
423f094
OV-7. Expect full EUI-64 when parsing benchmark serial frames.
malishav Mar 19, 2019
d8d9ed5
OV-7. Implement PerformanceEvent class to handle events from firmware.
malishav Mar 19, 2019
d010142
OV-7. Align event IDs with firmware.
malishav Mar 19, 2019
b78287d
OV-7. Rename event handler to remove ambiguity with updates.
malishav Mar 19, 2019
835a4b0
OV-7. Add performance event poller that will poll for periodic measur…
malishav Mar 19, 2019
7ecfd0d
OV-7. Parse source address and convert it to string immediately.
malishav Mar 20, 2019
a6f0898
OV-7. In case idmanager state is not available, return empty list.
malishav Mar 20, 2019
8577326
OV-7. Return None if duty cycle measurement is not available in mote …
malishav Mar 20, 2019
af8c133
OV-7. Redo duty cycle measurement signal handler in moteState.
malishav Mar 20, 2019
461ad7e
OV-7. Pass mqttClient to Performance Update Poller constructor.
malishav Mar 20, 2019
a827aa3
OV-7. Publish periodic measurement on MQTT once they are available.
malishav Mar 20, 2019
39af9e3
OV-7. Instantiate PerformanceEventPoller within PerformanceEvent class.
malishav Mar 20, 2019
da62856
OV-7. Make event publishing a method of PerformanceEvent.
malishav Mar 20, 2019
359193c
OV-7. Parametrize hop limit sent by coap server within the OV.
malishav Mar 20, 2019
7e58814
OV-7. packetToken as the last thing in the app payload.
malishav Mar 20, 2019
c3a4743
OV-7. Get the packetSent timestamp for dag root sending packets.
malishav Mar 20, 2019
a8c1a06
OV-7. Small tuning on resource instantiation.
malishav Mar 20, 2019
d09414b
OV-7. Adapt coap resource handler to accept metadata.
malishav Mar 20, 2019
e2d54df
OV-7. Adapt the JRC resource handler to accept metadata.
malishav Mar 20, 2019
eff34a9
OV-7. Add forgoten call to add_outstanding_packet.
malishav Mar 20, 2019
bf81fae
OV-20. ParserData now passes the timestamp to upper layers.
malishav Mar 20, 2019
c4d6781
OV-20. Process timestamp in coap server and pass it as metadata to th…
malishav Mar 20, 2019
efd7af6
OV-20. Adapt openLbr and eventBusMonitor to accept the packet timestamp.
malishav Mar 20, 2019
8615be3
OV-7. Bug fix in exception handling.
malishav Mar 20, 2019
18b897b
OV-7. Remove unuseful debugs.
malishav Mar 20, 2019
5bd135f
OV-7. Add demo scenario as a choice to --benchmark argument.
malishav Mar 23, 2019
c63c9ed
OV-7. Fix operator misuse.
malishav Mar 23, 2019
d56a357
OV-7. Add debug in MQTT on_message handler to facilitate debugging.
malishav Mar 23, 2019
769bb9b
OV-7. Threading lock may not need to be cleared after a timeout.
malishav Mar 23, 2019
4bd00b2
OV-7. Return success when success it is.
malishav Mar 23, 2019
d8e864f
OV-7. Additional debug info.
malishav Mar 23, 2019
90195da
OV-7. Add a debug in close method and use exception logging.
malishav Mar 24, 2019
9061995
OV-7. Fix CoAP resource registration.
malishav Mar 24, 2019
073042b
OV-7. Allow for upper case in command topic names.
malishav Mar 24, 2019
216e2ca
OV-7. Syntax fix in configure transmit power handler.
malishav Mar 24, 2019
c5fdef7
OV-7. Fix wrong util module reference when converting EUI64.
malishav Mar 24, 2019
5004e86
OV-7. Record the portname of each node and use it to send commands.
malishav Mar 24, 2019
abecf80
OV-7. Command signal is the command string, not list.
malishav Mar 24, 2019
b9162b0
OV-7. Fix remnant return var.
malishav Mar 24, 2019
177cd6e
OV-7. Pass string to hex2buf converter, not unicode.
malishav Mar 24, 2019
0e51006
OV-7. Get dag root and network prefix address from the event bus.
malishav Mar 24, 2019
20fa8dc
OV-7. Fixes in triggerSendPacket().
malishav Mar 24, 2019
025c408
OV-7. Remove remnant debug throwing an exception.
malishav Mar 24, 2019
d3b5b56
OV-7. Add a debug when sending POST requests.
malishav Mar 24, 2019
b0600c3
OV-7. Fix syntax in CoAP URI.
malishav Mar 24, 2019
8a4efa8
OV-7. Remove remnant log.
malishav Mar 24, 2019
0a6366d
OV-7. Invoke CoAP client in an ephemeral thread.
malishav Mar 25, 2019
7e84893
OV-7. Add debugs in CoAP packet handling.
malishav Mar 25, 2019
335adde
OV-7. Send ASN as int, not string.
malishav Mar 28, 2019
627d4ba
OV-7. Add a script to test sendPacket command handling.
malishav Mar 30, 2019
b2d96d1
OV-19. Refactoring of the coapServer and adapting it to the coap lib.
malishav Mar 30, 2019
d32b5d6
OV-7. Bug fixes.
malishav Mar 30, 2019
3275684
OV-7. Default params and random token for generateSendPacket.py
malishav Mar 30, 2019
2beee79
OV-7. Generate responses as needed and events for ACK packets.
malishav Mar 31, 2019
e852ed0
OV-7. Fix a bug in timestamp generation in ParserData.
malishav Mar 31, 2019
ade329c
OV-7. Fix generateSendPacket to support a boolean argument.
malishav Mar 31, 2019
dde740e
OV-7. Rework openBenchmarkAgent constructor and the motes param.
malishav Mar 31, 2019
fa02150
OV-7. When logging hopLimit of packets send by DAG root, add 1.
malishav Mar 31, 2019
a673a97
OV-7. Bug fix when generating ACK packet event.
malishav Mar 31, 2019
074708a
OV-7. Fixes after a rebase.
malishav Jun 21, 2019
04bcaf8
OV-7. When in simulation mode, pass serial port name as testbed host.
malishav Jul 1, 2019
a8404c7
OV-7. Rename test environment name when in simulation mode to opensim.
malishav Jul 1, 2019
83c8fd4
OV-7. Increase measurement period to 30s.
malishav Jul 4, 2019
7443e47
OV-7. Fix a bug when retransmitting failed request.
malishav Jul 15, 2019
d3f69ee
OV-7. Add commit number in SUT name.
malishav Jul 16, 2019
7149d86
OV-7. Add desynchronized event handling.
malishav Jul 17, 2019
52dff99
OV-7. More robust EUI-64 discovery process.
malishav Jul 19, 2019
f0d99af
DAG root should not decrement hop limit.
malishav Sep 4, 2019
9ca1a34
OV-7. Check if timestamp is None.
malishav Sep 12, 2019
16ea998
OV-7. Remove variable length payload packets from OV.
malishav Sep 16, 2019
ba69ba8
OV-7. Remove mqtt client naming to allow multiple instances.
malishav Sep 17, 2019
1c1fc5a
Add short sleep time in between packets in a burst.
malishav Sep 24, 2019
9e8a38a
Do not crash when parsing HDLC if something is wrong.
malishav Sep 24, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
OV-7. When converting ASN object to string, handle None case.
malishav committed Jul 15, 2019
commit 7048e166c255d60463dcfb8496489553461ea315
2 changes: 2 additions & 0 deletions openvisualizer/openType/typeAsn.py
Original file line number Diff line number Diff line change
@@ -22,6 +22,8 @@ def __init__(self):
self.asn = None

def __str__(self):
if self.asn is None:
return '?'
return '0x{0}'.format(''.join(["%.2x"%b for b in self.asn]))

def __eq__(self, other):