EmbeddedRelated.com
Forums
Memfault Beyond the Launch

How to dynamic IP,NTEMASK,GATEWAY change on the RCM5600W

Started by kara_liao January 13, 2011
Hi, Can anyone provide me any suggestion or sample program ?
I would like dynamic to change the IP,NTEMASK,GATEWAY settings from the WEB page, here are the TCPCONFIG setting as below,

#define TCPCONFIG 1
#define _PRIMARY_STATIC_IP "10.10.6.100"
#define _PRIMARY_NETMASK "255.255.255.0"
#define MY_GATEWAY "10.10.6.1"
#define MY_NAMESERVER "10.10.6.1"
#define IFC_WIFI_SSID "Super-N"
#define IFC_WIFI_ROAM_ENABLE 1
#define IFC_WIFI_ROAM_BEACON_MISS 20
#define IFC_WIFI_MODE IFPARAM_WIFI_INFRASTRUCTURE
#define IFC_WIFI_REGION IFPARAM_WIFI_REGION_AMERICAS
#define IFC_WIFI_ENCRYPTION IFPARAM_WIFI_ENCR_WEP
#define IFC_WIFI_WEP_KEYNUM 0
#define IFC_WIFI_WEP_KEY0_HEXSTR "0289124000"

Thanks,

http://www.rabbit.com/support/ask_larry/2007/112807.shtml

________________________________
From: kara_liao
To: r...
Sent: Thu, January 13, 2011 6:58:29 AM
Subject: [rabbit-semi] How to dynamic IP,NTEMASK,GATEWAY change on the RCM5600W

Hi, Can anyone provide me any suggestion or sample program ?
I would like dynamic to change the IP,NTEMASK,GATEWAY settings from the WEB
page, here are the TCPCONFIG setting as below,

#define TCPCONFIG 1
#define _PRIMARY_STATIC_IP "10.10.6.100"
#define _PRIMARY_NETMASK "255.255.255.0"
#define MY_GATEWAY "10.10.6.1"
#define MY_NAMESERVER "10.10.6.1"
#define IFC_WIFI_SSID "Super-N"
#define IFC_WIFI_ROAM_ENABLE 1
#define IFC_WIFI_ROAM_BEACON_MISS 20
#define IFC_WIFI_MODE IFPARAM_WIFI_INFRASTRUCTURE
#define IFC_WIFI_REGION IFPARAM_WIFI_REGION_AMERICAS
#define IFC_WIFI_ENCRYPTION IFPARAM_WIFI_ENCR_WEP
#define IFC_WIFI_WEP_KEYNUM 0
#define IFC_WIFI_WEP_KEY0_HEXSTR "0289124000"

Thanks,
Dear Sir:

Could I consult you how to apply into the rcm5600w module ? that's a sample just for Ethernet network.

Thanks,

--- In r..., Per-Olof Bergström wrote:
>
> http://www.rabbit.com/support/ask_larry/2007/112807.shtml
>
>
>
> ________________________________
> From: kara_liao
> To: r...
> Sent: Thu, January 13, 2011 6:58:29 AM
> Subject: [rabbit-semi] How to dynamic IP,NTEMASK,GATEWAY change on the RCM5600W
>
>
> Hi, Can anyone provide me any suggestion or sample program ?
> I would like dynamic to change the IP,NTEMASK,GATEWAY settings from the WEB
> page, here are the TCPCONFIG setting as below,
>
> #define TCPCONFIG 1
> #define _PRIMARY_STATIC_IP "10.10.6.100"
> #define _PRIMARY_NETMASK "255.255.255.0"
> #define MY_GATEWAY "10.10.6.1"
> #define MY_NAMESERVER "10.10.6.1"
> #define IFC_WIFI_SSID "Super-N"
> #define IFC_WIFI_ROAM_ENABLE 1
> #define IFC_WIFI_ROAM_BEACON_MISS 20
> #define IFC_WIFI_MODE IFPARAM_WIFI_INFRASTRUCTURE
> #define IFC_WIFI_REGION IFPARAM_WIFI_REGION_AMERICAS
> #define IFC_WIFI_ENCRYPTION IFPARAM_WIFI_ENCR_WEP
> #define IFC_WIFI_WEP_KEYNUM 0
> #define IFC_WIFI_WEP_KEY0_HEXSTR "0289124000"
>
> Thanks,
>

Check out the WiFi samples and use ctrl-h on ifconfig() to see what it
offers. You best way to learn is to do it alone if you can.

I find that this makes me understand it a lot easier.

Ifconfig will allow you to control everything at run time. I have had PPP
and WiFi all working on the sample module with a bit of clever programming
using ifconfig and bringing the networks up and down.

You can cut and paste a lot of the sample code together to make it do what
you want.

Dave...
---
Very funny Scotty, now beam down my clothes!!!
---

From: r... [mailto:r...] On
Behalf Of kara_liao
Sent: 13 January 2011 15:12
To: r...
Subject: [rabbit-semi] Re: How to dynamic IP,NTEMASK,GATEWAY change on the
RCM5600W

Dear Sir:

Could I consult you how to apply into the rcm5600w module ? that's a sample
just for Ethernet network.

Thanks,

--- In r... ,
Per-Olof Bergström wrote:
>
> http://www.rabbit.com/support/ask_larry/2007/112807.shtml
>
> ________________________________
> From: kara_liao
> To: r...
> Sent: Thu, January 13, 2011 6:58:29 AM
> Subject: [rabbit-semi] How to dynamic IP,NTEMASK,GATEWAY change on the
RCM5600W
> Hi, Can anyone provide me any suggestion or sample program ?
> I would like dynamic to change the IP,NTEMASK,GATEWAY settings from the
WEB
> page, here are the TCPCONFIG setting as below,
>
> #define TCPCONFIG 1
> #define _PRIMARY_STATIC_IP "10.10.6.100"
> #define _PRIMARY_NETMASK "255.255.255.0"
> #define MY_GATEWAY "10.10.6.1"
> #define MY_NAMESERVER "10.10.6.1"
> #define IFC_WIFI_SSID "Super-N"
> #define IFC_WIFI_ROAM_ENABLE 1
> #define IFC_WIFI_ROAM_BEACON_MISS 20
> #define IFC_WIFI_MODE IFPARAM_WIFI_INFRASTRUCTURE
> #define IFC_WIFI_REGION IFPARAM_WIFI_REGION_AMERICAS
> #define IFC_WIFI_ENCRYPTION IFPARAM_WIFI_ENCR_WEP
> #define IFC_WIFI_WEP_KEYNUM 0
> #define IFC_WIFI_WEP_KEY0_HEXSTR "0289124000"
>
> Thanks,
>

Memfault Beyond the Launch