www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

c++ - usb ?

↑ ↓ ← Riccardo Cohen <rcohen articque.com> writes:
Hi,
I'd like to exchange information with my Palm (on usb port).
I could not find any information on all .hlp about that , where is the api for
usb communications ?
Thanks
-- 
Riccardo Cohen

Articque
Les Roches
37230 Fondettes
France
web = http://www.articque.com
tel: +33 02 47 49 90 49
fax: +33 02 47 49 91 49
Jan 02 2004
↑ ↓ John Reimer <John_member pathlink.com> writes:
Oops?  Looks like someone hit the wrong news server :-). Or else this is a win32
USB question?

May be better answered in the palm newsgroup: news.palmos.com .

Wouldn't it be nice if DMC supported palm too ;-)?  Can't let Codewarrior corner
the market now can we?


In article <bt3qtk$2dod$1 digitaldaemon.com>, Riccardo Cohen says...
Hi,
I'd like to exchange information with my Palm (on usb port).
I could not find any information on all .hlp about that , where is the api for
usb communications ?
Thanks
-- 
Riccardo Cohen

Articque
Les Roches
37230 Fondettes
France
web = http://www.articque.com
tel: +33 02 47 49 90 49
fax: +33 02 47 49 91 49

Jan 03 2004
↑ ↓ Riccardo Cohen <rcohen articque.com> writes:
I need to build a console C application on my PC/Win32 with dmc 8.38n compiler.

It will communicate with my palm through usb, with an application that I build
separately with 
codewarrior for palm compiler.

I cannot find the C api for usb ! any idea ?
Thanks


John Reimer wrote:

 Oops?  Looks like someone hit the wrong news server :-). Or else this is a
win32
 USB question?
 
 May be better answered in the palm newsgroup: news.palmos.com .
 
 Wouldn't it be nice if DMC supported palm too ;-)?  Can't let Codewarrior
corner
 the market now can we?
 
 
 In article <bt3qtk$2dod$1 digitaldaemon.com>, Riccardo Cohen says...
 
Hi,
I'd like to exchange information with my Palm (on usb port).
I could not find any information on all .hlp about that , where is the api for
usb communications ?
Thanks
-- 
Riccardo Cohen

Articque
Les Roches
37230 Fondettes
France
web = http://www.articque.com
tel: +33 02 47 49 90 49
fax: +33 02 47 49 91 49


-- Riccardo Cohen Articque Les Roches 37230 Fondettes France web = http://www.articque.com tel: +33 02 47 49 90 49 fax: +33 02 47 49 91 49
Jan 03 2004
→ John Reimer <John_member pathlink.com> writes:
In article <bt73s5$184p$1 digitaldaemon.com>, Riccardo Cohen says...
I need to build a console C application on my PC/Win32 with dmc 8.38n compiler.

It will communicate with my palm through usb, with an application that I build
separately with 
codewarrior for palm compiler.

I cannot find the C api for usb ! any idea ?
Thanks

Sorry, didn't think it was a DMC related question at first. I have no clue about the USB C api. Perhaps someone else can help.
Jan 03 2004
John Reimer <John_member pathlink.com> writes:
In article <bt73s5$184p$1 digitaldaemon.com>, Riccardo Cohen says...
I need to build a console C application on my PC/Win32 with dmc 8.38n compiler.

It will communicate with my palm through usb, with an application that I build
separately with 
codewarrior for palm compiler.

I cannot find the C api for usb ! any idea ?
Thanks

Now I'm thinking.... I haven't done any palm developing myself, but I've studied it a little in preparation for it. I was under the impression that you don't use direct USB access to establish a palm/PC-app connection (that would be very low level and tricky, I would think). You use conduits through hotsync that abstracts the connection type (USB, IFr, network, wirless). The conduits are called by hotsync to establish data connections for the device/(pc app). If this is the case, don't you use the Palm Conduit developer's kit? The kit says it supports MS Visual C++ 6.* and .NET. Perhaps it's possible to get it working with the latest DMC (MS libraries can and have been converted before). At least it should be possible, but it may require some library format conversions (coff to omf) and header tweaks. But perhaps you are talking about direct management of the USB connection between the Palm device and the PC application afterall. I would think that is very unusual and difficult. And I don't know how or why this would be done. Documentation: http://www.palmos.com/dev/support/docs/conduits/win/ Palm CDK: http://www.palmos.com/dev/tools/cdk/win/ Maybe this helps, but I probably completely missed the mark! Good luck! John Reimer
Jan 03 2004
↑ ↓ → Riccardo Cohen <rcohen articque.com> writes:
You're right about conduit. But conduit is run by the hotsync application,
which in the same time is 
suppose to backup everything, synchronize calendar...

