-
Notifications
You must be signed in to change notification settings - Fork 6
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
firmware & tools: chamoc tools and chamos module implementation #249
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1.- The tool name is ambiguous
2.- What's the purpose of a command in this tool?
bab50d4
to
6113dd9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice job !! 💯
just documentation and aesthetics by now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good, only has a little doc corrections and format corrections 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well done. almost finished!
a1bc188
to
ab08606
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well dona!! going ahead!! 👍
Contribution description
This is an implementation of vaina source code, The objective of this PR is design an udp client to connect with an device and send it a NIB_ADD request or a NIB_DEL, this device will response with an ACK if the request was received correctly, if the request was wrong received, the device should response with an NACK.
These Pr contains some structures to gives the elements required to this process, refering an client by an interface.
The interface that could be used are that appears in your System. you could see these executing
ip address show
command orifconfig
Testing procedure
There are two cases to test the client connection, first testing locally by the an local host and then connecting with an m4a-24g board.
1 - Case °1 Running with chamoc_server test and the chamoc tool.
follow these steps:
The script will ask about which interface will be used
when you see this output
means that you are running the chamoc server, this will nerver stop until that received and nib request from a chamoc client.
note: before to start run the client, it's recommended take note of the iface name (see typing
ip address show
orifconfig
).in terminal B go to dist/tools/chamoc folder and ther run the test script.
When you are started you need to fill all the params fields that the script will need to execute te client code, e.g:
# Terminal B Interface: enp2s0 Ipv6 Address: 2001:db8::1 Ipv6 Address prefix (64 - 128): 64
your expected output should see just like this:
# Terminal B running nib add request Request Confirmed
In terminal A it can look the packet received in hexadecimals pais, where:
Packet representation
0x40
is 64 in decimal value)2 - Case °2 Running with chamos_server in m4a-24g board
follow these steps:
note : you could run the autoconfig script placing your owns parameters to the nib message and setup of the host,
./autoconfigure.sh
[ipv6 address]
When you execute the script without any input, by default the script will take the ipv6 address 2001:db8::1 by default.
Issues/PRs references