Files
MINDdroidCV/MINDdroidCV_MINDSTORMS/bin/com/lego/minddroid/BTCommunicator.class

105 lines
10 KiB
Plaintext
Raw Normal View History

2011-10-12 13:16:02 +02:00
<EFBFBD><EFBFBD><EFBFBD><EFBFBD>2<01>!com/lego/minddroid/BTCommunicatorjava/lang/ThreadMOTOR_AI ConstantValueMOTOR_BMOTOR_CMOTOR_B_ACTION( MOTOR_RESET
DO_BEEP3 DO_ACTION4READ_MOTOR_STATE<GET_FIRMWARE_VERSIONF
DISCONNECTc DISPLAY_TOAST<03>STATE_CONNECTED<03>STATE_CONNECTERROR<03>STATE_CONNECTERROR_PAIRING<03> MOTOR_STATE<03>STATE_RECEIVEERROR<03>STATE_SENDERROR<03>FIRMWARE_VERSION<03>
FIND_FILES<03> START_PROGRAM<03> STOP_PROGRAM<03>GET_PROGRAM_NAME<03> PROGRAM_NAME<03>SAY_TEXT VIBRATE_PHONENO_DELAYSERIAL_PORT_SERVICE_CLASS_UUIDLjava/util/UUID;OUI_LEGOLjava/lang/String;?00:16:53
mResourcesLandroid/content/res/Resources; btAdapter$Landroid/bluetooth/BluetoothAdapter; nxtBTsocket#Landroid/bluetooth/BluetoothSocket;nxtOutputStreamLjava/io/OutputStream;nxtInputStreamLjava/io/InputStream; connectedZ uiHandlerLandroid/os/Handler; mMACaddressmyOwner"Lcom/lego/minddroid/BTConnectable; returnMessage[B myHandler<clinit>()VCodeX$00001101-0000-1000-8000-00805F9B34FB
Z\[java/util/UUID ]^
fromString$(Ljava/lang/String;)Ljava/util/UUID; ` :;LineNumberTableLocalVariableTable<init>|(Lcom/lego/minddroid/BTConnectable;Landroid/os/Handler;Landroid/bluetooth/BluetoothAdapter;Landroid/content/res/Resources;)V
f cU h DE j FG l HI n JKp#com/lego/minddroid/BTCommunicator$1
or cs&(Lcom/lego/minddroid/BTCommunicator;)V u SM w OP y LM { BC } @Athis#Lcom/lego/minddroid/BTCommunicator; resources
getHandler()Landroid/os/Handler;getReturnMessage()[B <00> QR setMACAddress(Ljava/lang/String;)V <00> N= isConnected()Zrun
<00> <00>UcreateNXTconnection
<00> <00><00>receiveMessage <00><00><00>com/lego/minddroid/LCPMessage <00><00> REPLY_COMMANDB <00><00> <00><00>DIRECT_COMMAND_NOREPLY
<00> <00><00>dispatchMessage([B)V
<00> <00><00> sendState(I)V<00>java/io/IOExceptioneLjava/io/IOException; StackMapTable
Exceptions
<00><00><00>"android/bluetooth/BluetoothAdapter <00><00>getRemoteDevice7(Ljava/lang/String;)Landroid/bluetooth/BluetoothDevice;
<00>f
<00><00><00>android/content/res/Resources <00><00> getString(I)Ljava/lang/String;
<00> <00><00> sendToast
<00><00><00>!android/bluetooth/BluetoothDevice <00><00>!createRfcommSocketToServiceRecord5(Ljava/util/UUID;)Landroid/bluetooth/BluetoothSocket;
<00><00><00>!android/bluetooth/BluetoothSocket <00>Uconnect <00><00><00> com/lego/minddroid/BTConnectable <00><00> isPairing%
<00><00><00>java/lang/Object <00><00>getClass()Ljava/lang/Class;<00>createRfcommSocket<00>java/lang/Class <00><00><00>java/lang/Integer <00><00>TYPELjava/lang/Class;
<00><00> <00><00> getMethod@(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
<00><00> <00><00>valueOf(I)Ljava/lang/Integer;
<00><00><00>java/lang/reflect/Method <00><00>invoke9(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
<00><00> <00><00>getInputStream()Ljava/io/InputStream;
<00><00> <00><00>getOutputStream()Ljava/io/OutputStream;<00>java/lang/ExceptionnxtBTSocketTemporary nxtDevice#Landroid/bluetooth/BluetoothDevice;mMethodLjava/lang/reflect/Method;e1Ljava/lang/Exception;destroyNXTconnection
<00><00> <00>Uclose sendMessage
java/io/OutputStream <00>write
  ([BII)Vmessage messageLength
 java/io/InputStream read()I
  ([B)IlengthsendMessageAndState
 <00>doBeep(II)V
<00> getBeepMessage(II)[B
 <00>
" #<00> waitSomeTime frequencydurationdoAction
<00>( )*getActionMessage(I)[BactionNr startProgram
<00>. /0getStartProgramMessage(Ljava/lang/String;)[B programName stopProgram
<00>4 5<00>getStopProgramMessagegetProgramName
<00>8 9<00>getProgramNameMessagechangeMotorSpeed
<00>< =getMotorMessagemotorspeedrotateTo
<00>B =C(III)[Bendreset
<00>G H*getResetMessagereadMotorState
<00>K L*getOutputStateMessagegetFirmwareVersion
<00>O P<00>getFirmwareVersionMessage findFiles(ZI)VT*.*
<00>V WXgetFindFilesMessage(ZILjava/lang/String;)[B findFirsthandle
\ ]^sleep(J)V`java/lang/InterruptedExceptionmilliscandroid/os/Bundle
bf
bg hiputInt(Ljava/lang/String;I)Vk toastText
bm no putString'(Ljava/lang/String;Ljava/lang/String;)V
q rs
sendBundle(Landroid/os/Bundle;)VmyBundleLandroid/os/Bundle;
wyxandroid/os/Handler z{ obtainMessage()Landroid/os/Message;
}~android/os/Message <01>ssetData
w<01> <01>(Landroid/os/Message;)Z myMessageLandroid/os/Message;access$0((Lcom/lego/minddroid/BTCommunicator;II)V
<01> :access$1
<01> @access$2'(Lcom/lego/minddroid/BTCommunicator;I)V
<01> E<00>access$38(Lcom/lego/minddroid/BTCommunicator;Ljava/lang/String;)V
<01> ,<00>access$4
<01> 2Uaccess$5
<01> 6Uaccess$6
<01> access$7
<01> &<00>access$8
<01> I<00>access$9
<01> MU access$10((Lcom/lego/minddroid/BTCommunicator;ZI)V
<01> QR access$11
SourceFileBTCommunicator.java InnerClasses!' 
    !"#$%&'()*+,-./0123456789:;<=>@ABCDEFGHIJKLMN=OPQRSM(TUV- W<>Y<>_<>a
H*bcdV<00>:*<2A>e*<01>g*<01>i*<01>k*<03>m*<2A>oY*<2A>q<>t*+<2B>v*,<2C>x*-<2D>z*<04>|<7C>a. YN OPQ<01>$Z)[.\3]9^b4:~:OP:LM:BC:<00>A<00><00>V/*<2A>t<>aab ~<00><00>V/*<2A><00><>aeb ~<00><00>V>*+<2B><00><>a
ijb~N=<00><00>V/*<2A>m<>apb ~<00>UV<00>W*<2A><00><>KL<4B>G**<2A><00><><00>*<2A><00><><05>6*<2A><00>3<><00><>*<2A><00>3<><00><>**<2A><00><><00><>L*<2A>m<>
*<03><><00><>*<2A>m<><6D><EFBFBD><EFBFBD><00> <?<00>a6 {} <00><00>(<00>4<00>?<00>@<00>G<00>N<00>OV<00>bW~@<00><00><00>G<00>(B<00><><00><><00>U<00><00>V<02>M*<2A>z*<2A><00><><00>M,<2C>'*<2A>x<> <0B><00>Y<EFBFBD><00><>**<2A>|<12><><00><><00>*<03><><00><>,<2C>_<><00>L+<2B>§{N*<2A>v<><00><00>$*<2A>x<>**<2A>|̶<00><><00>*<03><><00><>-<2D><>,<2C><00><12><04><00>Y<03><00>S<EFBFBD><00>:,<04><00>Y<04><00>S<EFBFBD><00><><00>L+<2B>§:*<2A>x<> <0B><00>Y<EFBFBD><00><>*<03><><00><>*+<2B>g**<2A>g<><00><>k**<2A>g<><00><>i*<04>m<>.L*<2A>x<>+<2B>*<2A>v<><00><00>**<2A>|̶<00><><00>*<03><><00><>*<2A>x<>
*<03><><00><>>BE<00>s<00><00><00>5<00><00>6r<00><00>s<00><00><00><00><00><00><00>a<00>'<00><00><00><00><00>!<00>.<00>5<00>6<00>><00>E<00>F<00>R<00>Y<00>f<00>p<00>r<00>s<00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00>
<00> <00><00><00>bH~><00><00>E<00><00><00>Fw<00><00><00><00><00><00><00><00><00>*<00><00><00>Q<0E>!<00><14><00><00><00><>*<00>p<00><><00><><07>"<00><> <00><18> <00>U<00><00>V<00>>*<2A>g<>*<03>m*<2A>g<><00>*<01>g*<01>k*<01>i<>L*<2A>x<>+<2B>**<2A>|<00><00><><00><>"%<00>a. <00><00> <00><00><00><00>%<00>&<00>-<00>/<00>=<00>b>~&<00><00><00>L<00><> <00><> <00><00><00>V<00>1*<2A>i<> <0B><00>Y<EFBFBD><00><>+<2B>=*<2A>i<1C>*<2A>iz<>*<2A>i++<2B><><07>a<00><00><00><00><00>%<00>0<00>b 1~1
R <00><00><00><00><00>V<00>3*<2A>k<> <0B><00>Y<EFBFBD><00><>*<2A>k<> <*<2A>k<> x`<<1B>M*<2A>k,<2C>W,<2C>a$(1b 3~( QR<00><00>V<00>*<2A>i<><04>*+<2B><17> M*<03><><00><> <00>ab ~
R<00><00><00>G<00><00><00>V;<00>+3<><00><07><><EFBFBD><EFBFBD>c<><63><EFBFBD><EFBFBD>c<><63><EFBFBD><EFBFBD>RAz0<00>1<00>+<2B><19>a*<03><><00><>W+<2B><07>P*<03><><00><>F+<2B><1C>?+3<>9*<03><><00><>/+<2B><17>(*<03><><00><>+<2B><16>
*<06><00>+<2B><06>
*<07><00><>aND K!R#U'\(c*f/m1s2z5}9<00>:<00>=<00>A<00>B<00>F<00>G<00>Jb<00>~<00>
R<00> <0B>D    Vf<1C>N*-<2D>*<14>!<21>aMN OPb*~$% 
R&<00>VQ <1B>'M*,<2C><1F>aST
Ub  ~ +
R,<00>VQ +<2B>-M*,<2C><1F>aXY
Zb  ~ 1=
R2UVF
<EFBFBD>3L*+<2B><1F>a]^ _b
~
R6UVF
<EFBFBD>7L*+<2B><1F>abc db
~
R:V<00>!d<> d=<3D> <10><><10>=<1C>;N*-<2D><1F>agh jkmn ob*!~!>!?
R<00> @V^<10><1C>AN*-<2D><1F>ars tb*~>D
RE<00>VQ <1B>FM*,<2C><1F>awx
yb  ~ >
RI<00>VQ <1B>JM*,<2C><1F>a|}
~b  ~ >
RMUVF
<EFBFBD>NL*+<2B><1F>a<01><01> <01>b
~
RQRV_S<>UN*-<2D><1F>a<01> <01><01>b*~YKZ 
R#<00>V[
<1B><>[<5B>M<>_a<01><01> <01>b
~
a<00>H_<00><00>Vn <20>bY<62>dM,e<03><>f,j+<2B>l*,<2C>p<>a<01><01><01><01><01>b  ~ k=tu<00><00>V`<16>bY<62>dM,e<1B>f*,<2C>p<>a<01><01><01><01>b ~
tursVa*<2A>t<>vM,+<2B>|*<2A>x,<2C><01>W<EFBFBD>a<01><01> <01><01>b ~tu<01><01><01><01>V'*<1C><01><>afb<01><01>V'*<1C><01><>aqb<01><01>V&*<1B><01><>avb<01><01>V&*+<2B><01><>aWb<01>sV%*<2A><01><>a\b<01>sV%*<2A><01><>aab<01><01>V'*<1C><01><>aLb<01><01>V&*<1B><01><>aRb<01><01>V&*<1B><01><>a{b<01>sV%*<2A><01><>a<01>b<01><01>V'*<1C><01><>a<01>b<01><01>V&*<1B>!<21>a<01>b<01><01><01>
o