My sync cannot be executed in hotsync process because it synchronizes data with
many users. If 10 
persons in a company need to synchronize my application with the central
database from the same 
central PC, they would not like to push the hotsync button for privacy reasons.

Actually, I already done a serial communication independant from hotsync. But
now I've changed my 
cradle, and the plug is not serial but usb, so I need to rebuild a small
communication part in my 
win32 code. The palm code does not change, since the palmos handles all cradles
as a serial 
communication.


John Reimer wrote:

 In article <bt73s5$184p$1 digitaldaemon.com>, Riccardo Cohen says...
 
I need to build a console C application on my PC/Win32 with dmc 8.38n compiler.

It will communicate with my palm through usb, with an application that I build
separately with 
codewarrior for palm compiler.

I cannot find the C api for usb ! any idea ?
Thanks

Now I'm thinking.... I haven't done any palm developing myself, but I've studied it a little in preparation for it. I was under the impression that you don't use direct USB access to establish a palm/PC-app connection (that would be very low level and tricky, I would think). You use conduits through hotsync that abstracts the connection type (USB, IFr, network, wirless). The conduits are called by hotsync to establish data connections for the device/(pc app). If this is the case, don't you use the Palm Conduit developer's kit? The kit says it supports MS Visual C++ 6.* and .NET. Perhaps it's possible to get it working with the latest DMC (MS libraries can and have been converted before). At least it should be possible, but it may require some library format conversions (coff to omf) and header tweaks. But perhaps you are talking about direct management of the USB connection between the Palm device and the PC application afterall. I would think that is very unusual and difficult. And I don't know how or why this would be done. Documentation: http://www.palmos.com/dev/support/docs/conduits/win/ Palm CDK: http://www.palmos.com/dev/tools/cdk/win/ Maybe this helps, but I probably completely missed the mark! Good luck! John Reimer

-- Riccardo Cohen Articque Les Roches 37230 Fondettes France web = http://www.articque.com tel: +33 02 47 49 90 49 fax: +33 02 47 49 91 49
Jan 03 2004
Ilya Minkov <minkov cs.tum.edu> writes:
I would be afraid you cannot talk to USB directly from a user-level 
application. You may want to see in Driver Development Kit.

What driver do you currently have installed for your USB Palm cradle 
node? Perhaps you can find some information how to communicate with this 
specific driver.

-eye

Riccardo Cohen wrote:
 I cannot find the C api for usb ! any idea ?
 Thanks

Jan 04 2004
↑ ↓ Riccardo Cohen <rcohen articque.com> writes:
I did not install any driver, but the hotsync provided with palm may have done
so.
Thanks

Ilya Minkov wrote:

 I would be afraid you cannot talk to USB directly from a user-level 
 application. You may want to see in Driver Development Kit.
 
 What driver do you currently have installed for your USB Palm cradle 
 node? Perhaps you can find some information how to communicate with this 
 specific driver.
 
 -eye
 
 Riccardo Cohen wrote:
 
 I cannot find the C api for usb ! any idea ?
 Thanks


-- Riccardo Cohen Articque Les Roches 37230 Fondettes France web = http://www.articque.com tel: +33 02 47 49 90 49 fax: +33 02 47 49 91 49
Jan 05 2004
↑ ↓ John Reimer <John_member pathlink.com> writes:
This is an interesting problem.  How does one communicate with a palm handheld
without syncing up everything with hotsync?  Would it be possible to use the
networking subsytem in the palm?  For example, a palm handheld can surf the net
with the integrated web browser while it's sitting in the cradle.  This is done
without actually hotsyncing the PDA.  I don't know an analogy for working in the
opposite direction.  But there's got to be a way for USB PDA/PC communication
without actually hotsyncing.  I would imagine there should be some documentation
on this somewhere, but I think it's still a Palm programming (PC app -> palm
interface) issue and not a DMC one (not, at least, until it's determined how all
this is actually done).  Have you tried asking this on the palm forum?  I would
be very surprised if this topic has not been discussed there already.

That said, I CAN see why you would want to do this.  Hotsyncing is definitely
not always desirable.  Separate communication could be useful in some
circumstances (such as the one you mentioned).

In article <btc7rg$5ud$1 digitaldaemon.com>, Riccardo Cohen says...
I did not install any driver, but the hotsync provided with palm may have done
so.
Thanks

