• AVR Freaks

Hot!MPlab X under Linux: DMCI not showing my serial ports

Author
zuerchan
New Member
  • Total Posts : 8
  • Reward points : 0
  • Joined: 2018/03/28 09:34:59
  • Location: 0
  • Status: offline
2019/05/23 08:12:55 (permalink)
0

MPlab X under Linux: DMCI not showing my serial ports

I can't get the DMCI UI to show my serial port (USB-serial converter: /dev/ttyUSB0). The device works fine with minicom, it's just not being listed.
 
Can I add this device to some config file or how do I have to name it to be found and listed? Thanks!
#1

9 Replies Related Threads

    zuerchan
    New Member
    • Total Posts : 8
    • Reward points : 0
    • Joined: 2018/03/28 09:34:59
    • Location: 0
    • Status: offline
    Re: MPlab X under Linux: DMCI not showing my serial ports 2019/08/08 04:54:22 (permalink)
    0
    It's been two month.... should I assume it's simply not supported?
    #2
    Jim Nickerson
    User 452
    • Total Posts : 6330
    • Reward points : 0
    • Joined: 2003/11/07 12:35:10
    • Location: San Diego, CA
    • Status: online
    Re: MPlab X under Linux: DMCI not showing my serial ports 2019/08/08 07:41:28 (permalink)
    0
    Have you asked Microchip Support ?
    #3
    zuerchan
    New Member
    • Total Posts : 8
    • Reward points : 0
    • Joined: 2018/03/28 09:34:59
    • Location: 0
    • Status: offline
    Re: MPlab X under Linux: DMCI not showing my serial ports 2019/08/19 06:32:44 (permalink)
    0
    No I did not. I for some reason assumed that this forum would also be watched by the official Microchip Support team.
    My bad, I do apologize. I'll contact support and post the response here. 
    #4
    matta
    Senior Member
    • Total Posts : 137
    • Reward points : 0
    • Joined: 2006/11/15 14:05:02
    • Location: 0
    • Status: offline
    Re: MPlab X under Linux: DMCI not showing my serial ports 2019/08/28 12:59:07 (permalink)
    0
    I have this problem also, it's a bummer
    #5
    zuerchan
    New Member
    • Total Posts : 8
    • Reward points : 0
    • Joined: 2018/03/28 09:34:59
    • Location: 0
    • Status: offline
    Re: MPlab X under Linux: DMCI not showing my serial ports 2019/08/29 03:49:30 (permalink)
    0
    I contacted support a couple of days ago and hopefully will get an answer shortly.
    #6
    zuerchan
    New Member
    • Total Posts : 8
    • Reward points : 0
    • Joined: 2018/03/28 09:34:59
    • Location: 0
    • Status: offline
    Re: MPlab X under Linux: DMCI not showing my serial ports 2019/08/29 07:12:47 (permalink)
    0
    I think I figured it out.. or at least one way of solving this issue.
     
    Just rename the device node to ttyS<number>, (e.g. ttyS0, ttyS2). This seems to be the filter, ttyUSB* and alike will not be listed. 
     
    If the support team responds with an easier solution than adding udev rules I'll post it here.
    #7
    matta
    Senior Member
    • Total Posts : 137
    • Reward points : 0
    • Joined: 2006/11/15 14:05:02
    • Location: 0
    • Status: offline
    Re: MPlab X under Linux: DMCI not showing my serial ports 2019/08/29 08:43:00 (permalink)
    0
    You are right, just mv /dev/ttyAMC0 /dev/ttyS0 makes it show up. DMCI still not working yet but that's probably a me problem
    #8
    zuerchan
    New Member
    • Total Posts : 8
    • Reward points : 0
    • Joined: 2018/03/28 09:34:59
    • Location: 0
    • Status: offline
    Re: MPlab X under Linux: DMCI not showing my serial ports 2019/08/29 09:07:27 (permalink)
    0
    I'd use a symbolic link and not move the device node around... but both solutions won't survive a reboot if udev is in use. That would require a change in the udev rules.
     
    DMCI works for me. Some of the controls feel a bit sluggish compared to windows, but it works.
    #9
    zuerchan
    New Member
    • Total Posts : 8
    • Reward points : 0
    • Joined: 2018/03/28 09:34:59
    • Location: 0
    • Status: offline
    Re: MPlab X under Linux: DMCI not showing my serial ports 2019/10/17 02:25:18 (permalink)
    0
    I got a response from the support team, there's no better solution for this than creating a ttyS* device node yourself.
     
    Here's the official response:
     
    "When a user plugs in a USB-to-serial converter in Linux, they must give that device permissions for access. When the /dev/ttyUSB0 shows up in the /dev subdirectory, the user must change permissions to allow access (sudo chmod 666 /dev/ttyUSB0). Since converters can come up with almost any name, then it is the responsibility of the user on Linux to change the permissions. We cannot give blanket access to all the tty items since some do not exist as hardware and we don't want to be randomly touching those that may exist (not knowing to what they may be connected)."
     
     
    #10
    Jump to:
    © 2019 APG vNext Commercial Version 4.5