4 Replies Latest reply on May 2, 2016 1:28 PM by DiegoV_Intel

    Multiple serial ports

    LéOSW

      Hello world !

       

      I'm just begining programming my Galileo Gen 1 board (without any linux distro) and I want to use many different serial ports.

      One for GPS receiver on RX/TX pins, and I want to copy any data from RX pin to the serial into USB connexion to print it to my computer.

       

      But there is an issue, SoftwareSerial lib (from Arduino) is not working with Galileo Gen 1.

       

      What is the way to use many serial communications in my case ?

       

      Thank for your support

       

      Léo

        • 1. Re: Multiple serial ports
          LéOSW

          I tried to understand my problem, and what I can see is that both GPS and Galileo are writing on the RX pin of the Intel Galileo Gen 1 board.

           

          Here is an example of my problem, before connecting GPS TX pin to Galileo RX pin, I can read data on the GPS output (I'm using USB to serial converter), after connecting pins together (using switch), I can't read anything.

          Is that a known bug ?

           

          GalileoGPS.png

          • 2. Re: Multiple serial ports
            DiegoV_Intel

            Hi LéOSW,

             

            Yes, unfortunately the SoftwareSerial library is not supported by the Gen1. However, if you want to use several Tx/Rx interfaces an idea comes to my mind.

             

            This is just an idea and I haven't tested it, but you can try using an analog mux similar to this one: http://www.ti.com/lit/ds/symlink/sn74lv4052a.pdf. So you would be able to manage more than 1 Tx/Rx pair with the same Serial interface that Galileo has.

             

            Now, regarding your second post, how are you connecting the GPS device to your board? And why did you say both, GPS and Galileo, are writing on the RX pin?

             

            Make sure the settings of the serial interface are correct: the baud rate, the stop bit, the parity bit, etc.

             

            Regards,

            Diego.

            • 3. Re: Multiple serial ports
              Ahmed-ElTahan

              Hi diegoV_intel

              have you successfully tried the analog mux to use more serial ports?

              • 4. Re: Multiple serial ports
                DiegoV_Intel

                Hi Ahmed-ElTahan,

                 

                No, I haven't. That was just an idea that I suggested in order to add additional serial ports. It should work, however I don't have any analog mux to test it.

                 

                Regards,

                Diego