1 2 3 Previous Next 30 Replies Latest reply on May 6, 2016 7:55 AM by mhahn Go to original post
      • 15. Re: Using Serialx on Edison
        mikalhart

        allene, What kind of GPS module are you using?  We used the Columbus V-800 logger in our balloon launch.  I can tell you that not all devices you hook up to the USB port appear as ttyACM0 to the kernel, even those that are nominally serial-over-usb devices.  The best way to tell is to attach the device and then examine the syslog with

         

        # dmesg

         

        Could you try that?

        • 16. Re: Using Serialx on Edison
          KurtE

          Others may have better answers for this, as I don't have this board.

           

          But when I used a USB to serial adapter with the Edison, it was FTDI based, which there are two issues.

          1) by default the FTDI driver was not installed as part of the image.  I downloaded it from Alex_ts repo: Edison opkg package repo created

          I don't remember the complete name, but is is something like kernel_ftdi... you can do an opkg list like command to find the name

           

          2) If it is FTDI, the device name will be: /dev/ttyUSBx ...

           

          When I run into issues like this, I also look at the output of dmesg as well as use commands like lsusb

           

          Kurt

          • 17. Re: Using Serialx on Edison
            allene

            I am using a serial GPS with a serial to usb converter.  I am not sure what the fellow doing the programming is using but I have sent your reply on to him.  I remember when I bought my RS323 to USB cable I was careful to get the Prolific chipset.  I recall it made a difference.

            • 18. Re: Using Serialx on Edison
              allene

              Mine is attached to tty USB0

               

              That is helpful, thanks.

              • 19. Re: Using Serialx on Edison
                mikalhart

                I had the same experience.  In July I was going to try attaching two serial-over-usb devices: (1) a satellite modem that I knew to be based on the very commonly used FTDI chipset, and which I therefore had high hopes of getting working, and (2) the aforementioned GPS device which was not, and I didn't.  I was a little surprised when the FTDI device didn't work, but the GPS one did.

                 

                But that was a few months ago.

                 

                allene, can you please verify that it works when you change the device name in the code to ttyUSB0?  If so that would imply that the Edison team has now included these drivers, and if so, well, yay.

                • 20. Re: Using Serialx on Edison
                  mikalhart

                  I just modified the original post to more accurately reflect the last software drops.  In particular, Serial2 is now supported in the Arduino IDE.  It's wired to UART2--the port that the kernel debug stuff is normally sent.

                  • 21. Re: Using Serialx on Edison
                    deium

                    there is a  opkg repository that contains mc.

                    I develop right on the Edison over ssh, so prefer something other than vi as well.

                    I use mcedit from Midnight Commander.  The opgk is a watered down version of mc.

                    There may be other editors in the repository as well http:// repo.opkg.net /edison/repo/core2-32/

                     

                    mc_4.8.10-r0_core2-32.ipk

                    • 22. Re: Using Serialx on Edison
                      allene

                      I am using Eclipse over WiFi.  Had to discover a couple of tricks to get it working.  The WiFi connection is nice as it frees up the UBS ports for the hardware I want to attach.

                      • 23. Re: Using Serialx on Edison
                        allene

                        I have just been alerted that ttyUSB0 works "without a hitch".  We now have GPS data dumped to the console.  A good start.  Next, bluetooth.

                        • 24. Re: Using Serialx on Edison
                          deium

                          Thanks for the insights KurtE and mhahn

                          • 25. Re: Using Serialx on Edison
                            vivo133

                            I want to sheild the uart2's  terminal function and use uart2 as simple data transfer.But there is something wrong.


                            As it  is said,when you run Serial2.begin(115200),You will see how the Arduino system detaches the console from the serial port.  It also sets up stuff such that the console is reattached when you end using the Serial2 and/or reboot.Then the problems come.


                            First , I find  there is no file named telinit, then I replace it with file init, the probem seemed solved.


                            Second, I find there is no content in the files named inittab and inittab.restore.


                            finally,After I  detaches the console from the serial port. It starts again.the phenomenon  is like that:


                            图片1.png


                            Would you mind give some suggestions.

                             

                            Thanks a lot.

                             

                            PS:The hardware is Intel® Edison Board for Arduino*

                            • 26. Re: Using Serialx on Edison
                              vivo133

                              KurtE

                               

                              I want to sheild the uart2's  terminal function and use uart2 as simple data transfer.But there is something wrong.


                              As it  is said,when you run Serial2.begin(115200),You will see how the Arduino system detaches the console from the serial port.  It also sets up stuff such that the console is reattached when you end using the Serial2 and/or reboot.Then the problems come.


                              First , I find  there is no file named telinit, then I replace it with file init, the probem seemed solved.


                              Second, I find there is no content in the files named inittab and inittab.restore.


                              finally,After I  detaches the console from the serial port. It starts again.the phenomenon  is like that:


                              图片1.png


                              Would you mind give some suggestions.

                               

                              Thanks a lot.

                               

                              PS:The hardware is Intel® Edison Board for Arduino*

                              • 27. Re: Using Serialx on Edison
                                zpowellman

                                Greetings,

                                I have an Edison attached to an Arduino adapter and all seems well. I uploaded the latest system, ran the Blink demo and it all works.  I'm trying to use UART1 to connect to a custom shield I have attached, and I can't get RX0 and TX0 running.  I've done some research and apparently, I have to configure the GPIO mux to enable the serial I/O to the outside.  I've tried following some configuration steps that I've seen posted to no avail: (i.e.)

                                 

                                root@edison:~# echo 214 > /sys/class/gpio/export 2>&1

                                root@edison:~# echo high > /sys/class/gpio/gpio214/direction

                                -sh: /sys/class/gpio/gpio214/direction: No such file or directory

                                root@edison:~# root@edison:~# echo 214 > /sys/class/gpio/export 2>&1

                                root@edison:~# root@edison:~# echo high > /sys/class/gpio/gpio214/direction

                                -sh: /sys/class/gpio/gpio214/direction: No such file or directory

                                 

                                Two questions,

                                1. Am I on the right track here?  Is this the only way to configure the GPIO, using echo commands thru PuTTy?

                                If so, do you have the recommended procedure available.  The one I have doesn't appear to work.

                                2. Is there any way to access the internal configuration registers via the Arduino IDE?

                                 

                                Thank

                                Dan Powell

                                • 28. Re: Using Serialx on Edison
                                  mhahn

                                  @ 1: MRAA is your friend. It will abstract those details away. Just check the examples on MRAA

                                  @ 2: as an Arduino sketch on Edison is just an ordinary Linux (by default root) process and as you do have a "system" command in the Arduino IDE you can either use C/C++ for low level system access (as long as the required header files are included in the IDE) or use the "system" call to call any binary on the target system. In addition you might have direct IDE support (just check the IDE)

                                  • 29. Re: Using Serialx on Edison
                                    JonasBous

                                    Hello everyone,

                                     

                                    Is it possible to give uart1 the same functionality like uart2?

                                    I made a pcb-design and made a mistake by connecting my serial connection to uart1 instead of uart2...

                                    (Deadline is close, so there isn't enough time to change the hardware design...)

                                    Now i want to know if there is a possibility to use uart1 as “Linux kernel debug” or “debug spew” port.

                                    Thanks in advance!

                                     

                                    Regards,

                                    Jonas