Community
cancel
Showing results for 
Search instead for 
Did you mean: 
ASain2
Novice
1,481 Views

Facing issue with Edison WiFi connection

Hi,

I have created an Arduino Sketch to establish WiFi connection with a WiFi router. After this I am configuring it as a TCP/IP server and wrote a TCP/IP client program to communicate with TCP/IP server running on Edison Arduino board. The issue faced by me is as follows.

1. If I keep on connecting USB cable + External power supply (9V, 1A), then WiFi connection seems stable. Ping from peer computer works fine.

2. If I just connect Edison board with external power supply (9V, 1A), there is lot of packet loss. Ping doesn't get replies.

I have updated Edison board with firmware available at (https://software.intel.com/en-us/iot/library/edison-getting-started IoT - Intel® Edison Board Get Started Guide | Intel® Developer Zone) link.

Regards,

Arun Kumar Saini

5 Replies
Carlos_M_Intel
Employee
49 Views

Hi Arun,

This could be due to the Arduino sketch you are using. While using the Arduino IDE the ttyGS0 is used do upload the sketch to the board and for the interactions in the Serial Monitor. If your sketch is using the Serial monitor for functions like serial.write or serial.print you will have problems if the USB is not connected, because, that is the port the sketch will use to send and receive information. If the sketch doesn't find the ttyGS0 (USB port) connected, it will not be able to run the sketch for configuring the WiFi connection.

Could you post the sketch you are using?

Which image are you using? (configure_edison --version)

Regards,

Charlie

ASain2
Novice
49 Views

Hi Charlie,

Initially I used serial prints in the code for debugging purposes. With this sketch (ProximityDetectionTCPWiFiDebug.ino), I mentioned my earlier observations. Now after commenting out logic related to Serial communication (ProximityDetectionTCPWiFiRelease.ino), I am not able to connect even with the WiFi Accesspoint.

(configure_edison --version) doesn't print any version. It says invalid command.

I am attaching both the sketches for your reference.

ASain2
Novice
49 Views

Hi Charlie,

I have figured out the issue with ProximityDetectionTCPWiFiRelease.ino sketch. Now I have cleaned up the code i.e. removed all un-necessary code involving Serial prints. But still issue mentioned in original post is there.

1. If I keep on connecting USB cable + External power supply (9V, 1A), then WiFi connection seems stable. Ping from peer computer works fine.

2. If I just connect Edison board with external power supply (9V, 1A), there is lot of packet loss. Ping doesn't get replies.

Attaching updated sketch for your reference.

Carlos_M_Intel
Employee
49 Views

Hi Arun,

You should be able to run the configure_edison --version command on the Terminal Console. This could be due to a firmware issue, I suggest you to flash your board with the latest image.

https://software.intel.com/en-us/articles/flash-tool-lite-user-manual IoT - Flash Tool Lite User Manual | Intel® Developer Zone

How are you testing your code, I would like to test it in the same way.

Kind regards,

Charlie

ASain2
Novice
49 Views

Hi Charlie,

I have flashed the latest (Release 2.1) yocto image mentioned on the page https://software.intel.com/en-us/iot/hardware/edison/downloads IoT - Intel® Edison Board Download | Intel® Developer Zone.

After this I end up with a new issue i.e. Arduino sketch doesn't run if USB cable is disconnected from the host PC.

After checking on google, I have found that it is a known issue and there is a workaround to resolve this as mentioned on /thread/78269?start=0&tstart=0 https://communities.intel.com/thread/78269?start=0&tstart=0.

After implementing this workaround now things are working fine. The Arduino Sketch is working as expected without connecting the USB cable now. So the original issue got resolved.

Thanks for your help.

Regards,

Arun Kumar Saini

Reply