11 Replies Latest reply on Jun 10, 2015 1:13 PM by CMata_Intel

    Configuring Edison Wifi

    345ishaan

      Hi Intel Edison Community,

       

      I am using Intel Edison to develop my project . I want  to configure Edison Wifi so that it becomes a slave for a particular Network SSID .

      I mean in simple code language, it should behave like this:-

           if (Network SSID == "XYZ")

           {

                CONNECT

           }

           else

           {

                SCAN FOR NEARBY DEVICES

           }

       

      Is there any command to do it?

      Please help

        • 1. Re: Configuring Edison Wifi
          Intel_Peter

          Hello 35ishaan,

           

          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.

           

          Regards,

                      Peter

          • 2. Re: Configuring Edison Wifi
            Intel_Raad

            You can add more than one network to the wpa_supplicant.conf, for example:

             

            network={

                    ssid="network1"

                    scan_ssid=1

                    psk="psk1"

                    id_str="network1"

                    priority=5

                    }

             

            network={

                    ssid="network2"

                    scan_ssid=1

                    psk="psk2"

                    id_str="network2"

                    priority=5

                    }

            • 3. Re: Configuring Edison Wifi
              345ishaan

              Hi Peter,

               

              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!

               

              Please help

              • 4. Re: Configuring Edison Wifi
                Intel_Peter

                Hello 345ishaan,

                 

                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.

                 

                Regards,

                            Peter

                • 5. Re: Configuring Edison Wifi
                  345ishaan

                  Hi Peter,

                  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.

                   

                  Any Idea?

                  • 6. Re: Configuring Edison Wifi
                    Intel_Peter

                    Hello 345ishaan,

                     

                    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.

                     

                    Regards,

                                Peter

                    • 7. Re: Configuring Edison Wifi
                      345ishaan

                      Hi Peter,

                       

                      I will tell you basically what i am trying from the past 2 days:-

                      First Part

                      ->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

                      Second Part

                      -> 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

                      • 8. Re: Configuring Edison Wifi
                        Intel_Peter

                        Hello 345ishaan,

                         

                        That's weird, I just tried it and I got that example running from the first time.

                         

                        webserver.PNG

                         

                        Are you able to set a wireless connection from Linux?

                         

                        Peter.

                        • 9. Re: Configuring Edison Wifi
                          CMata_Intel

                          Hi 345ishaan

                           

                          Do you still have questions about this?

                           

                          Best Regards;

                          CMata

                          • 10. Re: Configuring Edison Wifi
                            c.....f

                            Hi John,

                            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?

                            • 11. Re: Configuring Edison Wifi
                              CMata_Intel

                              Hi c.....f

                               

                              I suggest you to take a look at the IoT Analytics:

                              IoT Analytics Dashboard

                              Intel® IoT Developer Kit Cloud-based Analytics User Guide | Intel® Developer Zone

                              With this you would be able to send data from your board to your PC.

                               

                              Regards;

                              CMata