9 Replies Latest reply on Jun 26, 2015 6:04 AM by BOBRAPHTONE

    Blink at every starting up - Intel XDK - Edison

    AntoineElectric

      Hello,

       

      Having made my first tests with Intel XDK, my Intel Edison Arduino card executes in every starting up the Blink program! I have the impression that it slows down the network connections.

       

      How to prevent the launch of Blink in the starting up ? Or simply to delete Deamon Tool of the card ?

       

      Thank you in advance for your answers .

        • 1. Re: Blink at every starting up - Intel XDK - Edison
          mhahn

          That's by purpose. However, you could have stopped the XDK process from within XDK - if you connect XDK to a system with an already running XDK process you may just upload again / upload a different one and stop that. If you don't require XDK any longer you may stop or disable the xdk-daemon service (which would also stop the xdk process)

          • 2. Re: Blink at every starting up - Intel XDK - Edison
            AntoineElectric

            Thank you for the information, I executed the following command and it work : systemctl disable xdk-deamon.

             

            Unfortunately persists the process of xdk deamon :

             

              184 root      6452 S    /usr/sbin/wpa_supplicant -c/etc/wpa_supplicant/wpa_s
              186 root      2412 S    {launcher.sh} /bin/sh /opt/edison/launcher.sh
              187 root      1984 S    /opt/edison/clloader --escape --binary --zmodem --di
              188 root      1792 S    /opt/edison/sketch_reset -i 207 -o 215 -s /opt/ediso
              189 root      2476 S    /sbin/syslogd -n -C
              197 root      2672 S    /lib/systemd/systemd-logind
              200 messageb  2880 S    /usr/bin/dbus-daemon --system --address=systemd: --n
              201 root      2732 S    /lib/systemd/systemd-networkd
              211 root      2236 S    /usr/bin/broker_mqtts32
              213 nobody    2812 S    /usr/sbin/mdnsd
              214 root      2412 S    {xdk-daemon} /bin/sh /opt/xdk-daemon/xdk-daemon
              219 root      2184 S    /lib/systemd/systemd-resolved
              221 root      2192 S    /sbin/agetty --noclear tty1 linux
              224 root      2652 S    -sh
              231 root         0 SW<  [ext4-dio-unwrit]
              236 root         0 SW   [jbd2/mmcblk0p10]
              237 root         0 SW<  [ext4-dio-unwrit]
            241 root     35776 S    /usr/bin/node /opt/xdk-daemon/main.js
              244 root      2140 S    /usr/sbin/wpa_cli -a /etc/wpa_supplicant/wpa_cli-act
              245 root     72048 S    /usr/bin/node /opt/xdk-daemon/current/appDaemon.js
              276 root      2412 S    udhcpc -i wlan0 -p /var/run/udhcpc-wlan0.pid -S
              277 root      2652 R    ps

             

            During the reboot, the last lines are :

              OK  ] Started File System Check on /dev/disk/by-partlabel/home.
                     Mounting /home...
            [  OK  ] Mounted /home.
                     Stopping Daemon to receive the wpa_supplicant event...
            [  OK  ] Stopped Daemon to receive the wpa_supplicant event.
                     Starting Daemon to receive the wpa_supplicant event...
            [  OK  ] Started Daemon to receive the wpa_supplicant event.   !!!!!!!!!!

            Poky (Yocto Project Reference Distro) 1.6 edison ttyMFD2

             

            How to end this process (definitively)?

             

            Thank you in advance

            • 3. Re: Blink at every starting up - Intel XDK - Edison
              mhahn

              possibly there is a dependency in another service. Does

              "grep 'xdk-daemon' /lib/systemd/system/* give any hints?

              Or check systemd dependency graph: systemd-analyze

              1 of 1 people found this helpful
              • 4. Re: Blink at every starting up - Intel XDK - Edison
                MarkHaysHarris777

                hi, the upload places your 'sketch' in the edison /sketch/ folder... naming it sketch.elf,  so your project (blinker)

                is in the edison as /sketch/sketch.elf

                 

                You can stop it with:

                 

                systemctl stop clloader

                 

                or, permanently you may remove the sketch with:

                 

                cd /sketch

                rm sketch.elf

                 

                All of the above is done in a terminal logged in to the Edison using either the terminal usb, or wifi... you will need to be logged in as root

                • 5. Re: Blink at every starting up - Intel XDK - Edison
                  mhahn

                  MarkHaysHarris777 wrote:

                   

                  hi, the upload places your 'sketch' in the edison /sketch/ folder... naming it sketch.elf,  so your project (blinker)

                  is in the edison as /sketch/sketch.elf

                   

                  You can stop it with:

                   

                  systemctl stop clloader

                   

                  or, permanently you may remove the sketch with:

                   

                  cd /sketch

                  rm sketch.elf

                   

                  All of the above is done in a terminal logged in to the Edison using either the terminal usb, or wifi... you will need to be logged in as root

                  It's not about sketches and hence clloader not involved at all

                  • 6. Re: Blink at every starting up - Intel XDK - Edison
                    AntoineElectric

                    The command systemctl disable xdk-daemon works well (use it when the XDK IoT software is closed because it reboot the daemon) ! Thanks to @mhahn for the very practical tool that systemd-analyze is!

                    Edit : Gracias mhahn

                    1 of 1 people found this helpful
                    • 7. Re: Blink at every starting up - Intel XDK - Edison
                      mhahn

                      small typo: systemctrl -> systemctl

                      • 8. Re: Blink at every starting up - Intel XDK - Edison
                        dooveloper

                        This solved my problem perfectly. Thank you very much MarkHaysHarris777!

                        • 9. Re: Blink at every starting up - Intel XDK - Edison
                          BOBRAPHTONE

                          Hello help me my XDK IOT edison is not woring i have the ip address but it cant connect

                          How can i update deamon??