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
Trouble trying to enable transparent connection for UDP socket
-
- 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
Who is online
Users browsing this forum: No registered users and 151 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.