mirror of
https://github.com/sengeiou/realtek_ameba_mp_sdk.git
synced 2025-01-10 14:15:18 +00:00
21 lines
597 B
Text
21 lines
597 B
Text
|
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:
|
|||
|
<EFBFBD> apt-get install rarpd
|
|||
|
<EFBFBD> touch /etc/ethers
|
|||
|
<EFBFBD> add <20>00:e0:4c:87:xx:xx(Ameba<62>s MAC) client<6E> in /etc/ethers
|
|||
|
<EFBFBD> add<64>192.168.1.xx(Ameba<62>s ip) client<6E> in /etc/hosts
|
|||
|
|
|||
|
|