Class RN131
- java.lang.Object
-
- org.deepjava.runtime.ppc32.Task
-
- org.deepjava.runtime.mpc555.driver.RN131
-
- All Implemented Interfaces:
Ippc32,Actionable
public class RN131 extends Task
Driver for Roving RN-131C WiFly Module.
Usage:
Connect the RN131WiFly module to the serial port of the MPC555 (RXD1/TXD1 or RXD2/TXD2).
The WiFly module can also be configured with a Terminal Program like PuTTY with a baud rate of 115200 kbps, no flow control. More information to the RN131WiFly can be found at microchip.com
The WiFly module has to be configured as follows:factory RESET
set uart baudrate 115200
set sys printlvl 0
set uart mode 0x21
savee
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRN131.State
-
Field Summary
Fields Modifier and Type Field Description IntPacketintPacketByteFiforxByteFifotx-
Fields inherited from class org.deepjava.runtime.ppc32.Task
done, firstErr, maxNofTasks, nofActivations, period, safe, time
-
Fields inherited from interface org.deepjava.runtime.ppc32.Ippc32
CR, CTR, DAR, DEC, DSISR, FPR0, FPR1, FPR10, FPR11, FPR12, FPR13, FPR14, FPR15, FPR16, FPR17, FPR18, FPR19, FPR2, FPR20, FPR21, FPR22, FPR23, FPR24, FPR25, FPR26, FPR27, FPR28, FPR29, FPR3, FPR30, FPR31, FPR4, FPR5, FPR6, FPR7, FPR8, FPR9, FPSCR, LR, MSR, R0, R1, R10, R11, R12, R13, R14, R15, R16, R17, R18, R19, R2, R20, R21, R22, R23, R24, R25, R26, R27, R28, R29, R3, R30, R31, R4, R5, R6, R7, R8, R9, SPR1, SPR18, SPR19, SPR22, SPR26, SPR268, SPR269, SPR27, SPR272, SPR273, SPR274, SPR275, SPR287, SPR8, SPR9, SPRG0, SPRG1, SPRG2, SPRG3, SRR0, SRR1, TBLread, TBUread, XER
-
-
Constructor Summary
Constructors Constructor Description RN131(SCIInputStream in, SCIOutputStream out, MPIOSM_DIO reset)Creates a new RN131 object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaction()Do not call this method.booleanconnected()Checks if a TCP connectionRN131.StategetState()Gets the internal state of the driver.voidreset()Resets the internal state machine of the driver.
-
-
-
Constructor Detail
-
RN131
public RN131(SCIInputStream in, SCIOutputStream out, MPIOSM_DIO reset)
Creates a new RN131 object.- Parameters:
in- SCI Inputstreamout- SCI Outputstreamreset- Resetpin
-
-
Method Detail
-
getState
public RN131.State getState()
Gets the internal state of the driver.- Returns:
- current state of the driver
-
connected
public boolean connected()
Checks if a TCP connection- Returns:
- true if a TCP connection exists, false otherwise
-
reset
public void reset()
Resets the internal state machine of the driver.
-
action
public void action()
Do not call this method.- Specified by:
actionin interfaceActionable- Overrides:
actionin classTask
-
-