[ help ] [ MC7430 ] USB ioctl open error: Permission denied

MC73, MC74, EM74, MC809x, MC9090

[ help ] [ MC7430 ] USB ioctl open error: Permission denied

Postby dayananda » Wed May 10, 2017 9:24 am

Hi,

I have been trying to get MC7430 interface with the my x86_64 laptop on Ubuntu 16.04.
I followed the guidelines as per "Linux QMI SDK Application Developer Guide" - https://source.sierrawireless.com/resources/airprime/software/linux-qmi-sdk-application-developer-guide-1,-d-,26/
I removed the interfering modules and installed GobiNet and GobiSerial just fine.

I am trying the SampleAppication from the Full API SDK https://source.sierrawireless.com/resources/airprime/software/linux-qmi-sdk-software-04,-d-,00,-d-,06/
No matter what application I try I the SDK is unable to enumerate the device and get its parameters (Device file and key)
I get the error from the application
~/Code/SierraSDK/SLQS04.00.06.bin/SampleApps/Connection_Manager/bin$ ./connectionmgrhostx86_64 ../../../build/bin/hostx86_64/slqssd
k 0

Unable to find device..


The syslog has following to say
tailf /var/log/syslog | grep SWI0
May 10 14:31:45 dayaa-HP-ProBook-6470b SWI0 SDK Process: QM:QMI_GET_MEID_IOCTL failed
May 10 14:31:45 dayaa-HP-ProBook-6470b SWI0 SDK Process: QM-DCS:SDK<-DCS Resp: ch/Msgid/Msglen/Svctype: 0/0000/0/248
May 10 14:31:46 dayaa-HP-ProBook-6470b SWI0 SDK Process: QM:qmqmireq/1513: Request: QMI Instance 0
May 10 14:31:46 dayaa-HP-ProBook-6470b SWI0 SDK Process: QM:SDK->Mdm: request received : ipcch/svctype/xactionlen/clientnum: 0/00f8/4/12
May 10 14:31:46 dayaa-HP-ProBook-6470b SWI0 SDK Process: QM:SDK->Mdm: request validated : ipcch/svctype/xactionlen/clientnum: 0/00f8/4/12
May 10 14:31:46 dayaa-HP-ProBook-6470b SWI0 SDK Process: QM:SDK->DCS: Request Sent : ipcch/xactionid: 0/0009
May 10 14:31:46 dayaa-HP-ProBook-6470b SWI0 SDK Process: QM-DCS:SDK->DCS: Request Received : ipcch/xactionid: 0/0009
May 10 14:31:46 dayaa-HP-ProBook-6470b SWI0 SDK Process: USB ioctl open error: Permission denied
May 10 14:31:46 dayaa-HP-ProBook-6470b SWI0 SDK Process: QM:QMI_GET_MEID_IOCTL failed



ls -ltr /dev/ttyUSB*
crw-rw---- 1 root dialout 188, 1 May 10 14:44 /dev/ttyUSB1
crw-rw---- 1 root dialout 188, 2 May 10 14:44 /dev/ttyUSB2
crw-rw---- 1 root dialout 188, 0 May 10 14:45 /dev/ttyUSB0


ls -ltr /dev/qcqmi*
crw------- 1 root root 243, 0 May 10 14:45 /dev/qcqmi0
crw------- 1 root root 242, 0 May 10 14:45 /dev/qcqmi1


I have added myself to the usergroup dialout, thinking it's the issue of the permissions, but it seems that is not enough.
Could you guys please help me out in this regard ?
dayananda
 
Posts: 2
Joined: Mon May 08, 2017 11:14 pm
Has thanked: 0 time
Have thanks: 0 time

Re: [ help ] [ MC7430 ] USB ioctl open error: Permission den

Postby mlw » Wed May 17, 2017 8:27 am

Hi,

It is the permissions that the current log in has with regards the /dev/qcqmi interfaces. You can either login as root (this might not be enough or send the below command to give yourself full rights.

Code: Select all
sudo chmod 777 /dev/qcqmi*


Regards

Matt
mlw
 
Posts: 562
Joined: Thu Jun 17, 2010 3:59 am
Has thanked: 0 time
Have thanks: 56 times

Re: [ help ] [ MC7430 ] USB ioctl open error: Permission den

Postby dayananda » Wed May 17, 2017 8:42 am

Hey Matt,

Thanks. I fixed the permission issue. I have observed another behaviour worth sharing here.
This is when we reconnect the device over USB. (Plug out the device and plug it back in). I believe the SDK threads are already initialised and and they take a while before recognising the device when it's plugged back in. Somehow I think the SDK threads have a polling procedure to refresh their device contexts. Or there is some delay in the system that's not letting SDK threads to recognise the device in it's new context early enough. I get the message "Unable to find device.." for a while even though the device files have been created and I can AT into the serial terminal, and then device gets recognised.
dayananda
 
Posts: 2
Joined: Mon May 08, 2017 11:14 pm
Has thanked: 0 time
Have thanks: 0 time

Re: [ help ] [ MC7430 ] USB ioctl open error: Permission den

Postby mlw » Wed May 17, 2017 9:07 am

So just to be clear on the procedure.
1. Unit plugged in working with the SDK no isses.
2. Unplug the unit, /dev/ttyUSB and /dev/qcqmi interfaces disappear from the system.
3. When the interfaces disappear you see what on your system? There are API's designed to notify you of the loss of a device.
4. Plug the unit back in, /dev/ttyUSB and /dev/qcqmi interfaces re enumerate back to the device numbers they previously had.
5. At this point what are you seeing expecting the SDK to do?

Regards

Matt
mlw
 
Posts: 562
Joined: Thu Jun 17, 2010 3:59 am
Has thanked: 0 time
Have thanks: 56 times


Return to MC Series + EM74

Who is online

Users browsing this forum: No registered users and 2 guests