Hello. On Mon, 2013-03-25 at 10:30, Alexander Aring wrote: > On Mon, Mar 25, 2013 at 03:31:04AM -0300, Werner Almesberger wrote: > > Alexander Aring wrote: > > > > Hmm, but your driver still has the fundamental problem of tx/rx > > doing all these USB transfers that get paced at one per USB frame, > > i.e., 1 ms. Are you sure you want to continue along that path ? > > > Yes... I tested with a change firmware to tx/rx 16 bit values. I put > tx to wValue/wIndex and receive in the receive buffer. > > But it is too slow, I think. What about to add a new bulk transfer and > do something like linux. > > This bulk transfer uses a struct with a tx and rx buffer to send and > receive at the same time. On the linux side we decode tx and rx buffer > and put it into linux rx and tx spi buf.
Did you read the other mails Werner and I exchanged? The basic idea Werner has for his new driver is that we would now longer try to re-use the at86rf230 driver but but the state machine handling for it directly into the fimrware. This will reduce the number of urbs _a lot_ that need to be transfered. Shoving every SPI command into an USB urb sending it of and waiting for the answer with the USB delay makes it just painfully slow. The new interface between firmware and driver would now take a complete frame and does all needed stuff to send it off. On the receiving side it would provide the driver with the full frame once. I would argue here that you sit together, via mail I think :), with Werner and see if you could help him with his new driver. Doing the changes to the old one Werner and I wrote is not the right way to bring it up to speed. regards Stefan Schmidt ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar _______________________________________________ Linux-zigbee-devel mailing list Linux-zigbee-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel