30068 Parallax Inc, 30068 Datasheet

EMBEDDED BLUE TRANSCEIVER APPMOD

30068

Manufacturer Part Number
30068
Description
EMBEDDED BLUE TRANSCEIVER APPMOD
Manufacturer
Parallax Inc
Datasheet

Specifications of 30068

Frequency
2.4GHz
Data Rate - Maximum
90kBaud
Modulation Or Protocol
Bluetooth v1.1, Class 2
Applications
Bluetooth v1.1
Power - Output
-4dBm
Sensitivity
-85dBm
Voltage - Supply
5 V ~ 10 V
Current - Receiving
80mA
Current - Transmitting
250mA
Data Interface
PCB, Through Hole
Antenna Connector
PCB, Surface Mount
Operating Temperature
-20°C ~ 75°C
Package / Case
Module
Product
Microcontroller Accessories
Operating Supply Voltage
5 to 12 V
Memory Size
-
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Other names
Q2239141

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
30068
Manufacturer:
SCC
Quantity:
38
Part Number:
3006892-04
Manufacturer:
JRC
Quantity:
346
Part Number:
3006892-04
Manufacturer:
FAIRCHILD/仙童
Quantity:
20 000
EmbeddedBlue
500
User Manual

Related parts for 30068

30068 Summary of contents

Page 1

EmbeddedBlue User Manual ™ 500 ...

Page 2

Part Number 0000033 – Revision E Last revised on April 6, 2005 – Printed in the United States of America A7 Engineering, Inc. 12860 C Danielson Court Poway, CA 92064 Copyright ©2003-2005 A7 Engineering, Inc. All rights reserved. EmbeddedBlue is ...

Page 3

Table of Contents Introduction.............................................................................................................................. 1 Manual Conventions ............................................................................................................. 1 Getting More Information ...................................................................................................... 2 Bluetooth Overview ................................................................................................................. 3 What is Bluetooth? ................................................................................................................ 3 What is a Profile? .................................................................................................................. 4 Bluetooth and Wi-Fi............................................................................................................... 5 Security ................................................................................................................................. 5 The Basics................................................................................................................................ 7 PC ...

Page 4

Table of Contents Command Set .........................................................................................................................91 Command Basics.................................................................................................................91 Command Error Handling in BASIC Stamp Applications ....................................................92 Connect................................................................................................................................93 Delete Trusted Device .........................................................................................................94 Disconnect ...........................................................................................................................95 Get Address .........................................................................................................................96 Get Connectable Mode........................................................................................................97 Get Encrypt Mode................................................................................................................98 Get Escape Character .........................................................................................................99 Get Flow Control............................................................................................................... 100 ...

Page 5

Table of Figures Figure 1: eb500 Module...........................................................................................................15 Figure 2: Basic Stamp Activity Board ......................................................................................16 Figure 3: Board of Education Board ........................................................................................17 Figure 4: BS2p Demo Board ...................................................................................................18 Figure 5: BS2p24/40 Demo Board ..........................................................................................19 Figure 6: Javelin Stamp Demo Board......................................................................................20 Figure ...

Page 6

Table of Tables Table of Tables Table 1: eb500 Error Codes.................................................................................................. 127 Table 2: eb500 Operating Parameters.................................................................................. 129 Table 3: eb500 Dimensions .................................................................................................. 130 Table 4: eb500 Pin out Description....................................................................................... 131 Page iv ▪ EmbeddedBlue 500 User Manual ...

Page 7

Congratulations on your purchase of the EmbeddedBlue 500 (eb500) serial Bluetooth module. The eb500 is an add-on component to the Parallax BS2, BS2e, BS2sx, BS2p, BS2pe, and Javelin Stamp microcontroller modules; enabling wireless communications with other Bluetooth devices including cellular ...

Page 8

Introduction Getting More Information The Bluetooth website, www.bluetooth.com, contains the Bluetooth specification, profiles, and other documents relevant to Bluetooth. General information regarding the eb500 module, EmbeddedBlue, and other Bluetooth products from A7 Engineering can be found on the A7 website ...

Page 9

What is Bluetooth? To put it simply, Bluetooth is a technology standard for electronic devices to communicate with each other using short-range radio often referred “cable replacement” technology, because it is commonly used to connect ...

Page 10

Bluetooth Overview unless the hopping pattern is known. Bluetooth utilizes frequency hopping in the 2.4GHz radio band and hops at a relatively fast pace with a raw data rate of about 1 Mbps. This translates to about 700 kbps of ...

