Class RN131

  • All Implemented Interfaces:
    Iarm32, Actionable

    public class RN131
    extends Task
    Driver for Roving RN-131C WiFly Module.
    Usage:
    Connect the RN131WiFly module to a serial port of the Zynq7000 (UART1 or UART2).
    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

    • Constructor Detail

      • RN131

        public RN131​(UARTInputStream in,
                     UARTOutputStream out,
                     int resetChannel)
        Creates a new RN131 object. It uses an UART together with a single pin of a flink gpio subdevice for resetting the device.
        Parameters:
        in - UART Inputstream
        out - UART Outputstream
        resetChannel - Pin number of gpio channel for reset
    • Method Detail

      • getState

        public RN131.State getState()
        Gets the internal state of the driver.
        Returns:
        current state of the driver
      • reset

        public void reset()
        Resets the internal state machine of the driver.
      • action

        public void action()
        Do not call this method.
        Specified by:
        action in interface Actionable
        Overrides:
        action in class Task