Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
f-interop-contributors
agent
Commits
b2e976fc
Commit
b2e976fc
authored
Oct 16, 2017
by
Federico Sismondi
Browse files
added some doc on the agent's serial interface
parent
f883cf37
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
b2e976fc
...
...
@@ -13,20 +13,6 @@ Note well
----
Agent is only supported by python2 -> tun librarires py2 only
Running the agent
-----------------
For running the agent you will need privileges on the machine, basically
cause we need to open a virtual interface to tunnel the packets.
The command for executing it will be provided to you by F-Interop web
GUI,it should look something like this:
```
sudo python -m agent connect --url amqp://someUser:somePassword@f-interop.rennes.inria.fr/sessionXX --name coap_client_agent
```
for more info
```
python agent.py --help
python agent.py connect --help
```
Core
----
...
...
@@ -67,9 +53,32 @@ This mode of functioning assumes the following IEEE802.15.4 settings:
This mode can be used for connecting two remote (geographically distant)
802.
15.4 based devices.
Active mode probe automatically ACKs messages received by the user
device, the 802.15.4 are not forwarded to the AMQP connection.
# Running the agent
-------------------
export AMQP connection variables, and USB params for the serial connection
env vars:
`
export AMQP_EXCHANGE='amq.topic'
export AMQP_URL="amqp://someUser:somePassword@f-interop.rennes.inria.fr/sessionXX"
`
check usb port, with for example with
`ls /dev/tty*`
`
export FINTEROP_CONNECTOR_SERIAL_PORT=/dev/tty.XXX
export FINTEROP_CONNECTOR_BAUDRATE=115200
`
then execute (e.g. for a coap_server running under the agent):
`
python -m agent connect --url $AMQP_URL --name coap_server_agent --serial
`
```
+----------------+
...
...
@@ -169,6 +178,25 @@ IP tunneling mode (active-probe)
This mode can be used for communicating two IPv6-based implementations
tunneling all traffic through AMQP messages.
# Running the agent
-------------------
For running the agent you will need privileges on the machine, basically
cause we need to open a virtual interface to tunnel the packets.
The command for executing it will be provided to you by F-Interop web
GUI,it should look something like this:
```
sudo python -m agent connect --url amqp://someUser:somePassword@f-interop.rennes.inria.fr/sessionXX --name coap_client_agent
```
for more info
```
python agent.py --help
python agent.py connect --help
```
```
+----------------+
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment