Author Topic: Serial file transfer to phone  (Read 33563 times)

craigTheBrit

  • Guest
Serial file transfer to phone
« on: June 19, 2009, 08:33:51 AM »
Hi Mike, I have two questions for ya:

 1. Is there any standard way to use either the BF or WCL libraries to send a file to a phone that isn't 'expecting' it by serial cable? We have a phone app and we want to make it easy to install. With Bluetooth and OBEX this is simple, but we're not having much luck getting it to work with the USB cable. Does BFFileTransferClient achieve this?

 2. Is there a WCL equivalent to the BFFileTransferClient? Or a better method for pushing files via serial cable?

Craig

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: Serial file transfer to phone
« Reply #1 on: June 19, 2009, 09:42:24 AM »
Hi,

1. Yes, but non standard. You need to use wclClient and connect to phone. Then execute few AT commands (depends on phone model) to switch phone into OBEX mode. Then use wclOPPClient or wclFTPClient ro transfer the file in OBEX mode as usual. Then use wclClient again to switch phone from OBEX modem back. Some phones have no OBEX mode and you should use AT commands to send file to it with using wclClient.

2. wclFTPClient == BFFileTransferClient.

craigTheBrit

  • Guest
Re: Serial file transfer to phone
« Reply #2 on: June 19, 2009, 10:40:12 AM »
1. Yes, but non standard. You need to use wclClient and connect to phone. Then execute few AT commands (depends on phone model) to switch phone into OBEX mode. Then use wclOPPClient or wclFTPClient ro transfer the file in OBEX mode as usual. Then use wclClient again to switch phone from OBEX modem back.

Is opening the wclOPPClient still posibe while the wclClient is still connected? And if I disconnect the wclClient, does the phone remain in OBEX mode? As for the AT commands... ah if only the manufacturers would document this stuff... we've no clue at all about Nokia, for example.

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: Serial file transfer to phone
« Reply #3 on: June 19, 2009, 10:53:53 AM »
You hvae to disconnect wclClient before connecting with wclOPPClient. Phone remains in OBEX mode. Nokia uses its own protocols for USB/Serial and it is impossible to send files to it with AT commands. For some SonyEricsson and Nokias, connected over USB, you may use wclOPPClient directly without switching phone to OBEX. There will be something like "OBEX USB" in your Device Manager and you may use it. At least, it works for SE K750i and for N95 8gb.

 

Sitemap 1 2 3 4 5 6 7