<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 3 May 2017 at 12:47, Aleksander Morgado <span dir="ltr"><<a href="mailto:aleksander@aleksander.es" target="_blank">aleksander@aleksander.es</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">On Wed, May 3, 2017 at 12:10 PM, Carlo Lobrano <<a href="mailto:c.lobrano@gmail.com">c.lobrano@gmail.com</a>> wrote:<br>
>> When using the "udev" backend, which you are, the property isn't<br>
>> "loaded" or "stored" anywhere in our code. We directly look for the<br>
>> property in the GUdevDevice underneath.<br>
>><br>
>> Could you run udevadm info in the port to see if ID_USB_INTERFACE_NUM is<br>
>> set?<br>
><br>
> Oh, I see now.<br>
> The property is actually unset. Is there anything else I can do to have this<br>
> information?<br>
><br>
> $ udevadm info /dev/ttyACM0<br>
> P:<br>
> /devices/pci0000:00/0000:00:<wbr>14.0/usb3/3-3/3-3.2/3-3.2.4/3-<wbr><a href="http://3.2.4.3/3-3.2.4.3:1.0/tty/">3.2.4.3/3-3.2.4.3:1.0/tty/</a><wbr>ttyACM0<br>
> N: ttyACM0<br>
> E: DEVNAME=/dev/ttyACM0<br>
> E:<br>
> DEVPATH=/devices/pci0000:00/<wbr>0000:00:14.0/usb3/3-3/3-3.2/3-<wbr>3.2.4/3-3.2.4.3/3-3.2.4.3:1.0/<wbr>tty/ttyACM0<br>
> E: ID_MM_CANDIDATE=1<br>
> E: ID_MM_TELIT_PORTS_TAGGED=1<br>
> E: ID_MM_TELIT_TAGGED=1<br>
> E: MAJOR=166<br>
> E: MINOR=0<br>
> E: SUBSYSTEM=tty<br>
> E: TAGS=:systemd:<br>
> E: USEC_INITIALIZED=75726372964<br>
<br>
</span>Do you have a /lib/udev/rules.d/60-serial.<wbr>rules in your system that<br>
sets ID_USB_INTERFACE_NUM? Maybe we shouldn't rely on having that?<br>
<span class="gmail-HOEnZb"><font color="#888888"><br></font></span></blockquote><div><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">​No, I do not have that 60-serial.rules file, but I did obtained the result I wanted adding the following rule to 77-mm-telit-port-types.rules</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">SUBSYSTEMS=="usb", ATTRS{bInterfaceNumber}=="?*", ENV{ID_USB_INTERFACE_NUM}="$attr{bInterfaceNumber}"</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-HOEnZb"><font color="#888888">--<br>
Aleksander<br>
<a href="https://aleksander.es" rel="noreferrer" target="_blank">https://aleksander.es</a><br>
</font></span></blockquote></div><br></div></div>