Ilya Minkov wrote:

 I would be afraid you cannot talk to USB directly from a user-level 
 application. You may want to see in Driver Development Kit.
 
 What driver do you currently have installed for your USB Palm cradle 
 node? Perhaps you can find some information how to communicate with this 
 specific driver.
 


Jan 05 2004
↑ ↓ Riccardo Cohen <rcohen articque.com> writes:
I've been speaking in palm forum just after our discussion, and they don't know
either...
Some proposed to buy a serial cradle ! and others gave address to buy a PPP
software that makes palm 
communicate with the PC through tcpip... which need an additionnal driver.
I've just subscribed to palmone dev program, and asked palmone support, we'll
see.

Thanks a lot

John Reimer wrote:

 This is an interesting problem.  How does one communicate with a palm handheld
 without syncing up everything with hotsync?  Would it be possible to use the
 networking subsytem in the palm?  For example, a palm handheld can surf the net
 with the integrated web browser while it's sitting in the cradle.  This is done
 without actually hotsyncing the PDA.  I don't know an analogy for working in
the
 opposite direction.  But there's got to be a way for USB PDA/PC communication
 without actually hotsyncing.  I would imagine there should be some
documentation
 on this somewhere, but I think it's still a Palm programming (PC app -> palm
 interface) issue and not a DMC one (not, at least, until it's determined how
all
 this is actually done).  Have you tried asking this on the palm forum?  I would
 be very surprised if this topic has not been discussed there already.
 
 That said, I CAN see why you would want to do this.  Hotsyncing is definitely
 not always desirable.  Separate communication could be useful in some
 circumstances (such as the one you mentioned).
 
 In article <btc7rg$5ud$1 digitaldaemon.com>, Riccardo Cohen says...
 
I did not install any driver, but the hotsync provided with palm may have done
so.
Thanks

Ilya Minkov wrote:


I would be afraid you cannot talk to USB directly from a user-level 
application. You may want to see in Driver Development Kit.

What driver do you currently have installed for your USB Palm cradle 
node? Perhaps you can find some information how to communicate with this 
specific driver.



-- Riccardo Cohen Articque Les Roches 37230 Fondettes France web = http://www.articque.com tel: +33 02 47 49 90 49 fax: +33 02 47 49 91 49
Jan 08 2004
↑ ↓ John Reimer <jjreimer telus.net> writes:
On Thu, 08 Jan 2004 15:48:23 +0100, Riccardo Cohen wrote:

 I've been speaking in palm forum just after our discussion, and they don't
know either...
 Some proposed to buy a serial cradle ! and others gave address to buy a PPP
software that makes palm 
 communicate with the PC through tcpip... which need an additionnal driver.
 I've just subscribed to palmone dev program, and asked palmone support, we'll
see.
 
 Thanks a lot

Wow! Nobody was familiar with this issue on the Palm Forum? Ouch! Well, I hope Palm support can help you. I've registered with Palm Developer program, but haven't done much with it yet other than familiarize myself with the tools (prc-tools chain on Gentoo Linux; CodeWarrior is too expensive an option for me at this stage). I'm mostly waiting for Palm OS 6 to come out with it's new SDK (February?). That's supposed to ease the palm programming experience drastically. Anyway, I hope you success with the issue. Please tell me how it goes. Later, John PS Digital Mars <-- just mentioned it to stay on topic ;-)
Jan 08 2004
↑ ↓ → Riccardo Cohen <rcohen articque.com> writes:
I'll tell you if I find !

John Reimer wrote:

 On Thu, 08 Jan 2004 15:48:23 +0100, Riccardo Cohen wrote:
 
 
I've been speaking in palm forum just after our discussion, and they don't know
either...
Some proposed to buy a serial cradle ! and others gave address to buy a PPP
software that makes palm 
communicate with the PC through tcpip... which need an additionnal driver.
I've just subscribed to palmone dev program, and asked palmone support, we'll
see.

Thanks a lot

Wow! Nobody was familiar with this issue on the Palm Forum? Ouch! Well, I hope Palm support can help you. I've registered with Palm Developer program, but haven't done much with it yet other than familiarize myself with the tools (prc-tools chain on Gentoo Linux; CodeWarrior is too expensive an option for me at this stage). I'm mostly waiting for Palm OS 6 to come out with it's new SDK (February?). That's supposed to ease the palm programming experience drastically. Anyway, I hope you success with the issue. Please tell me how it goes. Later, John PS Digital Mars <-- just mentioned it to stay on topic ;-)

-- Riccardo Cohen Articque Les Roches 37230 Fondettes France web = http://www.articque.com tel: +33 02 47 49 90 49 fax: +33 02 47 49 91 49
Jan 08 2004