mirror of
https://github.com/pvvx/RTL00_WEB.git
synced 2026-07-02 09:25:39 +00:00
update
This commit is contained in:
parent
34d3652711
commit
39f77eb92b
1844 changed files with 899433 additions and 7 deletions
28
USDK/component/common/example/bcast/readme.txt
Normal file
28
USDK/component/common/example/bcast/readme.txt
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
LWIP BROADCAST EXAMPLE
|
||||
|
||||
Description:
|
||||
Listen broadcast message on port 49152.
|
||||
Send packet with the content of received packet to broadcast address.
|
||||
|
||||
Configuration:
|
||||
[lwipopts.h]
|
||||
#define LWIP_UDP 1
|
||||
[platform_opts.h]
|
||||
#define CONFIG_EXAMPLE_BCAST 1
|
||||
|
||||
Execution:
|
||||
Can make automatical Wi-Fi connection when booting by using wlan fast connect example.
|
||||
A broadcast example thread will be started automatically when booting.
|
||||
|
||||
Test:
|
||||
1. Prepare a NB and connect to the same AP Ameba connected.
|
||||
2. NB: iperf -c 192.168.1.255 -t 60 -i 1 -p 49152 -u
|
||||
3. The recv/send messages should be printed out on Ameba console.
|
||||
4. Use sniffer to make sure the packets send from Ameba are broadcast messages.
|
||||
|
||||
Note:
|
||||
If you encounter some message like:
|
||||
ERROR: sendto broadcast
|
||||
[Driver]: skb_unavailable=1 in last 2 seconds
|
||||
It means that the skb buffer is not enough for the massive UDP packets to be sent.
|
||||
If you want to prevent the error you can add some delay time between sending packets or enlarge the skb buffer configuration.
|
||||
Loading…
Add table
Add a link
Reference in a new issue