Writing file to host over bluetooth

Login to reply to this topic.
Thu, 2005-01-27 07:53
Joined: 2004-05-21
Forum posts: 48
Hi,

I want to create a file on my pc(host) from an application running on a phone. The connection between PC and phone is to be bluetooth. Not only I want to create it but my application should be able to modify that file on the PC itself.
Mind it, it is not simply creating a file on phone and transferring to the PC over bluetooth. The file should be created and modified over the bluetooth connection to the PC.
Anyone have any idea how shall I proceed for this. Any code snippets/links may be a great help.

Regards and Thanks

Dushyant Gaur
Software Specialist,
Kodiak Networks,
No 401 Prestige Sigma, 4th Floor
3 Vittal Mallya Road
Bangalore - 560 001
India


Thu, 2005-01-27 09:02
Joined: 2004-07-28
Forum posts: 1379
Writing file to host over bluetooth
Quote
I want to create a file on my pc(host) from an application running on a phone.

The best you could do would be create a file, and OBEX push it out to the PC.  But it's the discrepancy of the PC's BT bluetooth stack to as what happens with that file - usually, it gets stuffed in \My Documents\Bluetooth Exchange Folder\ - at least for the WidComm BT stack anyway.

Another method may be to use mRouter.  But even when the phone and the PC are connected up using mRouter, it's only PPP.  You could perhaps make the connection using mRouter, connect from the phone to "winsockhost.mrouter" (which is the PC) on port 139, and figure out how the protocol for Windows File and Print sharing work, but... well yes...

You could also use the BT PAN profile, if the phones supported it

didster

  • Login to reply to this topic.