Page 11

Bluetooth and Wi-Fi Bluetooth and Wi-Fi are often compared to each other because they are both capable of providing networking on the 2.4GHz consumer frequency band. Many of the differences between these two technologies can be traced to the fact ...

Page 12

Bluetooth Overview of the security model and they are exposed by the EmbeddedBlue device through the set visible and set connectable commands. This is a very coarse level of control, but it is also quite effective and can be used ...

Page 13

Most of the complexity of working with Bluetooth has been encapsulated in the EmbeddedBlue module in order to make it easier to use. The specific application profile that is supported is SPP, or the Serial Port Profile. This is the ...

Page 14

The Basics 1. Open HyperTerminal. This will display the Connection Description dialog the Name box, type the name of your connection. (e.g. eb500). 3. Click OK. This will display the Connect To dialog the Connect using ...

Page 15

Click OK. This will return to the properties dialog. 20. Click OK. 21. On the Call menu, click Call. This will establish a connection with the serial port. 22. Press the “Enter” key to send a carriage return to ...

Page 16

The Basics Experiment with other commands simply by typing them in to the HyperTerminal window. The HLP command is a great place to start. Command Mode The eb500 supports two main operating modes: command mode and data mode. Upon power ...

Page 17

Pin 8 of the eb500 module, which aligns with the pin designated “P5” of the AppMod header, is the Connection Status pin. A BASIC Stamp application can interrogate this pin to determine the connection status of the eb500 radio. Pin ...

Page 18

