|
BowlerKernel
|


Public Member Functions | |
| BluetoothSerialConnection (BlueCoveManager blue, String deviceAddress) | |
| String | getPort () |
| synchronized boolean | connect () |
| synchronized void | disconnect () |
| String | toString () |
| int | getBaud () |
| BlueCoveManager | getBlueManager () |
| boolean | reconnect () |
| boolean | waitingForConnection () |
Public Member Functions inherited from com.neuronrobotics.sdk.common.BowlerAbstractConnection | |
| void | setThreadedUpstreamPackets (boolean up) |
| BowlerDatagram | sendSynchronusly (BowlerDatagram sendable) |
| synchronized BowlerDatagram | sendSynchronusly (BowlerDatagram sendable, boolean switchParser) |
| void | sendAsync (BowlerDatagram sendable) throws IOException |
| void | setSynchronusPacketTimeoutTime (int sleepTime) |
| int | getSleepTime () |
| long | msSinceLastSend () |
| synchronized void | setConnected (boolean c) |
| boolean | isConnected () |
| void | clearLastSyncronousResponse () |
| BowlerDatagram | getLastSyncronousResponse () |
| void | onDataReceived (BowlerDatagram data) |
| void | addDatagramListener (IBowlerDatagramListener listener) |
| void | removeDatagramListener (IBowlerDatagramListener listener) |
| void | setDataIns (DataInputStream dataIns) |
| DataInputStream | getDataIns () throws NullPointerException |
| void | setDataOuts (DataOutputStream dataOuts) |
| DataOutputStream | getDataOuts () throws NullPointerException |
| void | setChunkSize (int chunkSize) |
| int | getChunkSize () |
| void | setAsyncQueue (QueueManager asyncQueue) |
| void | setSyncQueue (QueueManager syncQueue) |
| QueueManager | getAsyncQueue () |
| QueueManager | getSyncQueue () |
| void | addConnectionEventListener (IConnectionEventListener l) |
| void | removeConnectionEventListener (IConnectionEventListener l) |
| void | setSynchronousDatagramListener (ISynchronousDatagramListener l) |
| void | removeSynchronousDatagramListener (ISynchronousDatagramListener l) |
| RpcEncapsulation | locateRpc (String namespace, BowlerMethod method, String rpcString) |
| Object[] | parseResponse (String namespace, BowlerMethod method, String rpcString, BowlerDatagram dg) |
| Object[] | send (MACAddress addr, String namespace, BowlerMethod method, String rpcString, Object[] arguments, int retry) throws DeviceConnectionException |
| boolean | isInitializedNamespaces () |
| ArrayList< String > | getNamespaces (MACAddress addr) |
| boolean | hasNamespace (String string, MACAddress addr) |
| ArrayList< RpcEncapsulation > | getRpcList (String namespace, MACAddress addr) |
| BowlerDatagram | send (BowlerAbstractCommand command, MACAddress addr, int retry) throws NoConnectionAvailableException, InvalidResponseException |
| BowlerDatagram | send (BowlerAbstractCommand command, MACAddress addr, int retry, boolean switchParser) throws NoConnectionAvailableException, InvalidResponseException |
| BowlerDatagram | send (BowlerAbstractCommand command, MACAddress addr) throws NoConnectionAvailableException, InvalidResponseException |
| BowlerDatagram | send (BowlerAbstractCommand command, MACAddress addr, boolean switchParser) throws NoConnectionAvailableException, InvalidResponseException |
| boolean | ping (MACAddress mac) |
| boolean | ping (MACAddress mac, boolean switchParser) |
| void | startHeartBeat () |
| void | startHeartBeat (long msHeartBeatTime) |
| void | stopHeartBeat () |
| double | getPercentagePrint () |
| void | setPercentagePrint (double percentagePrint) |
| long | getLastWrite () |
| void | setLastWrite (long lastWrite) |
| boolean | isUseThreadedStack () |
| void | setUseThreadedStack (boolean useThreadedStack) |
| boolean | isBeater () |
| void | setBeater (boolean beater) |
| BowlerDatagram | loadPacketFromPhy (ByteList bytesToPacketBuffer) throws NullPointerException, IOException |
| void | write (byte[] data) throws IOException |
Private Member Functions | |
| void | init () |
| synchronized boolean | recon () |
Private Attributes | |
| int | sleepTime = 800 |
| int | pollTimeoutTime = 5 |
| String | bluetoothAddress =null |
| final int | baud = 115200 |
| BlueCoveManager | blue = null |
| boolean | connecting =false |
| boolean | reconOk = false |
Additional Inherited Members | |
Static Public Member Functions inherited from com.neuronrobotics.sdk.common.BowlerAbstractConnection | |
| static BowlerAbstractCommand | getCommand (String namespace, BowlerMethod method, String rpcString, Object[] arguments, RpcEncapsulation rpc) |
Protected Member Functions inherited from com.neuronrobotics.sdk.common.BowlerAbstractConnection | |
| BowlerDatagram | fireSyncOnReceive (BowlerDatagram datagram) |
| void | fireAsyncOnResponse (BowlerDatagram datagram) |
| void | waitForConnectioToBeReady () |
The Class BluetoothSerialConnection.
Definition at line 29 of file BluetoothSerialConnection.java.
| com.neuronrobotics.sdk.wireless.bluetooth.BluetoothSerialConnection.BluetoothSerialConnection | ( | BlueCoveManager | blue, |
| String | deviceAddress | ||
| ) |
Default Constructor.
Using this constructor will require that at least the port be set later on.
The baudrate will default to 115200bps.
| blue | the blue |
| deviceAddress | the device address |
Definition at line 64 of file BluetoothSerialConnection.java.
References com.neuronrobotics.sdk.wireless.bluetooth.BluetoothSerialConnection.blue, com.neuronrobotics.sdk.wireless.bluetooth.BluetoothSerialConnection.bluetoothAddress, com.neuronrobotics.sdk.wireless.bluetooth.BlueCoveManager.getDevice(), com.neuronrobotics.sdk.common.Log.info(), and com.neuronrobotics.sdk.wireless.bluetooth.BluetoothSerialConnection.init().

