The Datasheet Archive - 100 Million Datasheets from 7500 Manufacturers.    


Datasheet Search Engine   
 
Part # or Description: • 5V RS232 Driver • 2SC5066* • "Real Time Clock" • "USB connector" • "blue led" 5mm • 10 watt zener diode • 2N3055* motorola
 
Search Tip: Try entering the part number only. Include a wildcard (eg. lm317* or 1n4148*)

 

 

make point multi-point communication with XE1201 Author Gael Coro


Datasheet Thumbnail

  

Download PDF



Top Searches for this datasheet



AN1201.06 Application Note
make point multi-point communication with XE1201
Author Gael Coron further information, please contact
XEMICS
mail: xemics@xemics.com Web: www.xemics.com
Table Contents
Introduction 1.Application board 2.Point point communication 3.Point multi-point communication 4.Software structure Time base Modules identification Frame structure Commands list Flow chart 5.Source Code Files XE1201 Programmation procedures Procedure analog chain Data processing procedures
Introduction
This application note describes point point point multi-point communication protocol, which used XE1201CTD (Complete Transceiver Demonstrator). source code this demonstrator written downloaded, free charge, from XEMICS site: http://www.xemics.com objective this demonstrator provide hardware solution using XM1201A module) software running XE88LC05. Most applications based small networks such clusters piconets. means being able communicate from device devices. achieve this type transmission, different approaches used. them Time Division Multiple Access (TDMA) protocol.
General Description
This transmission protocol example shows communication between master maximum slaves maximum. have high flexibility while using same hardware, different modes implemented software: Point point multipoint communication. Automatic manual Master slave This example based Music box: Each Music contains different boards: module XM1201A System application board: based microcontroller: XE88LC05 XM1201 complete module based XEMICS 300-500MHz transceiver. Information XM1201 found application note AN1201.03. XE88LC05 8bit microcontroller with on-chip AD/DA converters.
List Figures
FIGURE APPLICATION BOARD FIGURE POINT POINT COMMUNICATION FIGURE POINT MULTIPOINT COMMUNICATION FIGURE FRAME STRUCURE MASTER BOARD FIGURE FRAME STRUCTURE FIGURE COMMUNICATION BETWEEN MASTER SLAVE.8 FIGURE SLAVE IDENTIFICATION FIGURE IDENTIFICATION FLOW CHART
List Tables
TABLE FRAME STRUCTURE DESCRIPTION TABLE COMMANDE DESCRIPTION.7 TABLE HEXADE CIMAL CODE ALLOCATION TABLE FILES LIST NAME TABLE XE1201 PROCEDURE LIST NAME TABLE ANALOG CHAIN PROCEDURE LIST NAME TABLE PROCEDURE LIST NAME.
Applications
XM1201 gluelessly interfaces XE88LC05. Together with this TDMA communication protocol, solution ideally suited application such Home automation Wireless sensing Remote control Security systems Process building control
A0109-138
System board demonstrator consists boards (Figure system board module (XM1201A). Both board interconnected pins connector. Please note that this document outlines features operating modes system board. information XM1201A, please refer AN1201.03 system board configured "master slave". This selection made pushbutton different modes. source code written allows different types communication: "Point Point", this example uses boards master, slave. "Point multi-point", this example allows several slaves with master.
demonstrator operate manual automatic mode.
XM1201 Connector
Programmation Connector Volume adjustment
XE88LC05 Rhythm adjustment Indicator: Rhythm active
Pushbutton: Application Pushbutton: Type Pushbutton mode Switch: ON/OFF
Indicator: Application selected Indicator: Type selected Indicator: Mode
Figure Application board Name Volume adjustment Rhythm adjustment Pushbutton: Application Indicator: Application Pushbutton: Type Indicator: Type Pushbutton: Mode Indicator: Mode Description Allows adjust volume loud speaker Allows managing music rhythm. This adjustment enabled only board master network. Selects application: Point point Multi-point Indicates which application selected Selects which type board: Master Slave (Only master set-up) Indicate type board (Master Slaves) Select mode:Automatic Manual Indicate which mode been selected Turned power Turned board been configured master been configured slaves recognized master. Blinking, when board playing music (switch
A0109-138
Point point communication first objective this example show link between boards, master slave (Figure third board switched will recognized master included communication. point point communication takes place ping-pong fashion where master sends data slave, upon receipt data, slave sends acknowledgement back master. This cycle reiterated long communication active. show that point point communication taking place each demonstrator unit will play misuc tone when receives data from another unit. "Automatic Mode" default mode. this mode master decides which tone play when, only user,via rhythm adjustment master board, adjust tone duration. order insure that communication between master slave activated master first makes test.
"Test here" command sent master. master then awaits acknowledgement form slave. Once acknowlwdgement received, point point communication begin. Each demonstration unit plays music tone when data being exchanged: master when sends data slave slave when sends acknowledge master. speaker volume switch off, switched inform user that tone played. "Manual Mode". pressing "Pushbutton Mode" master, application switches into manual mode. green master board slave board, informs user this setting. this mode user send data from master slave manually. This achieved pushing Manual Mode button master unit. Eacht Manual Mode button pressed string data goes from master slaves acknowledgement comes back. Music tones LEDs performsimiliary Automatic Mode.
Master Board
Slave Board
Figure Point point communication
A0109-138
Point multi-point communication "Manual mode" accessible master board. user needs push button send message (the tone play) next slave.
point multi-point example (Figure allows achieve transmission between master slaves. Each slave plays tone when being addressed master manages communication. power demonstrator units slave mode. realize point multipoint communication, unit must Master mode units "Multipoint" mode.
Slave board
Slave board
Master board Slave board Figure Point multipoint communication
Slave board
A0109-138
Software structure Time base communication protocol based reference time. Each 0.25 second, master sends slaves message with information about application (type application, mode, rhythm). Between transmissions, master
switches receiver mode detect presence slaves. synchronize boards, dedicated frame sent every second from master. "Time State" labels used determine action (i.e. Send synchronization frame listen slaves).The Figure shows this communication structure.
Applic Infos.
Preamble Synchro
Time state
Applic Infos. 0.25
Receiver mode
Time state
Applic Infos.
Receiver mode
Time state
Applic Infos. 0.75
Receiver mode
Time state
Figure Frame strucure master board
Slaves identification point multi-point communication, each slave needs identified the. this case, master assigns personal identification number (ID) each slave. This mechanism allows master address each slave individually. However, some special codes have been defined, example command that allows addressing slaves same time.
with value 0xFF, allows master send message slaves network. Therefore, this used change application (point point Point multi point) also MODE (Automatic manual). anti-collision procedure also implemented point point communication protocole.
Frame structure Commands list messages have predefined length. allows have simple communication procedure transmission reception. Each frame constructed described Figure Each frame bits wide (see Table cover needs, commands have been defined (see Table
Preamble
Start word
Figure Frame structure
A0109-138
Name Preamble Start word
Description Synchronization frame Start communication Command Slave Identification number Complement command Code, corrective based CMD, Table Frame structure description
Length bits bits bits bits bits bits
New_Module Attribute_ID Test_Here Play_Song Application Auto_Manual ID_Master Song_Duration Synchro
Code 0x01 0x02 0x03 0x05 0x06 0x07 0x08 0x09 0x0A 0x0B
Description
Frame structure
Answer Attribute_ID
Announce module ID_MS ID_TEMP Give identification number ID_TEMP NEW_ID Test slave present Plays song switches SONG NUMBER Specifies application ID_ALL APPLIC slaves (Point Point multi-point). Specifies application ID_ALL MODE slaves (Automatic manual). Informs slaves ID_ALL ID_MS master Confirmation ID_MS Duration tone ID_ALL DURATION Synchronization between ID_ALL master slaves. Table Commande description
Code name ID_MS ID_TEMP NEW_ID SONG_NUMBER ID_ALL APLLIC MODE DURATION
Code 0x00 0x80 ID_TEMP 0xFF 0x00 NEW_ID 0x80 0x00 0x80 0x00 0x00 tone 0x01 0x08 0xFF 0x01 point point 0x04 Multi-point 0x03 Automatic 0x06 Manual 0x02 0x10 Table Hexadecimal code allocation
Description Master identification number Random time used module Final identification number slave given master Identification dedicated slave Complement command Tone number generate Identification slaves Application definition Mode definition Time duration tone, time base 0.25s
A0109-138
Soft routine examples Slave detection communication
sending command (Play song). Before transmission begins master tests slave present.
following schematic (Figure explains achieve communication between master slave. This example consists
P+SW
P+SW
Master
Slave. Test_ here
Slave. Play_Song note
P+SW Master
P+SW
Slave
Master
Test slave present
Command generate tone
Figure communication between master slave
slave identification anti-collision
When slave comes into network, will communicate with master after random time. This random time generated random counter. Therefore, module will send message master using equal plus value random
counter (ID_TEMP). master confirms transmission sending actual slave (ID_TEMP) personal (ID_NEW). This personal number inferior 128. following schematic (Figure shows protocol identification slave.
Master Preamble
Time state
Synchro
Applic.
Time state
module?
Infos Applic.
tone
Receive mode module?
Attribute Waiting Receive mode
Receive mode tone module?
Time state
Slave (new) Waiting Synchro
Announce Waiting Waiting free Random channel Time module
Receive mode
Figure slave identification
A0109-138
Communication initialization routine Flow chart
Master
Figure shows:
Waiting Synchro
Time state
Preamble
Slave (new)
Synchro
Random Time channel
Waiting free
tone
Infos Applic.
mode module?
power slave boards switche into receiver mode await Synchro frame from master. this way, slaves synchronized with master. After synchronization frame, master sends slaves information regarding application (Mode, Application, Tone duration). After, applicable, master send message "Play song" slave. mean time, slave waiting until master finishes transmission. master switches into receiver mode listens there slave network. slave waits random period time assigns itself address, which based random counter. slave board sends message master with temporary address. master board answers giving permanent address. slave sends acknowledge confirm reception. master reserve this address slave. this point, slave identified participate point point multi-point communication.
Receive mode module?
Time state
Waiting Attribute
mode module?
Figure Identification flow chart
Time state
Receive mode
tone
Infos Applic.
Waiting Announce
module
A0109-138
Source Code Files File name Conv_adda.c Conv_adda.h Demon.c Demon.h InitFVe.h InitReg.h Description Procedure analog chain Main file Constants types definition main file Constants types definition analog chain Constants registers definition microcontroller XE88LC05 IO_def.h Inputs outputs definition IRQHandler.c Interrupt procedures Proc.c Proc.h General procedures RF_commands_lib.c RF_commands_lib.h Data processing procedures RF_module_Lib.c RF_module_Lib.h XE1201 programmation procedures Table Files list name
XE1201 Programmation procedures Procedure name InitRFmodule WregABC OpenRF CloseRF WRF_Synchro RRF_Synchro WRF_CMD Description Initialization configuration module Configuration XE1201 registers Switch module Switch module Transmission Preamble synchronization frame Reception Preamble synchronization frame Transmission command Reception command Table XE1201 procedure list name
Procedure analog chain Procedure name Init_song Play_song Get_song_Duration GET_Song_Frequency Description Analog chain initialization Tone generation Read value "tempo" trimmer Frequency measurement tone generation Table Analog chain procedure list name
Data processing procedures Procedure name Decode_CMD TEST_n_Play FIND_Present WAIT_Synchro Description Decode received message execute command Give order generate tone next available slave Find next module Synchronization slave with master Table procedure list name
A0109-138
LK4M
100N
100N
EXIBIT: Schematic
100N
7S04
onnect eurpr
TESTIN TESTC TESTO TESTVPP
100N
100N
68PF
100N
LK4M
BT_M S_SL BT_AU
ESET VSS_VR VBAT AS_AO AS_AI AS_AI AS_O
Escl
henil
anuel
_APPLI
S_SL
EE_IN
TESTO
ATABU
S_SL
BT_APPLI
BT_M S_SL
BT_AU
100K
100K
100K
oniq YVER ES-B
02.1 At/BLy
Appli cati
Type
onnect eurm odul 1201
TESTVPP
AB_R AB_R AB_O AB_AO AB_AO AB_AI AB_AI
68PF EE_IN
XE88LC
BT_APPLIC _APPLIC S_SL
TEST
ATABU
A0109-138
Sheet
08:0
XEMICS, 2001
rights reserved. Reproduction whole part this document prohibited without prior written consent copyright owner. information presented this document does form part quotation contract, believed accurate reliable changed without notice. publisher consequence will accept liability. Publication thereof does convey imply license under patent other industrial intellectual property rights.
A0109-138

Other recent searches


SJ6161AUS - SJ6161AUS   SJ6161AUS Datasheet
SBR60A100PT - SBR60A100PT   SBR60A100PT Datasheet
MBR3045CTW - MBR3045CTW   MBR3045CTW Datasheet
HV57708 - HV57708   HV57708 Datasheet
DIP16 - DIP16   DIP16 Datasheet
DIP18 - DIP18   DIP18 Datasheet
C202S3 - C202S3   C202S3 Datasheet

 

Privacy Policy | Disclaimer
© 2012 Datasheet Archive