If I understand correctly what you want to do, is you want to at some point change the Edison's configuration so it only connects to an specific network, and you want to do it through a script, am I right?
If so, you could make a script in python, nodejs or any other compiler that modifies your wpa_supplicant.conf file and change the SSID and password to whatever you want.
If I didn't understand you correctly and all you want to do is connect your Edison to a wireless network, all you need to do is type configure_edison --wifi and follow the instructions.
You can add more than one network to the wpa_supplicant.conf, for example:
My question is that if i want one particular SSID to be a master so that whenver edison find that in it's range , it automatically connects.
I have one more question:-
I am able to find edisonboard IP addres on INtel XDK but when i build i get the following Pop up:-
Please Connect to an IOT device!
If having more than one network on the wpa_supplicant.conf doesn't work for you, I think you can use ConnMan, "ConnMan is a command-line network manager designed for use with embedded devices". You can go here to learn how to use it, and if you are able to make it work, I encourage you to share your results with the community.
Thanks i will try.
One more doubt is there regarding Serial Data reception. In Edison , we have /dev/ttyGS0 named as Serial.
I am reading the data received from /dev/ttyMFD1 i.e Serial1 and writing in /dev/ttyGS0 . But somehow the values
are not written to Serial port.
I think this post might help you: Using Serialx on Edison
Please correct me if I'm wrong, you are trying to read ttyMDF1 and then send it to ttyGS0, right?
I imagine you're using a line like this" cat /dev/ttyMFD1 > /dev/ttyGS0". I'm not sure but maybe the Edison has trouble if you send the data directly from ttyMDF1 to ttyGS0, maybe you can try something like this:
cat /dev/ttyMDF1 > test.txt
echo test.txt > /dev/ttyGS0
So you create a file, save the data you're reading in that file, and then send the data you saved to ttyGS0.
I haven't tried it yet but please let us know if it does.
I will tell you basically what i am trying from the past 2 days:-
->I am getting some serial data from Arduino at Pin0 which i am able to read using the command "cat /dev/ttyMFD1"
->So i thought of reading this data from XDK using the serialport module at port ttyMFD1 . Through the code i was able to open the port but not able to get the data
->No solution till now for the above problem
-> Secondly i am not able to see any data at my ardunio Serial Monitor.
-> I am trying the following Ardunio examplehttps://communities.intel.com/docs/DOC-23236 but no data coming on Serial Monitor.
Please help, it hs been long i am trying to solve both the problems
I believe I have a similar question.
I am able to connect my edison to wifi. I want to write a program that sends data collected by the edison back to the computer via wifi. Where might a good place to start be?
I suggest you to take a look at the IoT Analytics:
With this you would be able to send data from your board to your PC.