| synchronized boolean com.neuronrobotics.sdk.wireless.bluetooth.BluetoothSerialConnection.connect | ( | ) |
Attempt to establish a connection. Return if the attempt was successful.
Reimplemented from com.neuronrobotics.sdk.common.BowlerAbstractConnection.
Definition at line 103 of file BluetoothSerialConnection.java.
References com.neuronrobotics.sdk.wireless.bluetooth.BluetoothSerialConnection.blue, com.neuronrobotics.sdk.wireless.bluetooth.BluetoothSerialConnection.bluetoothAddress, com.neuronrobotics.sdk.wireless.bluetooth.BlueCoveManager.connect(), com.neuronrobotics.sdk.wireless.bluetooth.BluetoothSerialConnection.connecting, com.neuronrobotics.sdk.common.Log.error(), com.neuronrobotics.sdk.wireless.bluetooth.BlueCoveManager.getDataIns(), com.neuronrobotics.sdk.wireless.bluetooth.BlueCoveManager.getDataOuts(), com.neuronrobotics.sdk.common.BowlerAbstractConnection.isConnected(), com.neuronrobotics.sdk.common.BowlerAbstractConnection.setConnected(), com.neuronrobotics.sdk.common.BowlerAbstractConnection.setDataIns(), and com.neuronrobotics.sdk.common.BowlerAbstractConnection.setDataOuts().
Referenced by com.neuronrobotics.sdk.wireless.bluetooth.BluetoothSerialConnection.recon().

| synchronized void com.neuronrobotics.sdk.wireless.bluetooth.BluetoothSerialConnection.disconnect | ( | ) |
Disconnect and deactive the current connection.
Reimplemented from com.neuronrobotics.sdk.common.BowlerAbstractConnection.
Definition at line 133 of file BluetoothSerialConnection.java.
References com.neuronrobotics.sdk.wireless.bluetooth.BlueCoveManager.disconnect(), com.neuronrobotics.sdk.wireless.bluetooth.BluetoothSerialConnection.getBlueManager(), and com.neuronrobotics.sdk.common.BowlerAbstractConnection.setConnected().
Referenced by com.neuronrobotics.sdk.ui.BluetoothConnectionPanel.BluetoothSearchProcess.run().

| int com.neuronrobotics.sdk.wireless.bluetooth.BluetoothSerialConnection.getBaud | ( | ) |
Gets the baud.
Definition at line 160 of file BluetoothSerialConnection.java.
References com.neuronrobotics.sdk.wireless.bluetooth.BluetoothSerialConnection.baud.
| BlueCoveManager com.neuronrobotics.sdk.wireless.bluetooth.BluetoothSerialConnection.getBlueManager | ( | ) |
Gets the blue manager.
Definition at line 169 of file BluetoothSerialConnection.java.
References com.neuronrobotics.sdk.wireless.bluetooth.BluetoothSerialConnection.blue.
Referenced by com.neuronrobotics.sdk.wireless.bluetooth.BluetoothSerialConnection.disconnect().
| String com.neuronrobotics.sdk.wireless.bluetooth.BluetoothSerialConnection.getPort | ( | ) |
Gets the port.
Definition at line 95 of file BluetoothSerialConnection.java.
References com.neuronrobotics.sdk.wireless.bluetooth.BluetoothSerialConnection.bluetoothAddress.
|
private |
Inits the.
Definition at line 85 of file BluetoothSerialConnection.java.
References com.neuronrobotics.sdk.common.BowlerAbstractConnection.setSynchronusPacketTimeoutTime(), and com.neuronrobotics.sdk.wireless.bluetooth.BluetoothSerialConnection.sleepTime.
Referenced by com.neuronrobotics.sdk.wireless.bluetooth.BluetoothSerialConnection.BluetoothSerialConnection().