The Basics IF in5 = 0 THEN WaitForConnection DEBUG "Connection established",CR SEROUT 1,84,["This string is sent in data mode",CR] 'Switch to Command Mode PAUSE 2000 SEROUT 1,84,["+++"] SERIN 0,84,[WAIT(CR,">")] DEBUG "In Command Mode",CR 'Get local eb500 Bluetooth Address SEROUT 1,84,["get ...

Page 19

SEROUT 1,84,["dis",CR] SERIN 0,84,[WAIT(CR,">")] DEBUG "Disconnected",CR The following BASIC Stamp application uses the mode control I/O line of the eb500 module to switch between data mode and command mode. Switching between data mode and command mode ...

Page 20

The Basics DEBUG "In Command Mode",CR 'Get local eb500 Bluetooth Address SEROUT 1,84,["get address",CR] SERIN 0,84,[WAIT("ACK",CR)] 'Read the local address from the get command SERIN 0,84,[STR szData\17] SERIN 0,84,[WAIT(CR,">")] szData(17 DEBUG “Local eb500 address: “,STR szData\17,CR 'Return to ...

Page 21

The eb500 module is designed to interface with a 5V CMOS signal environment. It supports a power supply of 5 – 12V and can be connected directly to boards supporting the Parallax AppMod header. When inserting the eb500 module into ...

Page 22

Hardware Connections Basic Stamp Activity Board Figure 2: Basic Stamp Activity Board Prior to installing the eb500 module into the AppMod header, please ensure that the Stamp IO line P5 is not configured as an output. Failure ...

Page 23

Board Of Education Board Prior to installing the eb500 module into the AppMod header, please ensure that the Stamp IO line P5 is not configured as an output. Failure may result in damage to the eb500 module. ...

Page 24

Hardware Connections BS2p Demo Board Prior to installing the eb500 module into the AppMod header, please ensure that the Stamp IO line P5 is not configured as an output. Failure may result in damage to the eb500 ...

Page 25

BS2p24/40 Demo Board Prior to installing the eb500 module into the AppMod header, please ensure that the Stamp IO line P5 is not configured as an output. Failure may result in damage to the eb500 module. The ...

Page 26

Hardware Connections Javelin Stamp Demo Board Figure 6: Javelin Stamp Demo Board Prior to installing the eb500 module into the AppMod header, please ensure that the Stamp IO line P5 is not configured as an output. Failure ...

Page 27

SumoBoard Prior to installing the eb500 module into the AppMod header, please ensure that the Stamp IO line P5 is not configured as an output. Failure may result in damage to the eb500 module. The SumoBoard contains ...

Page 28

Hardware Connections Super Carrier Board Prior to installing the eb500 module into the AppMod header, please ensure that the Stamp IO line P5 is not configured as an output. Failure may result in damage to the eb500 ...

Page 29

This section contains a number of exercises that demonstrate methods of establishing Bluetooth wireless connections with the eb500. The scenarios described are not meant to form an exhaustive list, but rather illustrate a number of more common and useful configurations. ...

Page 30

Establishing a Connection 2. Enter the following program code into the editor. This application is available in electronic form on the accompanying CD, in the Samples folder, in the file GetAddress.bs2. '{$STAMP BS2} szData VAR BYTE(20) 'Wait for the eb500 ...

Page 31

On the Debug Terminal #1 dialog click Close. 5. Disconnect the power from the Board of Education board. 6. Disconnect the Board of Education board serial port from the PC. Figure 9: eb500 Bluetooth Address Output Step 4: Connect ...

Page 32

Establishing a Connection PAUSE 1000 'Connect to the remote device SEROUT 1,84,[“con 00:0C:84:00:05:29”,CR] SERIN 0,84,[WAIT(“ACK”,CR)] 'Wait for the connection to be established and switch to data mode WaitForConnection: IF in5 = 0 THEN WaitForConnection HIGH 6 PAUSE 300 'Wait for ...

Page 33

On the Run menu, click Run. The Connection Status LED (see Figure 1 on page 15) on both eb500 modules will turn on when a connection is established between the two eb500 modules. 9. Disconnect the power from the ...

Page 34

Establishing a Connection Connecting a PC with an eb600 to a Board of Education In this exercise we will step through the process of establishing a connection between a PC that has an eb600 RS232 Adapter to an eb500 inserted ...

Page 35

In the Parity dropdown, select None the Stop bits dropdown, select 1. 10. In the Flow control dropdown, select None. 11. Click OK. This will establish a connection with the serial port. 12. On the Call menu, ...

Page 36

Establishing a Connection 2. Apply power to the Board of Education board. Power can be applied by attaching a 9 Volt battery, or the AC-Adapter provided by Parallax. Step 4: Establish a Connection In this step we will establish a ...

Page 37

Connecting a PC with a DBT-120 to a Board of Education In this exercise we will step through the process of establishing a connection from a PC that has a D-Link® DBT-120 Bluetooth USB Adapter to an eb500 module inserted ...

Page 38

Establishing a Connection Step 3: Establishing trust between the PC and the eb500 module In this step we will establish a trusted relationship between the PC and the eb500 module. Verifying passkeys is required when performing the initial connection on ...

Page 39

Click Find Bluetooth Devices to locate the eb500 module connected to the Board of Education. Provided the eb500 on the Board of Education is within range, eb500 will be shown in the window. 3. Right click on eb500 and ...

Page 40

Establishing a Connection 4. In the Connect using dropdown, select the serial port associated with the DBT-120 Bluetooth connection discovered in the previous step. 5. Click OK. This will display the Properties dialog the Bits per second dropdown, ...

Page 41

Step 6: Establish a Connection Using HyperTerminal In this step we will establish a connection from the PC to the eb500 on the Board of Education, using HyperTerminal. This step relies on the connection information created previously the ...

Page 42

Establishing a Connection Connecting a Board of Education with a DBT-120 In this exercise we will step through the process of establishing a connection from an eb500 module inserted into a Board of Education (BOE) board to ...

Page 43

Select the Hardware tab and note the Device Address shown in the Device Properties section of the dialog. The device address will be used in the BASIC Stamp application developed in the next step. 4. Click Cancel This will ...

Page 44

Establishing a Connection 'Wait for 20 seconds PAUSE 20000 'Switch to Command Mode LOW 6 SERIN 0,84,[WAIT(CR,”>”)] 'Disconnect from the remote device SEROUT 1,84,[“dis”,CR] SERIN 0,84,[WAIT(CR,”>”)] The BASIC Stamp application establishes a connection with the PC device, waits twenty seconds, ...

Page 45

This will bring up the Bluetooth PIN Code Request dialog since we have not connected to this device in the past. 4. Enter the Bluetooth PIN Code for the eb500. The factory default passkey is 0000. The eb500 module enables ...

Page 46

Establishing a Connection Connecting a PC with XP SP2 to a Board of Education In this exercise we will step through the process of establishing a connection from a PC with a Bluetooth USB adapter that is running Windows XP ...

Page 47

Step 3: Establishing trust between the PC and the eb500 module In this step we will establish a trusted relationship between the PC and the eb500 module. Verifying passkeys is required when performing the initial connection on two devices that ...

Page 48

Establishing a Connection Step 4: HyperTerminal Setup In this step we will setup the Windows HyperTerminal application to establish a connection with the eb500 on the Board of Education. 1. Open HyperTerminal. This will display the Connection Description dialog. 2. ...

Page 49

Check the Echo typed characters locally checkbox. 17. Check the Append line feeds to incoming line ends checkbox. 18. Check the Wrap lines that exceed terminal width checkbox. 19. Click OK. This will return to the Properties dialog. 20. ...

Page 50

Establishing a Connection Connecting a Board of Education with XP SP2 In this exercise we will step through the process of establishing a connection from an eb500 module inserted into a Board of Education (BOE ...

Page 51

Click OK This will close the Generic Bluetooth Radio Properties dialog. 5. Click OK This will close the Bluetooth Devices dialog. Step 3: Establishing trust between the PC and the eb500 module In this step we will establish a ...

Page 52

Establishing a Connection 6. Please note both the Outgoing and Incoming COM ports shown. The Microsoft Bluetooth software associates a specific COM port for a connection from the eb500. Applications, such as HyperTerminal, use this COM port ...

Page 53

PAUSE 20000 'Switch to Command Mode LOW 6 SERIN 0,84,[WAIT(CR,”>”)] 'Disconnect from the remote device SEROUT 1,84,[“dis”,CR] SERIN 0,84,[WAIT(CR,”>”)] The BASIC Stamp application establishes a connection with the PC device, waits twenty seconds, switches back to ...

Page 54

Establishing a Connection Connecting a Pocket PC 2003 device to a Board of Education In this exercise we will step through the process of establishing a connection from a Pocket PC 2003 device with integrated Bluetooth eb500 module ...

Page 55

In the Service Selection box, select A7 Serial Port. 7. Tap Next. This will create a shortcut for the service. 8. Tap Finish. This will display the Bluetooth Manager dialog with the shortcut created in the window, eb500: A7 ...

Page 56

Establishing a Connection Connecting a Board of Education to a Pocket PC 2003 device In this exercise we will step through the process of establishing a connection from an eb500 module attached to a Board of Education board to a ...

Page 57

SEROUT 1,84,[“con 00:0C:84:00:05:29”,CR] SERIN 0,84,[WAIT(“ACK”,CR)] 'Wait for the connection to be established and switch to data mode WaitForConnection: IF in5 = 0 THEN WaitForConnection HIGH 6 PAUSE 300 'Wait for 20 seconds PAUSE 20000 'Switch ...

Page 58

Establishing a Connection Step 3: Establish a Connection In this step we will establish a connection from the Board of Education board to the Pocket PC. 1. Turn on the Pocket PC 2003 device. 2. Tap the Bluetooth icon and ...

Page 59

Figure 10: Pocket PC Bluetooth Authorization Request Dialog Establishing a Connection EmbeddedBlue 500 User Manual ▪ Page 53 ...

Page 60

Establishing a Connection Page 54 ▪ EmbeddedBlue 500 User Manual This page intentionally left blank. ...

Page 61

This section contains a number of exercises that demonstrate methods of communicating over a Bluetooth wireless connection with the eb500. The scenarios described are not meant to form an exhaustive list, but rather illustrate a number of more common and ...

Page 62

Communications '-----[I/O Definitions]-------------------------------------- LMotor CON 13 RMotor CON 12 LfIrOut CON 4 LfIrIn VAR In11 RtIrOut CON 15 RtIrIn VAR In14 '-----[Constants]-------------------------------------------- LFwdFast CON LRevFast CON RFwdFast CON RRevFast CON '-----[Variables]-------------------------------------------- irBits VAR NIB irLeft VAR irBits.Bit1 irRight VAR irBits.Bit0 ...

Page 63

IF in5 = 0 THEN WaitForConnection '-----[Main Code]-------------------------------------------- Main: 'Verify the connection is still up before each loop IF in5 = 0 THEN Connect GOSUB Read_IR_Sensors BRANCH irBits,[Hold, Turn_Right, Turn_left, Move_Fwd] Move_Fwd: SEROUT 1,84,["3"] PULSOUT LMotor,LFwdFast PULSOUT RMotor,RFwdFast GOTO Main ...

Page 64

Communications irRight = ~RtIrIn RETURN BadCommand: DEBUG "A bad command was received." END ErrorCode: bErrorCode = bBuffer(4) DEBUG "An error was received: ",STR bErrorCode,CR END 3. On the File menu, click Save As the File name box, enter ...

Page 65

RRevFast CON 1000 '-----[Variables]-------------------------------------------- CmdData VAR BYTE '-----[Initialization]--------------------------------------- Initialize: 'Wait for the eb500 radio to be ready PAUSE 1000 'Set the initial state to hold CmdData = 3 '-----[Main Code]-------------------------------------------- Main: 'Wait for a command SERIN 0,84,[DEC1 CmdData] 'Process the ...

Page 66

Communications PULSOUT RMotor,RFwdFast GOTO Main Hold: GOTO Main 3. On the File menu, click Save As the File name box, enter a file name to which to save the program just created. For example, MonkeyDo.bs2. 5. Click Save. ...

Page 67

Step 4: Run the Monkey-See / Monkey-Do Applications In this step we will run the Monkey-See / Monkey-Do applications. 1. Apply power to the SumoBoard board. 2. Make the Boe-Bot robot mimic the movements of the SumoBot by putting your ...

Page 68

Communications Communicating between a PC with an eb600 and a BOE In this exercise we will step through the process of communicating between a PC that has a an eb600 RS232 Adapter and an eb500 module inserted into a Board ...

Page 69

Apply power to the Board of Education board the Run menu, click Run. 9. Establish a connection from the PC to the Board of Education. Please see the section titled Connecting a PC with an eb600 to ...

Page 70

Communications 2. Reset the eb500 attached to the Board of Education board to place the eb500 into command mode. To reset the eb500 attached to the Board of Education board, disconnect the power, wait a couple of seconds, and then ...

Page 71

WaitForConnection: IF in5 = 0 THEN WaitForConnection HIGH ...

Page 72

Communications 7. In the File name box, enter a file name to which to save the program just created. For example, HelloWorld.bs2. 8. Click Save the Run menu, click Run. This will display the Download Program dialog while ...

Page 73

Communicating between a PC with DBT-120 and a BOE In this exercise we will step through the process of communicating between a PC that has a D-Link® DBT-120 Bluetooth USB Adapter and an eb500 module inserted into a Board of ...

Page 74

Communications The application waits for an individual byte of data to arrive and then displays the byte in the debug window and then repeats this process the File menu, click Save As the File name box, ...

Page 75

Click View or modify configuration. This will display the Bluetooth Configuration dialog. 6. Select the Local Services tab and note the COM Port for the Bluetooth Serial Port service. You may have to scroll to the right to see ...

Page 76

Communications 18. In the Stop bits dropdown, select 1. 19. In the Flow control dropdown, select None. 20. Click OK. This will establish a connection with the DBT-120 Bluetooth USB Adapter software. This does NOT establish a connection with the ...

Page 77

BS2} nCount VAR BYTE 'Wait for the eb500 radio to be ready PAUSE 1000 'Connect to the remote device SEROUT 1,84,[“con 00:0C:84:00:05:29”,CR] SERIN 0,84,[WAIT(“ACK”,CR)] 'Wait for the connection to be established and switch into data mode. 'When switching into ...

Page 78

Communications The BASIC Stamp application establishes a Bluetooth connection with the PC, transmits “Hello World” ten times, switches back to command mode, and then disconnects from the remote device. The first call to SEROUT is used when the eb500 is ...

Page 79

Communicating between a PC with XP SP2 and a BOE In this exercise we will step through the process of communicating between a PC that has a Bluetooth USB adapter that is running Windows XP SP2 and an eb500 module ...

Page 80

Communications 4. On the File menu, click Save As the File name box, enter a file name to which to save the program just created. For example, Receive.bs2. 6. Click Save. 7. Apply power to the Board of ...

Page 81

SEROUT 1,84,[“con 00:0C:84:00:05:29”,CR] SERIN 0,84,[WAIT(“ACK”,CR)] 'Wait for the connection to be established and switch into data mode. 'When switching into data mode, a 300ms timeout is required to give the 'module enough time to make ...

Page 82

Communications established the eb500 is in data mode, which causes further calls to SEROUT to be sent to the remote device the File menu, click Save As. This will display the Save As dialog the File ...

Page 83

Communicating between a Pocket PC 2003 and a BOE In this exercise we will step through the process of communicating between a Pocket PC 2003 device with integrated Bluetooth, and an eb500 module inserted into a Board of Education. To ...

Page 84

Communications 7. Apply power to the Board of Education board the Run menu, click Run. This will display the Download Progress dialog while downloading the program to the BASIC Stamp. After the download is complete, the Debug Terminal ...

Page 85

Figure 14: Pocket PC Bluetooth Browser Dialog 15. Tap eb500 in the Bluetooth Browser dialog to establish a connection with the eb500 on the Board of Education. If there are no devices shown in the Bluetooth Browser dialog, tap the ...

Page 86

Communications Step 2: Transmit Data from the BASIC Stamp to the Pocket PC In this step we will create a BASIC Stamp application to send data out the eb500 to the Pocket PC. We will then download and run the ...

Page 87

PAUSE 1000 NEXT 'Switch to Command Mode LOW 6 SERIN 0,84,[WAIT(CR,”>”)] 'Disconnect from the remote device SEROUT 1,84,[“dis”,CR] SERIN 0,84,[wait(CR,”>”)] DEBUG “Disconnected”,CR The BASIC Stamp application establishes a connection with the Pocket PC, transmits “Hello World” ten times, switches back ...

Page 88

Communications Figure 15: PPCRxFromEB Pocket PC Application 10. In the Bluetooth Inbound COM Port dropdown, select the COM port number that matches the Bluetooth Inbound COM Port, which we discovered in a previous action. 11. Tap the Connect button. 12. ...

Page 89

This section contains a number of exercises that demonstrate various security scenarios that can be implemented when using the eb500 module. The scenarios described are not meant to form an exhaustive list, but rather illustrate a number of more common ...

Page 90

Security 2. Assemble the circuit shown in Figure 16 on the Board of Education breadboard. Figure 16: Closed Security Mode Circuit Diagram Step 2: Configure Bluetooth security through a BASIC Stamp application In this step we will write a BASIC ...

Page 91

BS2} '{$PBASIC 2.5} nSecurityMode VAR Byte 'Wait for the eb500 radio to be ready PAUSE 1000 'Use a secure passkey SEROUT 1,84,["set passkey a7blue*500",CR] SERIN 0,84,[WAIT(CR,">")] 'Use encryption SEROUT 1,84,["set encrypt on",CR] SERIN 0,84,[WAIT(CR,">")] 'Start with security closed GOSUB ...

Page 92

Security ELSE ENDIF ENDIF LOOP SetSecurityClosed: 'Set visible off, security closed SEROUT 1,84,["set visible off",CR] SERIN 0,84,[WAIT(CR,">")] SEROUT 1,84,["set security closed",CR] SERIN 0,84,[WAIT(CR,">")] 'Record the new mode and return nSecurityMode = 0 RETURN SetSecurityOpen: 'Set visible on, security open SEROUT ...

Page 93

RETURN END The application waits for the Stamp I/O line P13 to be pulled high as shown in Figure 17. Once line P13 is high, the eb500 module goes into a more vulnerable mode; it becomes visible and switches to ...

Page 94

Security 8. On the Run menu, click Run. This will display the Download Progress dialog while downloading the program to the BASIC Stamp. A device that implements strong security is most vulnerable when allowing devices that have not yet been ...

Page 95

Connect your PC with XP SP2 to the remote Bluetooth device. See the section named Connecting a PC with XP SP2 to a Board of Education for more information. Upon successful connection, the PC and eb500 will establish a ...

Page 96

Security Page 90 ▪ EmbeddedBlue 500 User Manual This page intentionally left blank. ...

Page 97

The EmbeddedBlue command set is comprised of visible ASCII characters. Therefore, a command can be issued from a terminal application, such as HyperTerminal, or directly from a custom application program, written in a programming language such as C++ or Visual ...

Page 98

Command Set Command Error Handling in BASIC Stamp Applications The BASIC Stamp has a software based UART; meaning it does not buffer incoming serial data. Therefore, the checking of errors from the issuing of an eb500 command must be performed ...

Page 99

Connect The connect command establishes a connection to another Bluetooth device. The connect command may be canceled before a connection is established by issuing a carriage-return to the EmbeddedBlue device. It can take up to four seconds to cancel the ...

Page 100

Command Set Delete Trusted Device The delete trusted device command removes the remote device from trusted status and prevents it from being able to connect with the EmbeddedBlue device when security is set to closed. A delete can be performed ...

Page 101

Disconnect The disconnect command closes the connection with the remote Bluetooth device. Syntax dis<CR> Example >dis<CR> ACK<CR> > Command Set EmbeddedBlue 500 User Manual ▪ Page 95 ...

Page 102

Command Set Get Address The get address command returns the address of the local EmbeddedBlue device. Syntax get address<CR> Returns The unique address of the local EmbeddedBlue device used to identify the module when making connections. In Bluetooth terminology this ...

Page 103

Get Connectable Mode The get connectable mode command returns the connectable mode setting of the local EmbeddedBlue device. Syntax get connectable<CR> Returns The current connectable mode setting of the local EmbeddedBlue device. In Bluetooth terminology, the returned value reflects the ...

Page 104

Command Set Get Encrypt Mode The get encrypt mode command returns the current encryption setting of the module. This setting controls whether the module encrypts transmitted data when security is set to either open or closed. By default EmbeddedBlue modules ...

Page 105

Get Escape Character The get escape character command returns the current character used in the Switch to Command Mode command to instruct the EmbeddedBlue device to leave Data Mode and enter Command Mode. Syntax get escchar<CR> Example >get escchar<CR> ACK<CR> ...

Page 106

Command Set Get Flow Control The get flow control command returns the flow control setting of the local EmbeddedBlue device. Syntax get flow<CR> Returns none hardware Example >get flow<CR> ACK<CR> none<CR> > Page 100 ▪ EmbeddedBlue 500 User Manual The ...

Page 107

Get Link Timeout The get link timeout command returns the amount of time, in seconds, it takes for the local EmbeddedBlue device to notice that the connection has been broken if the remote device disappears. This timeout also has an ...

Page 108

Command Set Get Name The get name command returns the name of the local device. This is the value that is transmitted when a remote device performs an Inquiry and then requests the device name. If you look for local ...

Page 109

Get Security Mode The get security mode command returns the modules current security mode setting. When security is turned off, the module will allow connections to be established by any Bluetooth device. When security is set to open, the remote ...

Page 110

Command Set Get Visible Mode The get visible mode command returns the modules current visibility setting. This setting controls whether the module can be seen by other Bluetooth devices. Syntax get visible<CR> Returns The current visible mode setting of the ...

Page 111

Help The help command returns a listing of the EmbeddedBlue commands and a brief description of each command. Syntax hlp [command]<CR> Parameters command Examples >hlp<CR> ACK<CR> … Help Information … <CR> > >hlp con<CR> ACK<CR> … Help Information on the ...

Page 112

Command Set List Trusted Devices The list trusted devices command returns a list of all the devices that are allowed to connect when security is set to closed. The maximum number of devices that can be trusted at any given ...

Page 113

List Visible Devices The list visible devices command returns a listing of all the devices that are currently in range and visible. The command may be canceled before the timeout is reached by sending an additional carriage-return to the module. ...

Page 114

Command Set Reset Factory Defaults The reset factory defaults command restores all module settings to factory defaults. This includes the baud rate parameter which may cause serial communications to be lost after the command is issued. To reestablish communications with ...

Page 115

Return to Data Mode The return to data mode command instructs the module to enter Data Mode when there is an active connection. Syntax ret<CR> Example >ret<CR> ACK<CR> > Command Set EmbeddedBlue 500 User Manual ▪ Page 109 ...

Page 116

Command Set Set Baud Rate The set baud rate command sets the baud rate for communications with the local EmbeddedBlue module. Syntax set baud rate [*]<CR> Parameters rate * Example >set baud 19200<CR> ACK<CR> > Page 110 ▪ EmbeddedBlue 500 ...

Page 117

Set Connectable Mode The set connectable mode command provides control over whether the local EmbeddedBlue module will accept connections from other Bluetooth devices. In Bluetooth terminology, this command controls the setting for page scan. Syntax set connectable on | off ...

Page 118

Command Set Set Encrypt Mode The set encrypt mode command provides control over whether transmitted data is encrypted or sent in the clear. This setting is only in effect when security is set to either open or closed. When security ...

Page 119

Set Escape Character The set escape character command provides control over the character used in the Switch to Command Mode command to instruct the module to leave Data Mode and enter Command Mode. The factory default escape character is the ...

Page 120

Command Set Set Flow Control The set flow control command provides control over the flow control setting of the local EmbeddedBlue module. Syntax set flow none | hardware [*] <CR> Parameters none hardware * Example >set flow none<CR> ACK<CR> > ...

Page 121

Set Link Timeout The set link timeout command sets the amount of time it takes for the local EmbeddedBlue module to notice that the connection has been broken, if the remote device disappears. This timeout also has an effect on ...

Page 122

Command Set Set Name The set name command sets the name of the local device. This is the value that is transmitted when a remote device performs an Inquiry and then requests the device name. If you look for local ...

Page 123

Set Passkey The set passkey command sets the passkey that is used when establishing a connection with security set to open. The passkey is set to 0000 by default, but this value should be changed to enhance security ...

Page 124

Command Set Set Security Mode The set security mode command sets the module’s current security mode setting. When security is turned off, the module will allow connections to be established by any Bluetooth device. When security is set to open, ...

Page 125

Set Visible Mode The set visible mode command provides control over whether the module can be seen by other Bluetooth devices. In Bluetooth terminology, this command controls the setting for inquiry scan. Syntax set visible on | off [*]<CR> Parameters ...

Page 126

Command Set Switch to Command Mode The switch to command mode command instructs the EmbeddedBlue module to enter Command Mode. Syntax <2 second pause>esc sequence<2 second pause> Parameters esc sequence Three consecutive instances of the escape character. The Example >con ...

Page 127

Version The version command returns the current firmware version of the EmbeddedBlue module. Syntax ver [all] <CR> Parameters all Example >ver all<CR> ACK<CR> Firmware Version: 2.0<CR> Firmware Build: 247<CR> Model Number: eb500<CR> Serial Number: 1008<CR> Manufacturer: A7 Engineering<CR> > An ...

Page 128

Command Set Page 122 ▪ EmbeddedBlue 500 User Manual This page intentionally left blank. ...

Page 129

From time-to-time A7 Engineering provides new versions of firmware that provide enhancements to the product. A7 Engineering also provides an EmbeddedBlue DFU utility which provides the mechanism to upgrade the firmware in the eb500 module. The latest version of the ...

Page 130

Firmware Upgrade Step 2: eb600 RS232 Adapter Setup In this step we will attach an eb500 module to the eb600 PC Adapter and apply power to the device. 1. Insert an eb500 module into the eb600 RS232 Adapter header; assuring ...

Page 131

Step 4: Run the EmbeddedBlue DFU Wizard In this step we will step through the EmbeddedBlue DFU Wizard and upgrade the firmware of the eb500 module. 1. Launch the EmbeddedBlue DFU Wizard. From the Start menu select All Programs then ...

Page 132

Firmware Upgrade 13. Review the information shown on the Successful Upgrade dialog. The firmware of your eb500 module has been upgraded. If the Upgrade Failed dialog appears click Details… to get additional information about the failure. Ensure that the eb500 ...

Page 133

While using the eb500 you may encounter an error. Below is a listing of all eb500 error codes with a description of what causes the error to occur. Error Code Description 1 General connection failure. 2 Connection attempt failed. This ...

Page 134

Error Codes Page 128 ▪ EmbeddedBlue 500 User Manual This page intentionally left blank. ...

Page 135

Operating Parameters The operating parameters of the eb500 are shown below in Table 2. Transmit Power 4dBm (max) class 2 operation Open Field Range eb500-AHC-IN (surface mount antenna) – 100 meters (328 feet) (Actual range is dependent upon location and ...

Page 136

Technical Specifications Dimensions The dimensions of the eb500 are shown below in Table 3. Please reference Figure 18 to locate the referenced dimension on the eb500. Dimension Page 130 ▪ EmbeddedBlue 500 User Manual ...

Page 137

Pin out The eb500 module features a 20 pin connector with 0.1” spacing for direct connection to a Parallax AppMod header. Currently, nine of the pins are in use (seven when flow control is set to none). The other pins ...

Page 138

Technical Specifications Page 132 ▪ EmbeddedBlue 500 User Manual This page intentionally left blank. ...

Page 139

How do I obtain eMbedded Visual C++ 4.0 to develop Pocket PC Question: applications? The eMbedded Visual C++ 4.0 development tool is available from Microsoft. Answer: In addition, you will need eMbedded Visual C++ 4.0 SP2 and the SDK for ...

Page 140

Frequently Asked Questions Bluetooth is a reliable point to point protocol much like TCP\IP. If transmitted Answer: data is lost or corrupted over the air it will automatically and seamlessly be retransmitted. As long as the eb500 status line tells ...

Page 141

Parallax provides technical support through email, an online group, and by telephone recommended that you use email as the first line of questioning because common questions can be answered quickly and in greater detail in this manner. Website: ...

Related keywords