monk-dot / killerbee

Automatically exported from code.google.com/p/killerbee
0 stars 1 forks source link

RZUSBStick: Receiving only 100 byte of data #31

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Calling function pnext() of file dev_rzusbstick.py
2. Receiving more than 100 byte

What is the expected output? What do you see instead?
Only 100 byte of a packet (> 100 byte) are received

What version of the product are you using?
[ ] KillerBee 1.0 (from TAR file)
[X] KillerBee beta (from SVN checkout) Revision # 99
[ ] Other:

On what operating system?
Ubuntu 14.04

With what Python version? (python -V)
2.7.6

Is scapy-com installed?
yes

Please provide any additional information below.
In line 445 in the source file dev_rzusbstick.py the reading command of pyUSB 
is called as folows (here: timeout = 100):

pdata = self.handle.bulkRead(RZ_USB_PACKET_EP, timeout)

The function definition of bulkRead() is defined at 
(https://github.com/walac/pyusb/blob/master/usb/legacy.py):

bulkRead(self, endpoint, size, timeout = 100):

Because of the default value for the timeout argument the call of bulkRead() in 
dev_rzusbstick.py is

bulkRead(RZ_USB_PACKET_EP, 100, 100)

So, the maximum buffer is 100 byte

Original issue reported on code.google.com by Norman.G...@googlemail.com on 6 Mar 2015 at 12:27