Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    LInux (Debian) serial /dev/ttyUSB0 connect to pyboard not working

    Scheduled Pinned Locked Moved Expansion Board
    linuxscreenusbconnect
    6 Posts 2 Posters 3.3k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C Offline
      Colateral
      last edited by

      Hello,

      We would like to perfrom automatic testing so we plugged many pyboards to usb.
      It founds the device at /dev/ttyUSB0

      However, connecting with:

      screen /dev/ttyUSB0 9600,cs8   
      

      is not working.
      Does anybody succeed to connect using normal linux?

      Thank you

      robert-hhR 2 Replies Last reply Reply Quote 0
      • robert-hhR Offline
        robert-hh @Colateral
        last edited by

        @Colateral The proper access rights may be missing. You have to be in the dialout group. To get there, run the command:
        sudo adduser <your_user_id> dialout
        You have to logout and login to make that effective. As a first test, whether this is the reason, try:
        sudo screen /dev/ttyUSB0 9600,cs8

        1 Reply Last reply Reply Quote 0
        • C Offline
          Colateral
          last edited by

          @robert-hh said in LInux (Debian) serial /dev/ttyUSB0 connect to pyboard not working:

          sudo screen /dev/ttyUSB0 9600,cs8

          Thanks. We are connected as root... and there is also dialup configured.

          After we 'screen' is executed, the window is going black and no output no input (no python prompter if you press enter) . If we unplug the usb cable, screen is terminated coming back to linux command line.

          It seems that is related with communication.

          1 Reply Last reply Reply Quote 0
          • robert-hhR Offline
            robert-hh @Colateral
            last edited by

            @Colateral Sorry. Speed is 115200, not 9600

            C 1 Reply Last reply Reply Quote 0
            • C Offline
              Colateral
              last edited by

              The driver seems to be OK

                          root@srv:~# lsusb -t
                          /:  Bus 08.Port 1: Dev 1, Class=root_hub, Driver=sunxi-ohci/1p, 12M
                          /:  Bus 07.Port 1: Dev 1, Class=root_hub, Driver=sunxi-ohci/1p, 12M
                              |__ Port 1: Dev 3, If 0, Class=Vendor Specific Class, Driver=ftdi_sio, 12M
              
                          root@srv:~# dmesg | grep tty
                          [    0.000000] Kernel command line: root=UUID=6b997d52-cff8-4d2f-8f7e-f7f294f837ee rootwait rootfstype=ext4 console=tty1 console=ttyS0,115200 hdmi.audio=EDID:0 disp.screen0_output_mode=1920x1080p60 panic=10 consoleblank=0 loglevel=1 ubootpart=757afe49-01 ubootsource=mmc   sunxi_ve_mem_reserve=0 sunxi_g2d_mem_reserve=0 sunxi_fb_mem_reserve=16 cgroup_enable=memory swapaccount=1
                          [    0.000000] console [tty1] enabled
                          [    0.515005] uart3: ttyS3 at MMIO 0x1c28c00 (irq = 35) is a SUNXI
                          [    4.602066] systemd[1]: Expecting device dev-ttyS0.device...
                          [    5.340647] systemd[1]: Starting system-getty.slice.
                          [    5.341619] systemd[1]: Created slice system-getty.slice.
                          [    5.341742] systemd[1]: Starting system-serial\x2dgetty.slice.
                          [    5.342527] systemd[1]: Created slice system-serial\x2dgetty.slice.
                          [    7.603200] usb 7-1: FTDI USB Serial Device converter now attached to ttyUSB0
                          [  582.778334] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0
                          [  599.212603] usb 7-1: FTDI USB Serial Device converter now attached to ttyUSB0
              
              1 Reply Last reply Reply Quote 0
              • C Offline
                Colateral @robert-hh
                last edited by

                @robert-hh Thanks. it is working with 115200.

                1 Reply Last reply Reply Quote 0

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                • 1 / 1
                • First post
                  Last post

                Pycom on Twitter

                Pycom