|
private |
Recon.
Definition at line 193 of file BluetoothSerialConnection.java.
References com.neuronrobotics.sdk.wireless.bluetooth.BluetoothSerialConnection.blue, com.neuronrobotics.sdk.wireless.bluetooth.BluetoothSerialConnection.connect(), com.neuronrobotics.sdk.wireless.bluetooth.BlueCoveManager.find(), com.neuronrobotics.sdk.common.Log.info(), com.neuronrobotics.sdk.common.BowlerAbstractConnection.isConnected(), com.neuronrobotics.sdk.wireless.bluetooth.BluetoothSerialConnection.reconOk, and com.neuronrobotics.sdk.common.BowlerAbstractConnection.setConnected().
Referenced by com.neuronrobotics.sdk.wireless.bluetooth.BluetoothSerialConnection.reconnect().

| boolean com.neuronrobotics.sdk.wireless.bluetooth.BluetoothSerialConnection.reconnect | ( | ) |
Reconnect.
Definition at line 182 of file BluetoothSerialConnection.java.
References com.neuronrobotics.sdk.wireless.bluetooth.BluetoothSerialConnection.recon(), and com.neuronrobotics.sdk.wireless.bluetooth.BluetoothSerialConnection.reconOk.

| String com.neuronrobotics.sdk.wireless.bluetooth.BluetoothSerialConnection.toString | ( | ) |
Definition at line 150 of file BluetoothSerialConnection.java.
References com.neuronrobotics.sdk.wireless.bluetooth.BluetoothSerialConnection.bluetoothAddress.
| boolean com.neuronrobotics.sdk.wireless.bluetooth.BluetoothSerialConnection.waitingForConnection | ( | ) |
Attempt to re-establish a connection. Return if the attempt was successful.
Reimplemented from com.neuronrobotics.sdk.common.BowlerAbstractConnection.
Definition at line 209 of file BluetoothSerialConnection.java.
References com.neuronrobotics.sdk.wireless.bluetooth.BluetoothSerialConnection.connecting.
|
private |
The baud.
Definition at line 42 of file BluetoothSerialConnection.java.
Referenced by com.neuronrobotics.sdk.wireless.bluetooth.BluetoothSerialConnection.getBaud().
|
private |
The blue.
Definition at line 45 of file BluetoothSerialConnection.java.
Referenced by com.neuronrobotics.sdk.wireless.bluetooth.BluetoothSerialConnection.BluetoothSerialConnection(), com.neuronrobotics.sdk.wireless.bluetooth.BluetoothSerialConnection.connect(), com.neuronrobotics.sdk.wireless.bluetooth.BluetoothSerialConnection.getBlueManager(), and com.neuronrobotics.sdk.wireless.bluetooth.BluetoothSerialConnection.recon().
|
private |
The bluetooth address.
Definition at line 39 of file BluetoothSerialConnection.java.
Referenced by com.neuronrobotics.sdk.wireless.bluetooth.BluetoothSerialConnection.BluetoothSerialConnection(), com.neuronrobotics.sdk.wireless.bluetooth.BluetoothSerialConnection.connect(), com.neuronrobotics.sdk.wireless.bluetooth.BluetoothSerialConnection.getPort(), and com.neuronrobotics.sdk.wireless.bluetooth.BluetoothSerialConnection.toString().
|
private |
The connecting.
Definition at line 48 of file BluetoothSerialConnection.java.
Referenced by com.neuronrobotics.sdk.wireless.bluetooth.BluetoothSerialConnection.connect(), and com.neuronrobotics.sdk.wireless.bluetooth.BluetoothSerialConnection.waitingForConnection().
|
private |
The poll timeout time.
Definition at line 35 of file BluetoothSerialConnection.java.
|
private |
The recon ok.
Definition at line 51 of file BluetoothSerialConnection.java.
Referenced by com.neuronrobotics.sdk.wireless.bluetooth.BluetoothSerialConnection.recon(), and com.neuronrobotics.sdk.wireless.bluetooth.BluetoothSerialConnection.reconnect().
|
private |
The sleep time.
Definition at line 32 of file BluetoothSerialConnection.java.
Referenced by com.neuronrobotics.sdk.wireless.bluetooth.BluetoothSerialConnection.init().