Esk qu'on peut développer un app de BlueTooth en VB

sorcier_VB Messages postés 12 Date d'inscription mardi 2 novembre 2004 Statut Membre Dernière intervention 3 mars 2006 - 3 nov. 2004 à 00:04
lkm Messages postés 43 Date d'inscription vendredi 28 mai 2004 Statut Membre Dernière intervention 23 novembre 2007 - 26 févr. 2005 à 12:02
je vroudrais écrir un petit prog qui permet le palm envoyer des données vers le PC, mais je n'ai aucune idée de koi je dois faire

esk vous avez une idée de koi je dois pocéder, de koi je dois savoir????

Merci beaucoupe les amis

6 réponses

econs Messages postés 4030 Date d'inscription mardi 13 mai 2003 Statut Membre Dernière intervention 23 décembre 2008 24
3 nov. 2004 à 00:28
C'est certainement faisable.

Tu dois posséder un Palm, un PC, et BlueTooth installé sur les deux. :)

Ensuite .... aucune idée.
Regarde sur cette page :

http://www.vbfrance.com/code.aspx?ID=23329

Manu
0
sorcier_VB Messages postés 12 Date d'inscription mardi 2 novembre 2004 Statut Membre Dernière intervention 3 mars 2006
3 nov. 2004 à 00:44
Oui, je vais jt 1 coup d'oeil. Merci
0
sorcier_VB Messages postés 12 Date d'inscription mardi 2 novembre 2004 Statut Membre Dernière intervention 3 mars 2006
3 nov. 2004 à 00:52
J'ai trouvé qlq SDK de BT chez PalmOS, mais c tout en langage C

je n'ai trouvé aucune doc sur VB

c vraiment casse-gouille de trouver des docs Techs. sur net.

mais je m'abondonner pas, je vais continuer, si je trouve encore qlq chose sur Programmation BT en VB, je vais les mettre ici.

comme ça les autres n'ont plus besoin plus niquer le doigt pr trouver les docs.

%-6
0
econs Messages postés 4030 Date d'inscription mardi 13 mai 2003 Statut Membre Dernière intervention 23 décembre 2008 24
3 nov. 2004 à 01:41
c'est une bonne idée çà :)

Manu
0

Vous n’avez pas trouvé la réponse que vous recherchez ?

Posez votre question
sorcier_VB Messages postés 12 Date d'inscription mardi 2 novembre 2004 Statut Membre Dernière intervention 3 mars 2006
13 nov. 2004 à 22:48
Ennnnnnnnnnnn FFFFFFFFFFFFinnnnnnnnnnnnnnnnnnnnnn

trouvé le docs pour pouvoir établir la communication avec BT

------------------------Voici doc-----------------------------

This Tech Note gives more information on communications than is contained the Handbook. It concerns itself with Serial and IR communications. For information on Tcp/IP communications, see Tech Note 18.
If you want more detailed "how to" information on serial communications, see NS Basic Programming for Palm OS, by Michael Verive.

If you have notes or tips to add, please send them to support@nsbasic.com.

Note: SerialReceiveWithEvents and Palm OS 5

SerialReceiveWithEvents uses the Palm OS SrmSetWakeupHandler call. According to PalmSource, the Palm Application Compatibility Environment (PACE), which is how most apps run on OS 5, is not interrupt safe so 68K applications running through PACE may experience problems if they attempt to run during an interrupt.

Serial Wakeup Handlers set with SrmSetWakeupHandler may work inconsistently under different versions of OS 5 and will not work at all via the Palm OS 5 Simulator. In general, developers should avoid using serial wakeup handlers in OS 5.

The workaround is to have your program check from time to time to see if data has been received, rather than wait for an event.

1. Serial Communications - RS-232
Serial communication over an RS-232 connection is often the easiest way to talk to other devices. Until recently, it was the standard used by almost all devices. This is reflected in devices for Palm OS: older devices have better support for serial communications than newer ones. While the Palm III had an actual DB9 port running RS 232 on its cradle, the very newest Palms have no serial port at all and sometimes broken or non existent RS 232 support.

The best way to test serial communications is hook your device up to the serial port on your PC. Run HyperTerminal on the PC and set it to 9600 baud, local connection. On your device, run the SerTester sample. You'll be able to send and receive data in both directions.

Have a look at the SerialOpen function in your Handbook or in the Help to get the proper port numbers for opening serial communications. In most cases, you will use 0 as the port number.

For information on pinout connections for PalmOne devices, see this page.

Notes and Warnings
a. Using Serial Comms on a device with USB port To do serial communications with a device that has a USB port, you'll need the proper cable. If you have the right cable, you should be able to open and use the serial port normally.
Here are some sources for cables:

Cables To Go
eforcity
Boxwave MiniSync - charges too!
Serialio.com
b. Baud Rate and Flow Control Problems on Tungsten T3 and T
Due to incorrect settings in ROM, the Tungsten T and T3 have problems with baud rate and flow control. Larson Computing has a utility called SerialFix to correct this.

