Hi all,
I am experiencing an issue with the latest MSP432 SDK v3.20.00.10. This seems to be related to an issue I reported several months back (see https://e2e.ti.com/support/microcontrollers/msp430/f/166/t/767365?tisearch=e2e-sitesearch&keymatch=MSP432E401Y ). I am using CCS v9.0.1.00004 with all the latest updates/patches applied, MSP432E4 SDK v3.20.00.10 and SimpleLink MSP432 WIFI Plugin v2.40.00.22. I am using a MSP432E401Y Launchpad with the CC3120BOOSTRevA daughter card attached. I installed the "wifi_ethernet_sockets" example from the SimpleLink MSP432 WIFI Plugin v2.40.00.22 package.
For my configuration, when the wifi_ethernet_sockets app is started up all initializes just fine; my ethernet IP is assigned the address 10.0.0.78 and my Wifi gets the address 10.0.0.174. I have the card connected to a hardwired ethernet connection port on my router and I know that, if all is working properly, the connection will remain ethernet until the it fails for some reason (e.g., I unplug the ethernet cable) at which time the connection will automatically switch to Wifi.
However, what I observe, is that the app connects to the python TCP server provided in the example code just fine and begins producing output. I can see from the output of the Python server that the client connection IP is 10.0.0.78. However after exacting 10 send/receive events, the ethernet connection suddenly disconnects and switches to Wifi (IP 10.0.0.174). It stays on Wifi for exactly two send/receive events, then ethernet reconnects and the pattern repeats.
The issue can be fixed by backing down the MSP432 SDK to version 2.30.00.14. If I use any version later than this one, I see the issue.
Here is the output from the terminal window for the LaunchPad MCU:
Service Status: DHCPC : Enabled : : 000
Service Status: DHCPC : Enabled : Running : 000
Ethernet Interface connected and started
Interface(s) not added yet
Device came up in Station mode
[WLAN EVENT] STA Connected to the AP: XXXXX, BSSID: XXXXXXXX
[NETAPP EVENT] IP acquired by the device
WiFi Interface has connected to XXXXXXX
WiFi Interface IP Address is 10.0.0.174
WiFi Interface connected and started
Ethernet Connection Added:
10.0.0.78
Service Status: DHCPC : Enabled : Running : 017
world-1
world-2
world-3
world-4
world-5
world-6
world-7
world-8
world-9
world-10
world-11
world-12
world-13
world-14
world-15
world-16
world-17
world-18
world-19
world-20
world-21
world-22
world-23
world-24
world-25
world-26
world-27
world-28
world-29
world-30
world-31
world-32
world-33
world-34
world-35
world-36
Here is the output log from the Python tcp server application:
Connection address: ('10.0.0.78', 57345)
received data: b'h'
received data: b'e'
received data: b'l'
received data: b'l'
received data: b'o'
Connection closed: ('10.0.0.78', 57345)
Connection address: ('10.0.0.78', 57346)
received data: b'h'
received data: b'e'
received data: b'l'
received data: b'l'
received data: b'o'
Connection closed: ('10.0.0.78', 57346)
Connection address: ('10.0.0.78', 57347)
received data: b'h'
received data: b'e'
received data: b'l'
received data: b'l'
received data: b'o'
Connection closed: ('10.0.0.78', 57347)
Connection address: ('10.0.0.78', 57348)
received data: b'h'
received data: b'e'
received data: b'l'
received data: b'l'
received data: b'o'
Connection closed: ('10.0.0.78', 57348)
Connection address: ('10.0.0.78', 57349)
received data: b'h'
received data: b'e'
received data: b'l'
received data: b'l'
received data: b'o'
Connection closed: ('10.0.0.78', 57349)
Connection address: ('10.0.0.78', 57350)
received data: b'h'
received data: b'e'
received data: b'l'
received data: b'l'
received data: b'o'
Connection closed: ('10.0.0.78', 57350)
Connection address: ('10.0.0.78', 57351)
received data: b'h'
received data: b'e'
received data: b'l'
received data: b'l'
received data: b'o'
Connection closed: ('10.0.0.78', 57351)
Connection address: ('10.0.0.78', 57352)
received data: b'h'
received data: b'e'
received data: b'l'
received data: b'l'
received data: b'o'
Connection closed: ('10.0.0.78', 57352)
Connection address: ('10.0.0.78', 57353)
received data: b'h'
received data: b'e'
received data: b'l'
received data: b'l'
received data: b'o'
Connection closed: ('10.0.0.78', 57353)
Connection address: ('10.0.0.78', 57354)
received data: b'h'
received data: b'e'
received data: b'l'
received data: b'l'
received data: b'o'
Connection closed: ('10.0.0.78', 57354)
Connection address: ('10.0.0.174', 60294)
received data: b'h'
received data: b'e'
received data: b'l'
received data: b'l'
received data: b'o'
Connection closed: ('10.0.0.174', 60294)
Connection address: ('10.0.0.174', 52011)
received data: b'h'
received data: b'e'
received data: b'l'
received data: b'l'
received data: b'o'
Connection closed: ('10.0.0.174', 52011)
Connection address: ('10.0.0.78', 57355)
received data: b'h'
received data: b'e'
received data: b'l'
received data: b'l'
received data: b'o'
Connection closed: ('10.0.0.78', 57355)
Connection address: ('10.0.0.78', 57356)
received data: b'h'
received data: b'e'
received data: b'l'
received data: b'l'
received data: b'o'
Connection closed: ('10.0.0.78', 57356)
Connection address: ('10.0.0.78', 57357)
received data: b'h'
received data: b'e'
received data: b'l'
received data: b'l'
received data: b'o'
Connection closed: ('10.0.0.78', 57357)
Connection address: ('10.0.0.78', 57358)
received data: b'h'
received data: b'e'
received data: b'l'
received data: b'l'
received data: b'o'
Connection closed: ('10.0.0.78', 57358)
Connection address: ('10.0.0.78', 57359)
received data: b'h'
received data: b'e'
received data: b'l'
received data: b'l'
received data: b'o'
Connection closed: ('10.0.0.78', 57359)
Connection address: ('10.0.0.78', 57360)
received data: b'h'
received data: b'e'
received data: b'l'
received data: b'l'
received data: b'o'
Connection closed: ('10.0.0.78', 57360)
Connection address: ('10.0.0.78', 57361)
received data: b'h'
received data: b'e'
received data: b'l'
received data: b'l'
received data: b'o'
Connection closed: ('10.0.0.78', 57361)
Connection address: ('10.0.0.78', 57362)
received data: b'h'
received data: b'e'
received data: b'l'
received data: b'l'
received data: b'o'
Connection closed: ('10.0.0.78', 57362)
Connection address: ('10.0.0.78', 57363)
received data: b'h'
received data: b'e'
received data: b'l'
received data: b'l'
received data: b'o'
Connection closed: ('10.0.0.78', 57363)
Connection address: ('10.0.0.78', 57364)
received data: b'h'
received data: b'e'
received data: b'l'
received data: b'l'
received data: b'o'
Connection closed: ('10.0.0.78', 57364)
Connection address: ('10.0.0.174', 54738)
received data: b'h'
received data: b'e'
received data: b'l'
received data: b'l'
received data: b'o'
Connection closed: ('10.0.0.174', 54738)
Connection address: ('10.0.0.174', 54049)
received data: b'h'
received data: b'e'
received data: b'l'
received data: b'l'
received data: b'o'
Connection closed: ('10.0.0.174', 54049)
Connection address: ('10.0.0.78', 57365)
received data: b'h'
received data: b'e'
received data: b'l'
received data: b'l'
received data: b'o'
Connection closed: ('10.0.0.78', 57365)
Connection address: ('10.0.0.78', 57366)
received data: b'h'
received data: b'e'
received data: b'l'
received data: b'l'
received data: b'o'
Connection closed: ('10.0.0.78', 57366)
Connection address: ('10.0.0.78', 57367)
received data: b'h'
received data: b'e'
received data: b'l'
received data: b'l'
received data: b'o'
Connection closed: ('10.0.0.78', 57367)
Connection address: ('10.0.0.78', 57368)
received data: b'h'
received data: b'e'
received data: b'l'
received data: b'l'
received data: b'o'
Connection closed: ('10.0.0.78', 57368)
Connection address: ('10.0.0.78', 57369)
received data: b'h'
received data: b'e'
received data: b'l'
received data: b'l'
received data: b'o'
Connection closed: ('10.0.0.78', 57369)
Connection address: ('10.0.0.78', 57370)
received data: b'h'
received data: b'e'
received data: b'l'
received data: b'l'
received data: b'o'
Connection closed: ('10.0.0.78', 57370)
Connection address: ('10.0.0.78', 57371)
received data: b'h'
received data: b'e'
received data: b'l'
received data: b'l'
received data: b'o'
Connection closed: ('10.0.0.78', 57371)
Connection address: ('10.0.0.78', 57372)
received data: b'h'
received data: b'e'
received data: b'l'
received data: b'l'
received data: b'o'
Connection closed: ('10.0.0.78', 57372)
Connection address: ('10.0.0.78', 57373)
received data: b'h'
received data: b'e'
received data: b'l'
received data: b'l'
received data: b'o'
Connection closed: ('10.0.0.78', 57373)
Connection address: ('10.0.0.78', 57374)
received data: b'h'
received data: b'e'
received data: b'l'
received data: b'l'
received data: b'o'
Connection closed: ('10.0.0.78', 57374)
Connection address: ('10.0.0.174', 60848)
received data: b'h'
received data: b'e'
received data: b'l'
received data: b'l'
received data: b'o'
Connection closed: ('10.0.0.174', 60848)
Connection address: ('10.0.0.174', 51054)
received data: b'h'
received data: b'e'
received data: b'l'
received data: b'l'
received data: b'o'
Connection closed: ('10.0.0.174', 51054)