Hibou inuit de © Kenojuak Ashevak

Jean DEMARTINI
Professeur des Universités
Docteur es Sciences
Ingénieur

Cours actifs

Automatique

Servo-mécanismes discrets

Physique/Ingéniérie

Mécanique des fluides

Processeurs digitaux

Machines Programmables

Architectures DSP

Traitement du signal

Processus stochastiques

Filtres numériques

Projets Polytech'Nice-Sophia

Projets 2007

Projets 2006

Conférences

La Vidéo Surveillance du futur

Les métiers de l'Ingénieur

Réflexions sur le génie logiciel

Une brève histoire des techniques

Ma page GNU/Linux

Mon PmWiki

Archives

API & RLI

La commande floue

Les Fondements du Numérique

L'information, la Machine et le Programme

La logique séquentielle

La programmation fonctionnelle

Mathématiques pour la physique

Méthodes formelles pour l'informatique

Réseaux pour les nuls

Forum  ♦ Annonces

jean.demartini@unice.fr

Login  ♦ Logout

pmwiki-2.2.0-beta68

Bluetooth/Zigbee

Bluetooth/Zigbee

Séance du 31/03/2006

Good News : Monday, the 20th of March : a solution had been found to run IAGS!!! The UNIX PC is now set as a DHCP Server. A switch is pluged to it and the Blipnode is pluged to the switch! The configuration works perfectly! Indeed, the Blipnode and the UNIX PC were pluged to the School network with DHCP. But as DHCP had been disabled on the network and would stay disabled, the creation of our subnetwork with our PC as a DHCP server was the only solution.

Note : Currently David and Gregory are working on the PIC devlopment and supervising the connections between PIC and Serial Bluetooth Adaptor. Jonathan is developing the Service on IAGS with Eclipse and supervising the connections between the Serial Bluetooth Adaptor and the Service.

1. Topic :

  • Development with the PIC
  • Understanding and start of a Service development in Java under IAGS with Eclipse

2. Goals:

  • We are in a critical position in regard of our project goals. So we have to concentrate on the Bluetooth communication between devices.

3. Steps :

3.1. PIC Devlopment : David & Gregory

3.2. IAGS Service Development : Jonathan

I set up the network with DHCP on Monday. Now that it works fine, I had been able to start the solution with the easy Welcome Service. Of course as I haven't any Pocket PC to test, I just wathch the log in a terminal window.

After that I set up Eclipse on Linux and configure it to automatically update the solution where this one is installed (/opt/IBM/IAGS). So all the modification I do are updated automatically and the solution can be tested very quickly.

Finally I start to set-up the Site Server configuration for our project. I modified some configuration file as :

  • authorized_devices.list : this file contains the Bluetooth Adress of all devices authorized to access the Site Server. In order to allow the BrainBox Bluetooth serial adapter to commmunicate with IAGS, I put its BA in the file.
  • infrastructure.prj:.this file can be construct with the appropriate GUI. I drew the floorplan of the room in wich the PC is installed. I place the BlipNode too.

I built a new Service called Supermarket that is installed as a package of the solution IAGS (part of the com.ibm.paris.cisph package). So in the folder Service of the solution is now avaiable a Supermarket folder that contains the Supermarket.class file. In order to allow IAGS to use this new Service in this Site Server, I had to modify theservice.list by adding the following line :

DESCRIPTION com.ibm.paris.cisph.services.supermarket.SupermarketService HOSTNAME localhost PORT 9006

The first parameter points to the class file in the Site Server directory and the PORT number allow the IAGS Engine to send and receive data to the service.

To start, I decided to copy the WelcomeService engine in the SupermarketService.class to see if IAGS is ok to launch it.

I launched the IAGS solution and my new SupermarketService was avaiable in the list of service for the Site Server.

By analysing the log displaying in the terminal, I see IAGS was connected to the Bluetooth Adapter.

Then I modified the Service to act like a mirror : every packet received in the service are sent back to the emiter. To test this, I connected the Bluetooth Adapter to another PC in the romm and with Hyperterminal I sent letters 'a' to 'z' and I recieved 'text@a' to 'text@z' in my hyperterminal window. This test show me that the communication was working.

To complicate the test, I decided to send words or sentences like 'test IAGS'. I saw that my messages were cut in parts because I received 'text@te' then 'text@st I' then 'text@GS' in my hyperterminal window.

4. Conclusion :

IAGS Service Development : Jonathan I manage to communicate with the SupermarketService by using the Bluetooth Adapter and Hyperterminal. Unfortunately, I didn't manage to send complex data like sentences or words.

5. Next week goals :

IAGS Service Development : Jonathan I Will try to study how complex data are sent in the device embedded application. The next goal will be to begin to develop an architecture for the Service engine.

Recent Changes (All) | Edit SideBar Page last modified on April 03, 2006, at 10:10 PM Edit Page | Page History