SerialFix is an OS/5 system extension that corrects a variety of problems with serial support in Tungsten/T and Tungsten/T3 devices.

Version 2 allows the Tungsten/T3 to communicate with devices that do not support hardware flow control, such as GPS units.

Non-standard baud rates are provided on the Tungsten/T. Devices such as MIDI controllers or automotive computer interfaces that require special baud rates can operate normally with SerialFix installed.

If a program fails on the Tungsten/T or Tungsten/T3, but works on other Palm devices, SerialFix may allow that program to operate normally on these devices.

SerialFix enables other programs to operate. It is not something that you need pay attention to once it is installed. The Active status checkbox specifies whether or not it is active. The AutoActivate checkbox specifies whether or not it is automatically made Active after a Soft Reset. These checkboxes are normally both enabled.

Version 2.2 adds support for control of the RTS signal.

Version 2.3 adds support for overriding the connection type to Serial or USB, bypassing the normal detection logic. This can be used with "Y" cables to select the serial connection. It can also be used to improve reliability with connections that are intermittent or incorrectly identified.

Please contact SerialFix@Comcast.net to report problems with an application that works on other Palm devices.

c. Serial Comms on Tungsten T and T2

To use serial comms on a Tungsten T and T2 use port 32771 in the SerialOpen statement.

2. IR Communications
There are several different protocols that are used for IR communications. They are:
Simple IR (SIR) is the easiest one. There is no handshaking between the two participants: the character information is simply spewed out of the IR port. It is the responsibility of the programmer to define any error checking.
IrDA has built in handshaking and error correction. There are many types of protocols within the IrDA specification. NS Basic/Palm supports the IRComm protocol, which is widely used. See the IrDA website for more information.
Consumer IR is used to control TV, VCR and other home electronics devices. It uses a different carrier signal, so it cannot normally be sent or received by Palm OS devices.
More on each follows.
A. Simple IR (SIR)
To open an IR port for serial communications,

res=SerialOpen(32769,9600)
res=SerialSet("IR",1) 'to send data
res=SerialSet("IR",2) 'to receive data

Remember to do the the SerialSet("IR", mode) before sending and receiving. Prior to OS 5, it was possible to both send and receive in mode 1. The new release tightens this up: you need to be in the proper mode to do SerialSend or SerialRecieve.

Have a look at the IRTest sample that comes with NS Basic to see how this works.

Notes and Warnings

SIR does not work on devices using OMAP processors (such as the Zire 21 and Treo 600). In these, the IR Chip does the framing for IRComm automatically, so SIR transmissions are impossible.

B. IRComm (IRDA)
To open an IR port for IRComm communications,

res=SerialOpen(1769104237,9600)

IRComm is easy to use. It's not as fast as SIR, but much more reliable and runs on all devices. There is no need to do SerialSet("IR", mode) before sending and receiving. The port number (1769104237) is simply the 4 byte string 'ircm' expressed as an integer. Baud rate (9600) does not seem to matter: the protocol works out the best rate.

For sample code, simply take the SerTester sample and change the port number.

C. Consumer Electronics
Consumer electronics RF sends pulses at a different frequency than data communications. As a result, many IR chips cannot transmit or recieve consumer IR data.

A company named Pacific Neo-Tek has actually hacked a way to do consumer IR on some Palm OS devices. They do not say that their software works on Palm OS 5 devices.

4. Bluetooth
To open Bluetooth virtual port for serial communications,

res=SerialOpen(1919312749,9600)

Bluetooth is also easy to use. It's not as fast as SIR, but much more reliable and runs on all devices. The port number (1919312749) is simply the 4 byte string 'rfcm' expressed as an integer. Baud rate (9600) does not seem to matter. Device discovery is done when the port is opened by prompts to the operator.

For sample code, simply take the SerTester sample and change the port number.

We haven't tested this ourselves yet: this information is from the docs
0
lkm Messages postés 43 Date d'inscription vendredi 28 mai 2004 Statut Membre Dernière intervention 23 novembre 2007
26 févr. 2005 à 12:02
Réponse à <"4. Bluetooth
To open Bluetooth virtual port for serial communications,

res=SerialOpen(1919312749,9600)

Bluetooth is also easy to use. It's not as fast as SIR, but much more reliable and runs on all devices. The port number (1919312749) is simply the 4 byte string 'rfcm' expressed as an integer. Baud rate (9600) does not seem to matter. Device discovery is done when the port is opened by prompts to the operator.

For sample code, simply take the SerTester sample and change the port number.

We haven't tested this ourselves yet: this information is from the docs ">

Salut,
les informations que tu as trouvé sont trés intéressantes (et en plus consise), est ce que tu pourrais donner l'adresse où tu as trouvé cette doc, ils parlent d'un code sample SerTester et j'aimerai l'étudier un peu
Merci

lkm
0
Rejoignez-nous