Вы находитесь на странице: 1из 6

BIueSMIR v1

1
zoo www.spurkIun.com
BloeSMiRI v1
Bloetooth Seriul Miniutore RI Link
q[S[oog

The LlneSHiJJ is the newest memIer of
onr Serial Jadios. Lased on powerfnl Llnetooth
technolog,. this latest serial caIle replacement is
smaller. faster. and more reliaIle than eer Iefore.
New featnres inclnde a size that is 0' smaller
than the original SHiJJ. etended ranges to
100meters. data rates np to 200.000Ips. and fnll-
dnple with hardware flow control.



1 Overview

The LlneSHiJJ is a IlacL Io` wireless
serial linL operating in the 2.1CHz nnlicensed
Iand. The linL is composed of two nnits. The Iase
nnit is a Llnetooth JSL dongle that attaches to
an, Windows compnter ia JSL. eliminating the
need for an eternal power connection. This is a
retail Llnetooth deice-an, Llnetooth deice can
talL with the new LlneSHiJJ'
The remote nnit (small. nnpacLaged deice) can Ie
powered from 8V np to 10V for eas, Iatter, at-
tachment. One JSL dongle can talL to np to 8 in-
diidnal LlneSHiJJ (remotes). A large nnmIer
(1000) of Llnetooth deices can operate in the
same enironment withont linL degradation.
The linL can handle fnll-dnple data rates from
9600Ips all the wa, np to 11200Ips with a range
of 200-800ft. The LlneSHiJJ firmware Inffers
incoming and ontgoing data. and has fnll error
checLing and gnarantees pacLet delier,. With a
Inilt in antenna and real-time. on-the-fl, confign-
ration the LlneSHiJJ was designed to Ie a power-
fnl and simple to nse wireless linL.
This docnment was written to eplain the
interface and protocol reqnirements for the
LlneSHiJJ JSL Powered Wireless linL. Please
report t,pos. inaccnracies. and especiall, nnclear
eplanations to ns at sparLsparLfnn.com. Sng-
gestions for improements are welcome and greatl,
alned.
Jecent wireless technolog, has come a long
wa,. Jnfortnnatel,. this has Ieen limited to the
compnter marLet in wa, of PHJA. PJ. and
BIueSMIR v1

zoo www.spurkIun.com
JSL Iased deices. The aerage emIedded hoII,-
ist does not need. and man, times has difficnlties
implementing something as comple as an 802.11g
stacL on their simple design. All one reall, needs is
a IlacL Io` of sorts to get serial data from point
A to point L. That`s where the LlneSHiJJ shines.
The LlneSHiJJ was designed to Ie as
seamless as possiIle. L, plngging in the Iase nnit
into an, JSL port. the Iase nnit gains the needed
power and the serial interface connection to the
compnter. The remote nnit can Ie powered in an,
s,stem from 8-10V and interfaces at Iand rates
Ietween 9600-11200Ips. An, character ,on pass
into either nnit will appear at the ontpnt of the
opposing nnit. No eternal antenna is needed. No
Inffering or error detection is needed. Jt`s all Inilt
in'
LlneSHiJJ 1.0 offers significant im-
proements oer preions SHiJJ ersions. The
oerall protocol is now handled I, a Llnetooth
modnle. This modnle has a higher power ontpnt
and mnch greater error checLing aIilities impro-
ing the oerall reliaIilit, of the linL. Jen in nois,
JJ enironments we are aIle to nse the
LlneSHiJJ oer longer distances and faster speeds
than the original SHiJJ.

The BloeSMiRI Connection

After going throngh the mannfactnrer's setnp.
there will Ie a fnnn, little Ilne icon in the lower
right of the menn Iar:
Jight clicL on that. then left clicL on "Start Jsing
Llnetooth". After a few generic prompts. ,on'll
rnn into this one:
L, defanlt. "Llnetooth Serial Port" shonld come
np with a checL alread, in the Io. Lnt if there
isn't one there. pnt one there Iefore proceed-
ing. Once that's done. the setnp shonld finish
within a few more prompts that ,on can jnst clicL
throngh.
Once ,on're to that point. power np the
LlneSHiJJ modnle (8-10V is acceptaIle). Power is
the onl, connection ,on need right now. Jight
clicL on the little Ilne icon again and follow the
menns liLe so:



BIueSMIR v1

zoo www.spurkIun.com
licL on "QnicL onnect" to "Llnetooth Serial
Port" to "Jind Deices". After a minnte or so of
searching. ,on shonld see this:
Jf it comes np empt,. hit "Jefresh". Sometimes it
taLes a few tries to find the other modnle. When it
does come np. donIle clicL on it to maLe a connec-
tion. Shortl, thereafter. ,on'll see this:
licLing on this prompt Irings np:
This is where ,on enter the PJN of the LJ-
S11A. Jn the datasheet. ,on'll find that the de-
fanlt alne of the PJN is "default". That's
hand,. Pnt it in and hit "OK".
The last prompt ,on'll see is:
Windows assigns a com port to ,onr JSL Llne-
tooth modnle (om 20 in m, case'). Open np
H,perterminal (or the terminal program of ,onr
choice) to the appropriate port. 9600/8/N/1. and
,on're good to go'

The Remote BloeSMiRI

.1 Pin Connections

The remote LlneSHiJJ has a standard .1
spaced header located at the end of the Ioard. The
right angle header allows the ceramic antenna Iet-
ter orientation. Si connections are aailaIle. onl,
fonr are needed for minimal operation:
BIueSMIR v1
q
zoo www.spurkIun.com
PWR : 8-10V Power
CND : Cronnd
TX-u : Transmit [rom the LlneSHiJJ -
Serial Ontpnt. Normall, connected to the JN Pin
on an, microcontroller or eqnialent JAJT.
RX-I : Jeceie |nto the LlneSHiJJ - Serial
Jnpnt. Normall, connected to the TN Pin on an,
microcontroller or eqnialent JAJT.
tTS-I : lear-To-Send |nto the LlneSHiJJ.
Jsed for hardware flow control. onnect to JTS if
not nsed.
RTS-u : Jead,-To-Send [rom the
LlneSHiJJ. Jsed for hardware flow control. on-
nect to TS if not nsed.
Warning: Jf ,on power the remote Ioard with
greater than 10V. ,on will rnn the risL of damag-
ing the onIoard oltage regnlator. Jt ma, worL for
awhile. Int higher oltages will shorten the life-
span of the part.
Note: All pins are VDD tolerant. This means that
the LlneSHiJJ can interface to V logic. 8.8V
logic. and een 6.82V logic. OnIoard HOSJJTs
translate the onIoard 8.8V to whateer oltage
,on power the nnit to. Jf ,on power the nnit with
V. the nnit will ontpnt V for a logic high. 0V for
a logic low. and can tolerate logic high leels into
the inpnt pins np to -V.
. CTS[RTS Jomper

There are two t,pes of LlneSHiJJ re-
motes. The Remote-Basie has a fonr pin interface
with TS and JTS tied together. The Remote-
Extended has a si pin interface with TS and JTS
hardware flow control pins Ironght ont. There is a
solder jnmper on the IacL side of the Jemote-
Jtended laIeled J1. )1 can Ie shorted with a
small IloI of solder connecting JTS and TS to-
gether. Jf )1 is jnmpered. these pins can Ie cnt off
the nnit or can Ie left open for normal. non-
hardware flow controlled. operation.

. Physicul imensions

The LlneSHiJJ radio measnres 1. I,
0.6 (181mm) and weighs 2grams.

. Trunsceiver Runge

We`e Ieen etremel, happ, with the
LlneSHiJJ range indoors. We can transmit
throngh 0ft. of walls. general honsing pipes. and
metal doors. Open air range (line of sight) is an im-
pressie 800ft. from a 8.8V deice'

.q Corrent Consomption

When a remote LlneSHiJJ is powered np
for the first time. consnmption is 18mA. Once a
Llnetooth serial connection to the JSL nnit is es-
taIlished. cnrrent consnmption is 21.8mA when
idle. Sending a constant stream of data. cnrrent
consnmption was measnred to Ie 88mA.
Reeommended turrent Reduetion : The 18mA
stand-I, consnmption can Ie rednced to 2mA a-
erage I, sending the following command to the
remote nnit :
ATSW21,2560,11,2560,11<cr>
OK
This command changes the scan interal and will
affect the inqnir, and connection times. Jactor,
defanlt is ATSW21,1024,12,1024,12. Hore infor-
mation can Ie fonnd on page 11 and 29 of the Lln-
eJadios AT command set. This command is re-
corded to nonolatile memor, and is retained after
a power-c,cle.
BIueSMIR v1
g
zoo www.spurkIun.com
uptional turrent Reduetion : The oerall aerage
cnrrent consnmption can Ie rednced to 8mA I,
issning a SNJJJ command to the LlneSHiJJ:
ATSNIFF,1000,100,6,100<cr>
OK
This command is not recorded to memor, and mnst
Ie re-issned on eer, power c,cle. The SNJJJ
command allows the LlneSHiJJ to go into sleep
mode when no data is Ieing transmitted. There is
significant data latenc, when this command is
nsed. Hore information can Ie fonnd on page 28 of
the LlneJadios AT command set.

.g Byte Gups und utu Lutency

The wa, Llnetooth is designed and oper-
ates. random I,te gaps of msec to 20msec are
common. PacLet size will ar, from transmission
to transmission. The faster the JAJT speed the
smaller the I,te gap dela,.
When a Llnetooth connection is made the radio
modem goes into regnlar data mode per the power-
np factor defanlt settings. This enaIles the nser to
remotel, confignre the radio settings ia a remote
JJ Llnetooth connection. Lasicall, ,on can setnp
the radio so no commands are reqnired to Ie sent
from the emIedded side of the radios JAJT. This
will preent the need for special software confign-
ration of the LlneSHiJJ modnle I, ,onr emIed-
ded s,stem.

q ConIigorution

q.1 ConIigorution Mode

onfignring the nnits (Iase/remote) can Ie
done from either nnit - the, will commnnicate with
each other to reconfignre the linL. The easiest wa,
to do this is to install Ioth nnits with the Iase nnit
attached to the JSL port and the remote nnit
powered. Once a Llnetooth serial connection is es-
taIlished. ,on will Ie aIle to enter the confignra-
tion mode I, sending three - characters and a car-
riage retnrn. Please note that the LlneJadio mod-
nle does not echo local characters.
+++<cr>
OK
An, command is now sent to the remote
LlneSHiJJ. Jor eample. sending the string:
ATSN,SparkFun<cr>
OK
Yon hae now renamed ,onr remote LlneSHiJJ
to SparLJnn from the ompnter interface' We can
donIle checL this I, sending the string:
ATSI,2<cr>
OK
SparkFun
Snre enongh' Now how do we get ont of confignra-
tion mode and IacL to passing data?
ATMD<cr>
OK
d;lksfhjkasdflkj
After the ATHD command. we get an OK` and
eer,thing we t,pe after that is sent to the remote.

q. Setting the Buod Rute

There are qnite a few commands contained
in the LlneJadios AT ommand Set datasheet.
One of the most important commands is setting
the inpnt and ontpnt Iand rate of ,onr
LlneSHiJJ. Yon can set the JAJT speed re-
motel, I, going into confignration mode and then
sending the ATSW20 command:
+++<cr>
OK
ATSW20,236,0,0,1<cr>

The important thing to note here is that there |s no
rcsonsc from the ATSW20 command. Jer, char-
acter after the carriage retnrn is sent at the speci-
fied Iand rate-600Ips in onr eample. Yon can
now close the connection and reopen it at the
specified Iand rate. There is no need to power c,cle
the remote nnit and this command has the 1` op-
tion of Ieing stored in non-olatile memor,.

BIueSMIR v1
6
zoo www.spurkIun.com
q. Iust Mode

Jinall,. if ,on need as mnch data Iand-
width as possiIle. ,on ma, want to set the
LlneSHiJJ into Jast Data Hode. Yon can do this
from the compnter I, entering confignration mode
then send the ATHJ command:
+++<cr>
OK
ATMF<cr>
OK
The nnit will respond with OK`. All following
characters are passed to the remote nnit as if in
normal data mode (there is no need to eit confign-
ration mode with the ATHD command).
Warning: Once in this mode. all confignration
characters (-`) will Ie ignored and passed as nor-
mal data. There is no wa, to reconfignre the re-
mote nnit once Jast Hode is entered. The remote
nnit can Ie reset with a power-c,cle. Once the re-
mote nnit has Ieen reset. the data mode retnrns to
normal (---` confignration command is recog-
nized).
The maimnm Iandwidth is 200KIps in fast mode
and 60KIps in regnlar data mode.

g Iirmwure

g.1 BloeSMiRI Iirmwure

One of the main reasons for moing to
Llnetooth on the latest SHiJJ reision was for
size and compleit, of the firmware. All firmware
is Inilt into the Llnetooth modnle. The firmware is
deeloped I, a team of engineers at LlneJadios.
Jnc and has Ieen field proen in millions of Llne-
tooth deices. There ma, Ie firmware reisions
oer time with changes docnmented in the follow-
ing sections.

Вам также может понравиться