Sie sind auf Seite 1von 2

Wireless Communication using FLEX and ERIKA Enterprise Basic http://dev.emcelettronica.

com/print/51902

Your Electronics Open Source


(http://dev.emcelettronica.com)
Home > Blog > frabs's blog > Contenuti

Wireless Communication using FLEX and


ERIKA Enterprise Basic
By frabs
Created 09/05/2008 - 15:00

Embedded ERIKA Enterprise FLEX Microchip microcontroller wireless communication

Hardware

FLEX Base Board hosting PIC33FFJ256MC710 microcontroller

FLEX Thru Hole Daughter Board with FlexiPanel EasyBee IEEE 802.15.4 tranceiver
module or alteratively a FLex Demo Daughter Board with abuilt-in ready to use ZigBee
connector

Software

Erika Enterprise Basic 1.4.1

PC Side Application
We used a PC connected to the FLEX Board as console. To visualize the data from the FLEX
we used these softwares: Hyperterminal (Windows Systems) or Minicom (Linux). The setting
was 115200 bit/sec without flow control.
The PC is connected to the FLEX by a RS232(COM) port. In our case by a USB/RS232 cable
converter. The FLEX Board uses its UART1 to communicate with the PC. To interface the FLEX
UART signals (0V/3.3V) and the PC RS232 signals (+12V/-12V), we used the IC MAX233CPP
provided by MAXIM. This is not mandatory, one can use their own preferred line driver/receiver
IC.
Flex Side Application
The CC2420/EasyBee can be connected through the FLEX Thru Hole Daughter Board or by the
proper connector on the FLEX Demo Daughter Board . Note that, when the Flex Demo Board is
used, both FIFOP and FIFO pins change, to accomodate this we must uncomment the following
define statement in : #define FLEX_DEMO_BOARD.

#ifndef _CODE_H_
#define _CODE_H_
#include "hal.h"
#include "ee_console.h"
#include "radio_spi.h"
#define USE_CSMA
#define CONSOLE_PORT UART1

1 din 2 05.09.2008 18:01


Wireless Communication using FLEX and ERIKA Enterprise Basic http://dev.emcelettronica.com/print/51902

#define BAUDRATE 115200


#define BUFFER_SIZE 256
BYTE rx_buffer[BUFFER_SIZE], radio_msg[128];
BYTE msg[]={'H','e','l','l','o',' ','f','r','o','m',
' ','t','h','e', ' ', 'E', 'R', 'I', 'K',
'A',' ', 'K', 'e', 'r', 'n', 'e', 'l','!'};
EE_UINT16 rx_write_index, rx_read_index;
#endif

For more informations, click here

Trademarks

Source URL: http://dev.emcelettronica.com/wireless-communication-using-flex-and-erika-enterprise-basic

2 din 2 05.09.2008 18:01

Das könnte Ihnen auch gefallen