SEARCH THE KNOWLEDGE BASE
OR BROWSE BY CATEGORY
How do I send data between two Wi-Fi modules configured in ad hoc mode (point to point connection)
In order to send data between two Roving Networks' devices configured in ad hoc mode, the following configuration is recommended:
Module #1:
set wlan join 4 // Creates a software adhoc network
set wlan channel 1 // Specify the channel on which ad hoc networks is created
set wlan ssid cable // Specify the network name (SSID)
set ip dhcp 0 // Disable DHCP server to enable static IP
set ip address 169.254.1.1 // Assign a static IP to the module
set ip netmask 255.255.0.0 // Set the subnet mask
save // Save configuration in the config file
reboot // Reboots the module so that the stored parameters take effect
Module #2:
set wlan join 4
set wlan channel 1
set wlan ssid cable
set ip dhcp 0
set ip address 169.254.1.2
set ip netmask 255.255.0.0
set ip host 169.254.1.1 // Specifys the IP address of the other module to connect
set ip remote 2000 // Sets the port number of the other module to connect to
set sys auto 2 // Enables automatic opening of TCP connection to Module #1
save // Saves the configuration in config file
reboot //Reboots the module so that the stored parameters take effect
At this point in time, Module #2 should be able to automatically open a TCP connection to Module #1. You should see a *OPEN* on the UART indicating that TCP connection has been established.
| ARTICLE RATING 5 out of 5 (3 votes) |
Rate this article |
RELATED ARTICLES
|
Added January 14, 2012 in
Modules
How do I create a custom adhoc network using the Wi-Fi module? |
|
Added January 14, 2012 in
Bluetooth, Modules
I see many references on the internet towards the 'Bluetooth SIG'. What is Bluetooth SIG? |
|
Added January 30, 2012 in
Profiles, Bluetooth
Will Roving's Bluetooth solution talk to an Apple iPod/iPad or iPhone |
|
Added January 19, 2012 in
Wi-Fi
When I update the module to ver 2.31, I get "Bad Config" error when I try to store my configuration |
|
Added February 1, 2012 in
Modules
How do I enter into command mode on Roving Networks Bluetooth and Wi-Fi modules |
|
Added February 13, 2012 in
Bluetooth
How do I use the RN-41 / RN-42 with windows mobile 5 (IPAQ - for broadcom driver |
|
Added March 19, 2012 in
Wi-Fi, Modules
Is there any Arduino example code available for the WiFly module? |
|
Added May 9, 2012 in
Modules, Bluetooth
Is it possible to pot your modules to make them resistant to water |