Re: Downloading tracks from gps via usb

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



You should use Reply-To-All so that your email goes to the mailing list 
as well as to me.

On Thu, 12 May 2016, Stephen Furner wrote:

> Alan,
> 
> The following is an excerpt from strace output for gebabbel when
> asking it to call the file from the gps. It has the relative time
> stamp on each line. The full output text file for the trace of a
> request to download from is about 500k.

The portion you extracted doesn't seem to be relevant to your problem.

> I currently believe this is a permissions issue from the way ubuntu
> implements root privileges. Running babel from the console window as a
> sudo line command I can get it to dowload the traks from the GPS.
> However, using the graphical user interfaces of gebabbel or viking I
> just get error messages.

What are the permissions for /dev/bus/usb/003/003 (substitute the 
appropriate values for the bus and device numbers)?

> Sadly moving from text based line commands to a GUI has not in this
> case improved ease of use on this installation.

You may get better help from an Ubuntu support forum or mailing list.

Alan Stern

> Stephen
> 
>     0.000000 restart_syscall(<... resuming interrupted call ...>) = 1
>      1.163207 recvmsg(5, {msg_name(0)=NULL, msg_iov(1)=[{"\241
> \270\2\3\0\240\0033\1\0\0@\1\0\0F\34\0\0\3\0\240\3\0\0\0\0\0\0\0\0",
> 4096}], msg_controllen=0, msg_flags=0}, 0) = 32
>      0.000319 recvmsg(5, 0x7ffe93f31120, 0) = -1 EAGAIN (Resource
> temporarily unavailable)
>      0.000331 poll([{fd=5, events=POLLIN|POLLOUT}], 1, 4294967295) = 1
> ([{fd=5, revents=POLLOUT}])
>      0.000317 writev(5, [{"\31\0\v\0~\0\0\0\0\0\30\0!
> \0\0~\0\0\0003\1\0\0@\1\0\0F\34\0\0"..., 44}, {NULL, 0}, {"", 0}], 3)
> = 44
>      0.000297 recvmsg(5, 0x7ffe93f30f30, 0) = -1 EAGAIN (Resource
> temporarily unavailable)
>      0.000233 recvmsg(5, 0x7ffe93f31100, 0) = -1 EAGAIN (Resource
> temporarily unavailable)
>      0.000204 recvmsg(7, 0x7ffe93f310f0, 0) = -1 EAGAIN (Resource
> temporarily unavailable)
>      0.000187 poll([{fd=0, events=POLLIN}, {fd=6, events=POLLIN},
> {fd=7, events=POLLIN}, {fd=14, events=POLLIN}, {fd=5, events=POLLIN},
> {fd=15, events=POLLIN}], 6, 2155) = 0 (Timeout)
>      2.157916 recvmsg(5, 0x7ffe93f31120, 0) = -1 EAGAIN (Resource
> temporarily unavailable)
>      0.000324 recvmsg(5, 0x7ffe93f31100, 0) = -1 EAGAIN (Resource
> temporarily unavailable)
>      0.000204 recvmsg(7, 0x7ffe93f310f0, 0) = -1 EAGAIN (Resource
> temporarily unavailable)
>      0.000184 poll([{fd=0, events=POLLIN}, {fd=6, events=POLLIN},
> {fd=7, events=POLLIN}, {fd=14, events=POLLIN}, {fd=5, events=POLLIN},
> {fd=15, events=POLLIN}], 6, 9999) = 1 ([{fd=5, revents=POLLIN}])
>      3.237960 recvmsg(5, {msg_name(0)=NULL, msg_iov(1)=[{"\241
> \271\2\3\0\240\0033\1\0\0@\1\0\0G\34\0\0\3\0\240\3\0\0\0\0\0\0\0\0",
> 4096}], msg_controllen=0, msg_flags=0}, 0) = 32
>      0.000433 recvmsg(5, 0x7ffe93f31120, 0) = -1 EAGAIN (Resource
> temporarily unavailable)
>      0.000354 poll([{fd=5, events=POLLIN|POLLOUT}], 1, 4294967295) = 1
> ([{fd=5, revents=POLLOUT}])
>      0.000411 writev(5, [{"\31\0\v\0~\0\0\0\0\0\30\0!
> \0\0~\0\0\0003\1\0\0@\1\0\0G\34\0\0"..., 44}, {NULL, 0}, {"", 0}], 3)
> = 44
>      0.000418 recvmsg(5, 0x7ffe93f30f30, 0) = -1 EAGAIN (Resource
> temporarily unavailable)
>      0.000342 recvmsg(5, 0x7ffe93f31100, 0) = -1 EAGAIN (Resource
> temporarily unavailable)
>      0.000415 recvmsg(7, 0x7ffe93f310f0, 0) = -1 EAGAIN (Resource
> temporarily unavailable)
>      0.000348 poll([{fd=0, events=POLLIN}, {fd=6, events=POLLIN},
> {fd=7, events=POLLIN}, {fd=14, events=POLLIN}, {fd=5, events=POLLIN},
> {fd=15, events=POLLIN}], 6, 6759) = 1 ([{fd=5, revents=POLLIN}])
>      1.964307 recvmsg(5, {msg_name(0)=NULL,
> msg_iov(1)=[{"\7\3\272\2\201D>\2~\0\0\0\3\0\240\3\0\0\0\0\31\3\323\1\211\2<\1\0\0\0\2"...,
> 4096}], msg_controllen=0, msg_flags=0}, 0) = 96
>      0.000271 recvmsg(5, 0x7ffe93f31120, 0) = -1 EAGAIN (Resource
> temporarily unavailable)
>      0.000234 poll([{fd=5, events=POLLIN|POLLOUT}], 1, 4294967295) = 1
> ([{fd=5, revents=POLLOUT}])
>      0.000219 writev(5, [{"&\0\2\0~\0\0\0", 8}, {NULL, 0}, {"", 0}], 3) = 8
>      0.000246 poll([{fd=5, events=POLLIN}], 1, 4294967295) = 1
> ([{fd=5, revents=POLLIN}])
>      0.001168 recvmsg(5, {msg_name(0)=NULL,
> msg_iov(1)=[{"\1\1\273\2\0\0\0\0~\0\0\0\16c\302\1\31\3\323\1\31\3\323\1\0\0\0\0\0\0\0\0",
> 4096}], msg_controllen=0, msg_flags=0}, 0) = 32
>      0.000245 recvmsg(5, 0x7ffe93f30b10, 0) = -1 EAGAIN (Resource
> temporarily unavailable)
> 
> . . .
> 
> On Thu, May 12, 2016 at 9:06 PM, Stephen Furner
> <stephen.furner@xxxxxxxxxxxxxx> wrote:
> > On Thu, May 12, 2016 at 6:53 PM, Alan Stern <stern@xxxxxxxxxxxxxxxxxxx> wrote:
> >> On Wed, 11 May 2016, Stephen Furner wrote:
> >>
> >>> The kernel is: 3.19.0-59-generic
> >>>
> >>> Listing the USB devices I see:
> >>>
> >>> stephen@stephen-N150P:~$ lsusb
> >>> Bus 001 Device 004: ID 0ac8:c33f Z-Star Microelectronics Corp. Webcam
> >>> Bus 001 Device 003: ID 0781:5567 SanDisk Corp. Cruzer Blade
> >>> Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> >>> Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> >>> Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> >>> Bus 003 Device 002: ID 0a5c:219c Broadcom Corp.
> >>> Bus 003 Device 003: ID 091e:0003 Garmin International GPS (various models)
> >>> Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> >>> Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> >>>
> >>> The catalogue output from the usb debug is:
> >>
> >> ...
> >>> T: Bus=03 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 3 Spd=12 MxCh= 0
> >>> D: Ver= 1.10 Cls=ff(vend.) Sub=ff Prot=ff MxPS= 8 #Cfgs= 1
> >>> P: Vendor=091e ProdID=0003 Rev= 0.01
> >>> C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 0mA
> >>> I:* If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
> >>> E: Ad=81(I) Atr=03(Int.) MxPS= 64 Ivl=1ms
> >>> E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
> >>> E: Ad=83(I) Atr=02(Bulk) MxPS= 8 Ivl=0ms
> >> ...
> >>
> >> That doesn't say very much, but at least it proves that no other driver
> >> has claimed the interface.
> >>
> >> The next thing you can try is to run the Gebabbel program under strace
> >> and send the output to a file.  That should tell us exactly what
> >> Gebabbel is trying unsuccessfully to do.
> >>
> >> Alan Stern
> >>
> 

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux