Jump to content

Hick-ups with SCP


Sailor

Recommended Posts

If I copy (2 MB+) files via SCP I encounter time-outs where the transfer stalls.

I use WinSCP to transfer the files from the sd card in the pineapple to my local machine but I encounter the same by using scp on the CLI.

The transfer freezes each 10-15 seconds and immediately before it resumes (taking another 10-15 seconds) I see the following in the pineapples log:

Pineapple kern.info kernel: [75367.090000] usb 1-1.4: reset high-speed USB device number 4 using ehci-platform

the output from lsusb is:

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub 
Bus 001 Device 002: ID 058f:6254 Alcor Micro Corp. USB Hub 
Bus 001 Device 003: ID 0bda:8187 Realtek Semiconductor Corp. RTL8187 Wireless Adapter 
Bus 001 Device 004: ID 058f:6366 Alcor Micro Corp. Multi Flash Reader

I guess this might be a problem with the sd card or reader. I formatted the delivered sd card from the web interface.

Did anyone encounter this issue and/or has a solution for this?

Edited by Sailor
Link to comment
Share on other sites

Use rsync with the '-P' option. It will allow you to resume the transfer if the connection fails instead of having to start over from the beginning each time.

WinSCP does this for me, but still it kind of worries me that this happens all the time...

Link to comment
Share on other sites

Tried with a class 10 card. The problem still exists, getting these 'reset high-speed USB device number 4 using ehci-platform' all the time :(

Could this indicate a hardware problem?

Doubtful. There's not much that isn't solved with software. I'm not sure what's causing it as I've never tested in this manner. Can you try scp'ing the file from the other direction? Meaning ssh into the pineapple then scp the file from your host to the SD card and report back? Also what filesystem are you using? Ext4?

Link to comment
Share on other sites

Doubtful. There's not much that isn't solved with software. I'm not sure what's causing it as I've never tested in this manner. Can you try scp'ing the file from the other direction? Meaning ssh into the pineapple then scp the file from your host to the SD card and report back? Also what filesystem are you using? Ext4?

I did some tests with a 70M file:

- Copy from remote host to pineapple: 2 times the reset error

- Copy from pineapple to remote host: 4 times the reset error

The class 10 card has less errors then the card that came with the MarkV (which eventually jumped into read-only mode).

I connect to the pineapple via wlan1 (connects to my home network in client mode). I will do some test later connecting via the ethernet port.

The card has a ext4 filesystem.

Link to comment
Share on other sites

  • 4 months later...

Hey Sailor, what happened here? I have the exact same problem, and was looking through the forum to see if anyone else has.

One thing I see in the syslog is this:

Mar 10 19:30:21 Pineapple kern.info kernel: [ 1194.160000] usb 1-1.4: reset high-speed USB device number 4 using ehci-platform
Mar 10 19:29:49 Pineapple kern.info kernel: [ 1162.160000] usb 1-1.4: reset high-speed USB device number 4 using ehci-platform
Mar 10 19:29:17 Pineapple kern.info kernel: [ 1130.160000] usb 1-1.4: reset high-speed USB device number 4 using ehci-platform
Mar 10 19:28:45 Pineapple kern.info kernel: [ 1098.160000] usb 1-1.4: reset high-speed USB device number 4 using ehci-platform
Mar 10 19:28:13 Pineapple kern.info kernel: [ 1066.160000] usb 1-1.4: reset high-speed USB device number 4 using ehci-platform
Mar 10 19:27:41 Pineapple kern.info kernel: [ 1034.080000] usb 1-1.4: reset high-speed USB device number 4 using ehci-platform
Mar 10 19:27:08 Pineapple kern.info kernel: [ 1001.120000] usb 1-1.4: reset high-speed USB device number 4 using ehci-platform
Mar 10 19:26:36 Pineapple kern.info kernel: [  969.120000] usb 1-1.4: reset high-speed USB device number 4 using ehci-platform
Mar 10 19:26:04 Pineapple kern.info kernel: [  937.120000] usb 1-1.4: reset high-speed USB device number 4 using ehci-platform
Mar 10 19:25:32 Pineapple kern.info kernel: [  905.120000] usb 1-1.4: reset high-speed USB device number 4 using ehci-platform
Mar 10 19:25:00 Pineapple kern.info kernel: [  873.080000] usb 1-1.4: reset high-speed USB device number 4 using ehci-platform
Mar 10 19:24:27 Pineapple kern.info kernel: [  840.160000] usb 1-1.4: reset high-speed USB device number 4 using ehci-platform
Mar 10 19:23:55 Pineapple kern.info kernel: [  808.160000] usb 1-1.4: reset high-speed USB device number 4 using ehci-platform
Mar 10 19:23:23 Pineapple kern.info kernel: [  776.160000] usb 1-1.4: reset high-speed USB device number 4 using ehci-platform
Mar 10 19:22:51 Pineapple kern.info kernel: [  744.100000] usb 1-1.4: reset high-speed USB device number 4 using ehci-platform

My transfer has stalled and these lines spam the syslog.

Edit: Here is my lsusb -v

root@Pineapple:~# lsusb -v



Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 9 Hub
bDeviceSubClass 0 Unused
bDeviceProtocol 1 Single TT
bMaxPacketSize0 64
idVendor 0x1d6b Linux Foundation
idProduct 0x0002 2.0 root hub
bcdDevice 3.03
iManufacturer 3 Linux 3.3.8 ehci_hcd
iProduct 2 Generic Platform EHCI Controller
iSerial 1 ehci-platform
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 25
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xe0
Self Powered
Remote Wakeup
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0 Full speed (or root) hub
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0004 1x 4 bytes
bInterval 12
Hub Descriptor:
bLength 9
bDescriptorType 41
nNbrPorts 1
wHubCharacteristic 0x0009
Per-port power switching
Per-port overcurrent protection
TT think time 8 FS bits
bPwrOn2PwrGood 10 * 2 milli seconds
bHubContrCurrent 0 milli Ampere
DeviceRemovable 0x00
PortPwrCtrlMask 0xff
Hub Port Status:
Port 1: 0000.0503 highspeed power enable connect
Device Status: 0x0001
Self Powered

Bus 001 Device 002: ID 058f:6254 Alcor Micro Corp. USB Hub
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 9 Hub
bDeviceSubClass 0 Unused
bDeviceProtocol 1 Single TT
bMaxPacketSize0 64
idVendor 0x058f Alcor Micro Corp.
idProduct 0x6254 USB Hub
bcdDevice 1.00
iManufacturer 0
iProduct 1 USB2.0Hub
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 25
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xe0
Self Powered
Remote Wakeup
MaxPower 100mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0 Full speed (or root) hub
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0001 1x 1 bytes
bInterval 12
Hub Descriptor:
bLength 9
bDescriptorType 41
nNbrPorts 4
wHubCharacteristic 0x0080
Ganged power switching
Ganged overcurrent protection
TT think time 8 FS bits
Port indicators
bPwrOn2PwrGood 50 * 2 milli seconds
bHubContrCurrent 100 milli Ampere
DeviceRemovable 0x00
PortPwrCtrlMask 0xff
Hub Port Status:
Port 1: 0000.0503 highspeed power enable connect
Port 2: 0000.0100 power
Port 3: 0000.0100 power
Port 4: 0000.0503 highspeed power enable connect
Device Qualifier (for other device speed):
bLength 10
bDescriptorType 6
bcdUSB 2.00
bDeviceClass 9 Hub
bDeviceSubClass 0 Unused
bDeviceProtocol 0 Full speed (or root) hub
bMaxPacketSize0 64
bNumConfigurations 1
Device Status: 0x0001
Self Powered

Bus 001 Device 003: ID 0bda:8187 Realtek Semiconductor Corp. RTL8187 Wireless Adapter
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x0bda Realtek Semiconductor Corp.
idProduct 0x8187 RTL8187 Wireless Adapter
bcdDevice 1.00
iManufacturer 1 Manufacturer_Realtek_RTL8187_
iProduct 2 RTL8187_Wireless
iSerial 3 001337XXXXXX
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 39
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 4 Wireless Network Card
bmAttributes 0x80
(Bus Powered)
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 3
bInterfaceClass 0 (Defined at Interface level)
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 5 Bulk-IN,Bulk-OUT,Bulk-OUT
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x03 EP 3 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Device Qualifier (for other device speed):
bLength 10
bDescriptorType 6
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
bNumConfigurations 1
Device Status: 0x0000
(Bus Powered)

Bus 001 Device 004: ID 058f:6366 Alcor Micro Corp. Multi Flash Reader
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x058f Alcor Micro Corp.
idProduct 0x6366 Multi Flash Reader
bcdDevice 1.00
iManufacturer 1
iProduct 2
iSerial 3
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 32
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 100mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk-Only
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Device Status: 0x0000
(Bus Powered)

Are all these resets due to some kind of power issue? Device #4 is the flash reader the way I see it. I am using the pineapple juice.

Edit: Note the timestamps on the reset, this appears to happen every 32 seconds.

Edited by mw3demo
Link to comment
Share on other sites

Hey Sailor, what happened here? I have the exact same problem, and was looking through the forum to see if anyone else has.

I tried various things from changing SD cards to changing settings in different SCP clients but none helped. I guess there is no real solution for this and you just need to live with it, at least that is what I do.

I am curious to hear if you find a solution!

Link to comment
Share on other sites

Hey Sailor,

See my post here over on the other thread: https://forums.hak5.org/index.php?/topic/32013-pineapple-ap-is-incredibly-slowinconsistent/#entry239830

Also this changeset over at openwrt: https://dev.openwrt.org/changeset/39212

There is a large possibility I have been barking up the wrong tree, but it looks relevant. Waiting to see Darrens/Sebs thoughts, we might be lucky.

Edited by mw3demo
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...