Vous ne trouvez pas de réponse à votre problème ? Alors posez la question dans le forum. Souvenez-vous qu'il n'y a jamais de question bête, mais rester dans l'ignorance parce que l'on n'ose pas poser une question, ça c'est une erreur !

Sujet : esk qu'on peut développer un app de BlueTooth en VB [ Archives Visual Basic / Réseau et Internet ] (sorcier_VB)

mercredi 3 novembre 2004 à 00:04:37 | esk qu'on peut développer un app de BlueTooth en VB

sorcier_VB

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

mercredi 3 novembre 2004 à 00:28:47 | Re : esk qu'on peut développer un app de BlueTooth en VB

econs

Administrateur CodeS-SourceS
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

mercredi 3 novembre 2004 à 00:44:01 | Re : esk qu'on peut développer un app de BlueTooth en VB

sorcier_VB

Oui, je vais jt 1 coup d'oeil. Merci

mercredi 3 novembre 2004 à 00:52:51 | Re : esk qu'on peut développer un app de BlueTooth en VB

sorcier_VB

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.


mercredi 3 novembre 2004 à 01:41:31 | Re : esk qu'on peut développer un app de BlueTooth en VB

econs

Administrateur CodeS-SourceS
c'est une bonne idée çà

Manu

samedi 13 novembre 2004 à 22:48:45 | Re : esk qu'on peut développer un app de BlueTooth en VB

sorcier_VB

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

samedi 26 février 2005 à 12:02:05 | Re : esk qu'on peut développer un app de BlueTooth en VB

lkm

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



Cette discussion est classé dans : app, bluetooth, développer, koi, esk


Répondre à ce message

Sujets en rapport avec ce message

Développer à deux sur un même projet [ par jerome ] Comment gérer le développement simultané de 2 forms (un développeur sur chaque form) dans un même projet. Est-il possible d'utiliser en plus Source Sa App reste en mémoire... [ par Ice ] Lorsque mon app est quittée par la croix en haut à droite ( control box ), elle reste visible en appuyant sur control+alt+suppr.-Si elle est quittée p Problème avec les msflexgrids [ par Goustaf ] Comment faire pour masquer une colonne dans un MSFLEXGRID. Y'a bien la possibilité de mettre COLWIDTH à 0, mais à koi sert donc la propriété ISCOLVISI donner le chemin du lecteur cd au lieu de app.path [ par fred ] Bonjour , quand je travaille en localje mets par exemple app.path & "imagemonimage.gif"mais je vais mettre mon application sur un cd en installant une erreur install app [ par pévé ] J'ai empaqueté une appli qui utilise DAO et ACCESS 97. Lors de l'install de cette apli, j'ai un message : une erreur s'est produite lors de l'inscript #URGENT# Comment transferer des données a une app [ par Psycothetic ] Salut je sais comment faire pour trnsferer des données à un programme mais ce que je ne sais pas c'est comment activer la fenetre d'une application:je [Urgent]: Probleme d'envoi de touche à une app... [ par Manthis ] Salut,je voudrais savoir comment envoyer la touche espace à une application...Merci d'avance,et n'hésitez pas a me contacter... ? Manthis fermeture d'excel [ par erich ] J'ai cet appli sur un boutonSet app_exc = GetObject(, "Excel.Application") 'Test pour savoir si Excel tourneIf Err Then Err.Clear Set app_exc = 3,2, 1,...................heu...C'est koi les regles??? [ par BlackWizzard ] ok, juste histoire d'officialiser:Koi etre les regles precises?(interdits, permis, limites...)Koi y en a etre le delais NIX Déserteur ??? C KOI CE BORDEL ??? [ par DEL ] ALORS SOLDAT NIX, ON DESERTE ICQ ???? lolnan, serieu, j'aurai besoin de toimais t pu sur ICQ.C a cause ke je t'ai saoulé la derniere


Nos sponsors

Sondage...

CalendriCode

Juillet 2009
LMMJVSD
  12345
6789101112
13141516171819
20212223242526
2728293031  

Consulter la suite du CalendriCode

Téléchargements

Comparez les prix Nouvelle version

Photothèque Nouveau !



Développement réalisé par Nicolas SOREL (Nix) avec l'aide de : Cyril DURAND et Emmanuel (EBArtSoft), Merci à Vincent pour ses précieux conseils
CodeS-SourceS.com© Toute reproduction même partielle est interdite sauf accord écrit du Webmaster
CodeS-SourceS.com© est une marque déposée tous droits réservés
Temps d'éxécution de la page : 0,343 sec

Google Coop CodeS-SourceS Google Coop CodeS-SourceS


Certaines images présentes sur le site (notament certains avatars) sont issues des collections IconShock, donc si vous souhaitez utiliser ces icons vous devez les acheter, ne les copiez pas et ne utilisez pas dans vos sites et applications sans les avoir commandé.