monxxx | 1 Jun 2007 11:23
Picon
Favicon

Re: usb_bulk_write or usb_control_msg


Tim Roberts wrote:
> 
> monxxx wrote:
>> Bertrik Sikken, i know that but it was a third party application.. i want
>> to
>> build my own app.. basically i need this usb dku-2/ca-53 and my n70/6630
>> to
>> work with.. like in getting Phone ID/MCU Sw Version...
>>   
> 
> I don't think you understand what those packages do.  They aren't "third
> party applications".  They are open source tools and libraries that
> allow you to talk to your mobile phone without having to reinvent the
> wheel.  They've done the grunt work of mastering the exact USB commands
> and protocols, so you can just talk to the phone.
> 
> If nothing else, the source code can teach you how to communicate at the
> low levels.
> 
>> anybody have encountered the same with this?
>>   
> 
> Absolutely.  That's why gnokii and gammu were written, so that others
> did not HAVE to start over from scratch.
> 
> -- 
> Tim Roberts, timr <at> probo.com
> Providenza & Boekelheide, Inc.
> 
(Continue reading)

Tim Roberts | 1 Jun 2007 18:18

Re: usb_bulk_write or usb_control_msg

monxxx wrote:
>   
> Thanks for the information..
>
> But my problem is it was c/c++ source i cant find any delphi sources..
>   

Of course not, and you won't find any.  If you insist on using Delphi,
you will have to port the code yourself.  Delphi programmers HAVE to be
adept at interfacing with C and C++ code, and porting C code to Delphi. 
That's the price of using a niche product.

> by the way, what is the purpose of this libusb? i check nokia driver they
> are using libusb0.dll and it was written by stephan mayer..
>   

The purpose of libusb is to allow you to access USB devices without
having to write your own kernel driver.  Libusb was originally written
for Linux.  Stephan Meyer was instrumental in porting it to Windows and
continues to administer the Windows port.  libusb0.dll is simply the
user-mode half of the Windows version of libusb 0.x.  (The kernel half
is in libusb0.sys.)

--

-- 
Tim Roberts, timr <at> probo.com
Providenza & Boekelheide, Inc.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
(Continue reading)

monxxx | 2 Jun 2007 14:08
Picon
Favicon

Re: usb_bulk_write or usb_control_msg


Tim Roberts wrote:
> 
> monxxx wrote:
>>   
>> Thanks for the information..
>>
>> But my problem is it was c/c++ source i cant find any delphi sources..
>>   
> 
> Of course not, and you won't find any.  If you insist on using Delphi,
> you will have to port the code yourself.  Delphi programmers HAVE to be
> adept at interfacing with C and C++ code, and porting C code to Delphi. 
> That's the price of using a niche product.
> 
>> by the way, what is the purpose of this libusb? i check nokia driver they
>> are using libusb0.dll and it was written by stephan mayer..
>>   
> 
> The purpose of libusb is to allow you to access USB devices without
> having to write your own kernel driver.  Libusb was originally written
> for Linux.  Stephan Meyer was instrumental in porting it to Windows and
> continues to administer the Windows port.  libusb0.dll is simply the
> user-mode half of the Windows version of libusb 0.x.  (The kernel half
> is in libusb0.sys.)
> 
> -- 
> Tim Roberts, timr <at> probo.com
> Providenza & Boekelheide, Inc.
> 
(Continue reading)

frits vanderlinden | 3 Jun 2007 03:20
Favicon

Re: libusb.h.in v12


