sdk-ameba-v4.0b_without_nda.../component/common/example/rarp
2017-10-15 14:36:37 +08:00
..
example_rarp.c Initial commit 2017-10-15 14:36:37 +08:00
example_rarp.h Initial commit 2017-10-15 14:36:37 +08:00
readme.txt Initial commit 2017-10-15 14:36:37 +08:00

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

RARP EXAMPLE

Description:
In this example, it will send rarp request for 3 times. And the rarp reply callback will print the received reply IP address.

Configuration:
[platform_opts.h]
    #define CONFIG_EXAMPLE_RARP    1
	
Execution:
You need to connect to WiFi manually by AT command. After connected the rarp request will be sent.

RARP server:
For Ubuntu, you can try to setup the RARP server as doing this:
•	apt-get install rarpd
•	touch /etc/ethers
•	add “00:e0:4c:87:xx:xx(Amebas MAC)        client”  in /etc/ethers
•	add”192.168.1.xx(Amebas ip)               client”  in /etc/hosts