Trouble trying to enable transparent connection for UDP socket

jerry.hubbell
Posts: 1
Joined: Tue Nov 28, 2017 1:29 am

Trouble trying to enable transparent connection for UDP socket

Postby jerry.hubbell » Tue Nov 28, 2017 2:02 am

I am trying to configure my ESP8266 (ESP-WROOM-02) to be used as a transparent WiFi to Serial bridge for a single UDP connection. The ESP8266 is assigned IPADD 192.168.47.1 and listens on port 54372. I have a PC application that successfully connects to a Microchip RN-131 module based controller and would like to configure the ESP-WROOM-02 module as a substituted for this module. Here are the command I use to configure the ESP8266. I want this to be the default configuration when rebooting the ESP8266.

AT+CWMODE_DEF=2
AT+CIPMUX=1
AT+CWSAP_DEF="PMC-Eight-XX","PMC-Eight",7,3,4,0
AT+CIPAP_DEF="192.168.47.1","192.168.47.1","255.255.255.0"
AT+CWDHCPS_DEF=1,60,"192.168.47.2","192.168.47.2"
AT+SAVETRANSLINK=1,"192.168.47.2",54377,"UDP",54372

Here are the commands I use to configure the RN-131 module (Note: the default protocol value is set to TCP, UDP on the module).

set uart b 115200
set comm size 64
set dns addr 0.0.0.0
set dns backup 0.0.0.0
save
set dns name dns1
set ftp addr 0.0.0.0
set ftp time 200
save
set ip dhcp 4
set ip flag 0x47
set ip gate 192.168.47.1
set ip addr 192.168.47.1
set ip net 255.255.0.0
save
set ip host 0.0.0.0
set ip protocol 0x03
set ip remote 54372
set ip local 54372
save
set sys autosleep 0
set sys sleep 0
set sys wake 5
set sys trigger 0x01
save
set wlan auth 4
set wlan hide 1
set wlan join 7
set wlan chan 8
save
set wlan ssid PMC-Eight-b6
set apmode ssid PMC-Eight-b6
set opt deviceid PMC-Eight
save
set wlan passphrase PMC-Eight
set apmode passphrase PMC-Eight
save
set wlan ext_antenna 1
save

Reboot

Thanks, I appreciate any information and guidance you can provide.

Jerry Hubbell

Her Majesty
Posts: 231
Joined: Mon Oct 27, 2014 11:09 am

Re: Trouble trying to enable transparent connection for UDP socket

Postby Her Majesty » Wed Nov 29, 2017 2:11 pm

Not sure, maybe you can try AT+CWDHCPS_DEF=1,60,"192.168.47.2","192.168.47.3"

Who is online

Users browsing this forum: No registered users and 6 guests