Stéphane Goujet | 1 Dec 2006 08:50
Picon

Re: problem with usb_bulk_write

Tim Roberts a écrit :

>>> I recommend reading the USB spec. It is pretty readable.
>> I can't agree with you there. Compared to other industry
>> specs I'm familiar with (PCI, ICC), it's not an easy
>> spec. to understand. It jumps around too much between different
>> levels of detail to easily build a good understanding, and has
>> the feel of being sketchy and incomplete in places. It's not
>> the worst spec. I've every read by a long way, but nor
>> is it amongst the best.
> It's interesting to see such different views.

  So, here is still another one :-)

> I agree with Peter -- the
> USB spec is one of the most readable bus specs I have encountered.  It's
> almost impossible to use the PCI and PCI-Express specs as a reference
> source -- you have to have another document that consolidates the
> information you truly need.  The 1394 spec is little better.

  I found the PCI specification quite fine and the 1394 one absolutely
terrible. About the USB one, well, I did not read it... because of the
bad experience with the 1394 spec. So I just read the book about it, and
I had lots of difficulties to read 2 pages in a row (if people have
problems with falling asleep, I can advise them to try to read it).
  Perhaps the perception is different whether you are a native speaker
or not. And serial buses specs tend to use or create lots of
pseudo-technical words or buzzwords that have a special meaning for this
particular bus and not another one, or which will have different
meanings for different buses.
(Continue reading)

Anand S Madhusoodanan | 4 Dec 2006 09:08
Picon
Favicon

Re: problem with usb_bulk_write

   Hi,

Could I use the libftdi to talk to this board? I see that they have mentioned some chips on their site. They say they can use it for FT232BM, FT245BM and FT2232C type chips including the popular bitbang mode. The one on the board is FT232RL. Would you have any idea about this?

Please do let me know.

Regards
Anand S Madhusoodanan

Peter Stuge <stuge-libusb <at> cdy.org> wrote:

On Wed, Nov 29, 2006 at 02:07:43PM -0800, Anand S Madhusoodanan wrote:
> Vendor ID = 403
> Product ID = 6001

This product uses a FTDI 8U232AM serial<->USB converter chip.


> The output of the program is pasted above. The protocol that I am
> trying to implement is stated in the manual and works under Windows
> XP when I use the vendor's software with a Virutal COM Port.

USB communication is a lot more complex than a regular serial port.
There are at least four layers of software between the virtual serial
port and the USB cable. The protocol documented by the manual is of
no use in the context of USB.


> Please do let me know if you see that I am doing something wrong.

Use the existing kernel driver for this device. I think it's called
ftdi_sio. It will give you a serial device through which you can
speak the protocol documented in the manual.


We need to write a FAQ about this.


//Peter

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Libusb-devel mailing list
Libusb-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusb-devel

Access over 1 million songs - Yahoo! Music Unlimited.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Libusb-devel mailing list
Libusb-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusb-devel
Peter Stuge | 4 Dec 2006 09:29

Re: problem with usb_bulk_write

Hi,

On Mon, Dec 04, 2006 at 12:08:49AM -0800, Anand S Madhusoodanan wrote:
> Could I use the libftdi to talk to this board?

Sorry, I have no idea.

> I see that they have mentioned some chips on their site. They say
> they can use it for  FT232BM, FT245BM and FT2232C type chips
> including the popular bitbang mode. The one on the board is
> FT232RL. Would you have any idea about this? 

Maybe that answers the question.

I would just try using the ftdi_sio kernel module, and accessing the
device as a serial port. /dev/ttyUSB*

//Peter

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Anand S Madhusoodanan | 4 Dec 2006 23:45
Picon
Favicon

Re: problem with usb_bulk_write

Hi,

Thanks a lot for all the help. The libftdi thing did work. It uses libusb and uses the calls to talk to usb - serial devices. It did work with the chip that I had mentioned. I was able to simulate the communication protocol. I am still testing it on other things but then as of now I do have a certain degree of success. I just thought I would let you know since it uses libusb. I found the source at this site.

http://www.intra2net.com/de/produkte/opensource/ftdi/

It worked off the latest version of libusb without a problem.

This is my observations of things thus far.

Like you advised, I have started off on reading the USB specs.

Thanks a lot once again.

Regards
Anand S Madhusoodanan



Peter Stuge <stuge-libusb <at> cdy.org> wrote:

Hi,

On Mon, Dec 04, 2006 at 12:08:49AM -0800, Anand S Madhusoodanan wrote:
> Could I use the libftdi to talk to this board?

Sorry, I have no idea.


> I see that they have mentioned some chips on their site. They say
> they can use it for FT232BM, FT245BM and FT2232C type chips
> including the popular bitbang mode. The one on the board is
> FT232RL. Would you have any idea about this?

Maybe that answers the question.

I would just try using the ftdi_sio kernel module, and accessing the
device as a serial port. /dev/ttyUSB*


//Peter

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Libusb-devel mailing list
Libusb-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusb-devel

Cheap Talk? Check out Yahoo! Messenger's low PC-to-Phone call rates.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Libusb-devel mailing list
Libusb-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusb-devel
sandhya.adabala | 5 Dec 2006 14:02

File Transfer & pppd Operations with libusb

Hi All,
 
 We are using libusb to communicate with the mobiles.
 
 We could send AT commands using it,but we are unable to make kermit file Transfer & ppp-up[Point-to-Point Protocol Daemon] on the mobile using libusb.
 
 Using usb-serial driver we could easily do them by giving " /usr/local/bin/kermit -l /dev/ttyUSB0 -s filename" for file transfer and "/usr/sbin/pppd /dev/ttyUSB0" for pppd.
 
 But with libusb it is a problem since the serial devices (tty devices)  will not be created.
 
 Could any one of you tell us how to do file transfer & ppp operations on the mobile via libusb?
 
Thanks & Regards,
Sandhya
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Libusb-devel mailing list
Libusb-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusb-devel
Timo Juhani Lindfors | 5 Dec 2006 19:16
Picon
Picon
Favicon
Gravatar

Re: File Transfer & pppd Operations with libusb

Hi,

On Tue, Dec 05, 2006 at 06:32:11PM +0530, sandhya.adabala <at> wipro.com wrote:
>  Using usb-serial driver we could easily do them by giving "
[snip]
>  Could any one of you tell us how to do file transfer & ppp operations
> on the mobile via libusb?

Why do you want to use libusb and not usb-serial?

best regards,
Timo Lindfors

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Andrew Kennerly | 6 Dec 2006 03:43
Picon

usb_control_msg: invalid request - FX2

Working on a C# library to use the USB2 module from Digilent.  Using 
SnoopyPro and the test application from Digilent (TransPort) I can see 
the bRequest is 0xe4.  Unfortunately this appears to be an out of spec 
bRequest and libusb is complaining.

The exact chip on the board is Cypress CY7C68013.

Has anyone experienced this type of bRequest or know of an alternative?

-Andrew Kennerly

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
sandhya.adabala | 6 Dec 2006 06:03

Re: File Transfer & pppd Operations with libusb

Hi,
	We have customised usb-serial driver to suit our project.But if
we are upgrading the kernel version we have to again do the
modifications in the new usb-serial file.We are finding this task very
tedious.Hence we want to use libusb since we don't require to change it
even if we are upgrading our kernel.
	
	Let me know if any one of you know how to do File Transfer and
pppd operations using libusb.
Regards,
Sandhya

-----Original Message-----
From: Timo Juhani Lindfors [mailto:timo.lindfors <at> iki.fi] 
Sent: Tuesday, December 05, 2006 11:47 PM
To: Sandhya Adabala (WT01 - IP-Multimedia Carrier & Ent Networks)
Cc: libusb-devel <at> lists.sourceforge.net
Subject: Re: [Libusb-devel] File Transfer & pppd Operations with libusb

Hi,

On Tue, Dec 05, 2006 at 06:32:11PM +0530, sandhya.adabala <at> wipro.com
wrote:
>  Using usb-serial driver we could easily do them by giving "
[snip]
>  Could any one of you tell us how to do file transfer & ppp operations

> on the mobile via libusb?

Why do you want to use libusb and not usb-serial?

best regards,
Timo Lindfors

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Peter Stuge | 6 Dec 2006 09:33

Re: File Transfer & pppd Operations with libusb

Hi,

On Wed, Dec 06, 2006 at 10:33:45AM +0530, sandhya.adabala <at> wipro.com wrote:
> 	We have customised usb-serial driver to suit our project.But
> if we are upgrading the kernel version we have to again do the
> modifications in the new usb-serial file.We are finding this task
> very tedious.Hence we want to use libusb since we don't require to
> change it even if we are upgrading our kernel.

Which changes did you have to make to the usb-serial driver?

> Let me know if any one of you know how to do File Transfer and pppd
> operations using libusb.

Existing terminal applications (kermit, minicom, pppd etc.) are all
designed to communicate with the kernel serial layer via /dev/tty*.

It is not at all trivial to add a new method of communication (libusb
wrapper that you would write) to all of these projects, and IMHO it's
not the most effective use of existing code.

With usb-serial you get a /dev/tty* device for free. And since you
have verified that it works with your hardware it is the prefered
solution.

libusb might have been a good idea if you were developing your own
application that handles all communication with the device, but since
you want to use standard utilities you should use a standard device
driver.

Again - what are the changes you've needed to make to usb-serial?

Perhaps we can suggest a solution for you, and if we can't, please
ask the linux-usb-devel mailing list where you can ask the usb-serial
authors directly.

Thanks!

//Peter

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Timo Juhani Lindfors | 6 Dec 2006 11:13
Picon
Picon
Favicon
Gravatar

Re: File Transfer & pppd Operations with libusb

Hi,

On Wed, Dec 06, 2006 at 10:33:45AM +0530, sandhya.adabala <at> wipro.com wrote:
> 	We have customised usb-serial driver to suit our project.But if
> we are upgrading the kernel version we have to again do the
> modifications in the new usb-serial file.We are finding this task very
> tedious.Hence we want to use libusb since we don't require to change it
> even if we are upgrading our kernel.

Ok, that sounds like a reasonable goal. Just curious though, what kind
of customizations did you make? Support for some new hardware?

> 	Let me know if any one of you know how to do File Transfer and
> pppd operations using libusb.
> Regards,

I'm not sure where the problem is. I'd write a program that reads data
from stdin and send it with libusb to usb serial converter and then
reads replies from the converter and writes those to stdout.

When you have that kind of program you can combine it easily with PPPD
using something like

cotty -d -- pppd silent 192.168.0.1:192.168.0.2 \
         -- ./usb-serial

Check "Firewall Piercing mini-HOWTO" for more info on cotty.

best regards,
Timo Lindfors
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Libusb-devel mailing list
Libusb-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusb-devel

Gmane