> ------------------------------------------------------------------------
> 
> #ifndef __LIBUSB_H__
> #define __LIBUSB_H__
> 
> /*
>  * Prototypes, structure definitions and macros.
>  *
>  * Copyright 2000-2005 Johannes Erdfelt <johannes <at> erdfelt.com>
>  *

IIRC, Peter wants his copyright here as well.

I don't have any other comment at this time. It is time to get the 
frontend/backend specification done and then do a few implementations. 
No doubt, many issues will come up and mistakes discovered.

cheers

fritS

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
timr | 3 Jun 2007 07:12

Re: usb_bulk_write or usb_control_msg

On Sat, Jun 02, 2007 at 05:08:46AM -0700, monxxx wrote:
> 
> i think n70/6630 and its cable is also a usb device, do you think this will
> work what im trying to do? or not?

I have no idea what you're trying to do.  Many cell phones do present
themselves as USB devices, and the two libraries that were pointed out
earlier are designed to allow you to manipulate cell phones from
applications.  That's probably where you should start looking.
--

-- 
Tim Roberts, timr <at> probo.com
Providenza & Boeklheide, Inc.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
monxxx | 3 Jun 2007 07:23
Picon
Favicon

Re: usb_bulk_write or usb_control_msg


Tim Roberts wrote:
> 
> On Sat, Jun 02, 2007 at 05:08:46AM -0700, monxxx wrote:
>> 
>> i think n70/6630 and its cable is also a usb device, do you think this
>> will
>> work what im trying to do? or not?
> 
> I have no idea what you're trying to do.  Many cell phones do present
> themselves as USB devices, and the two libraries that were pointed out
> earlier are designed to allow you to manipulate cell phones from
> applications.  That's probably where you should start looking.
> -- 
> Tim Roberts, timr <at> probo.com
> Providenza & Boeklheide, Inc.
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Libusb-devel mailing list
> Libusb-devel <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/libusb-devel
> 
> 

Ok Thanks i will try to see this gammu..
(Continue reading)

Daly Yeung | 5 Jun 2007 08:10
Picon
Favicon

Help! usb_find_busses() error in ARM linux

Hello,

    I am developing an application to drive an usb
device on an embedded linux ARM board (AT91RM9200,
Linux 2.4.27-vrs1). I downloaded the libusb-0.1.12,
cross-compiled it in redhat-linux 9.0 (Linux 2.4.20-8)
with arm-linux-gcc 3.4.1, then download to the ARM
board, but the function call usb_find_busses() return
-2, what is the meaning of the error code -2? Please
help, thank you very much.

Best regards, 
Daly

_______________________________________
 辣茩妏蚚閉湮講捇誥蚘眊 
 http://cn.mail.yahoo.com 

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Libusb-devel mailing list
Libusb-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusb-devel
(Continue reading)

Peter Stuge | 5 Jun 2007 11:42

Re: Help! usb_find_busses() error in ARM linux

On Mon, Jun 04, 2007 at 11:10:12PM -0700, Daly Yeung wrote:
> what is the meaning of the error code -2?

$ perror 2
OS error code   2:  No such file or directory

(perror comes with MySQL, but perror() is also a system call.)

//Peter

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
Tim Roberts | 5 Jun 2007 19:32

Re: Help! usb_find_busses() error in ARM linux

Daly Yeung wrote:
>     
>     I am developing an application to drive an usb
> device on an embedded linux ARM board (AT91RM9200,
> Linux 2.4.27-vrs1). I downloaded the libusb-0.1.12,
> cross-compiled it in redhat-linux 9.0 (Linux 2.4.20-8)
> with arm-linux-gcc 3.4.1, then download to the ARM
> board, but the function call usb_find_busses() return
> -2, what is the meaning of the error code -2?

Does the 2.4.27 kernel includes support for the AT91RM9200's USB host?
It's OHCI, so the usb-ohci module should be able to do it, but somehow
you'll have to tell it what address to use.

--

-- 
Tim Roberts, timr <at> probo.com
Providenza & Boekelheide, Inc.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Libusb-devel mailing list
Libusb-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusb-devel
(Continue reading)

Daly Yeung | 6 Jun 2007 03:31
Picon
Favicon

Re: Help! usb_find_busses() error in ARM linux

Hi Peter,

   Thanks for your reply.
   I could not found the file /proc/bus/usb/devices,
why? It works in Redhat 9.0. 
   How to make it work? Thank you.

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

> On Mon, Jun 04, 2007 at 11:10:12PM -0700, Daly Yeung
> wrote:
> > what is the meaning of the error code -2?
> 
> $ perror 2
> OS error code   2:  No such file or directory
> 
> (perror comes with MySQL, but perror() is also a
> system call.)
> 
> 
> //Peter
> 
>
-------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2
> express and take
> control of your XML. No limits. Just data. Click to
> get it now.
> http://sourceforge.net/powerbar/db2/
(Continue reading)


Gmane