Scanning for a Device
MoSync makes it easy to scan for nearby devices and connect to them using Bluetooth. Of course, both your computer and the device must have Bluetooth installed and enabled, the device must be configured as "discoverable" so that the computer can find it. The device must also support the OBEX communications protocol. Once you have connected to your device, you will be able to send your application to it over Bluetooth.
Scanning for a Device
Click the Select Target Device icon (or select Scan for Device from that icon's drop-down menu):

The transport selection dialog will appear.

Select Bluetooth. If you have correctly configured your Bluetooth stack, MoSync will start a search for all discoverable Bluetooth devices in range and display the ones that it finds:
Highlight the device that you want to send your application to and click OK.
MoSync will now check that the selected device has the OBEX service available for binary transfers:

The Device Profile-Target Device Association
In MoSync 2.3, when the OBEX service is detected, the Select Preferred Profile window will appear:

Select the MoSync device profile you want to associate with the target device. Usually, this will be the profile for the target device, e.g., the N95 profile for the N95 phone. However, if there is no suitable profile for your device, you can choose another compatible profile. Click OK to associate the chosen device profile with the target device.
When the OBEX service is detected, MoSync automatically completes the device selection by associating the device profile currently selected in the project with the target device. For more about this association, including how to check its current setting and how to change it, see Sending to a Device.
Windows Mobile Bluetooth Issues
We have noted some issues with the pairing of Windows Mobile devices to Windows computers.
The first issue seems to happen if the device has been previously paired with the computer outside of MoSync. If you are having problems sending application packages files from the MoSync SDK to a Windows Mobile bluetooth device, try unpairing the device in the Windows Bluetooth Device Manager or its equivalent, and then searching for it again in the MoSync SDK.
The second issue relates to Windows Active Sync and/or HTC Active Sync. These applications can cause problems when trying to connect Windows Mobile devices to the computer via MoSync and Bluetooth. Try disabling Active Sync if you are experiencing connection or file transfer issues.
DocumentationInbox X | Reply![]() ![]()
Hi Chris.. I
just have found a problem and we need to document it somewhere.... its
about connecting windows mobile (the crappy one :D ) with mosync. if the
windows active sync/HTC active sync for windows mobile is installed on
the computer, one might face soooo many problems to connect it to the
computer via bluetooth in MoSync. One can find the device, associate it
with the preferred profile but can't send the application to the
device.. I also have tried to send the cab file through windows
bluetooth file wizard but it didn't work.. tried it on a couple of
fone.. then I forcefully exit the the active sync and it started working
fine... one may think its mosync problem but its not....
-- Med vänlig hälsning / Best regards, Abi Waqas Asmat (Ghuman) Test and Verification Engineer MoSync AB Cell: +46(0)760064164 Email: abi@mosync.com
|
- Printer-friendly version
- Login or register to post comments
Share on Facebook
