Error message

Deprecated function: The each() function is deprecated. This message will be suppressed on further calls in menu_set_active_trail() (line 2394 of /home/cmedes5/public_html/homeautomationhacking/includes/menu.inc).

Wink Preconfig

Reconfiguring the Wink Hub is a two-part process. The first part uses a small script (OpenWinkpcfg) to secure the Wink Hub from firmware updates that will lock you out of the Wink Hub and prepares the Wink Hub to download and install the full OpenWink package.

The Wink Hub presents some difficulties while trying to reconfigure them wirelessly in a classroom setting. These difficulties and our desire to make our Wink Hubs as flexible as possible have led us to choose wired UART connections for our course. Both the Wink Hub and the Raspberry Pi use 3.3 volt serial signals, so only a simple point-to-point cable with no voltage conversion is needed.

Wireless Option:

If you are not taking our classes and wish to reconfigure your Wink Hub wirelessly, this browser-based tool has been tested and makes configuration simple.

Wired Option:

This process is still being developed. We are creating these instructions while we are developing the process. Use of this process at this moment has the high potential to damage the Wink Hub.

WARNING! The Wink hub contains ESD sensitive components, which will be unprotected when the circuit board is exposed. If you are not familiar with proper ESD precautions, please do not attempt!

  1. Remove the four screws on the back of the Wink Hub with a T-15 driver.

  2. Solder a 90 degree 3-pin header to the back of the Wink Hub circuit board at the DUART hole pattern. (see photo) A 90-degree header on the back of the board will allow the cover to be reinstalled without interference. We recommend a 3-pin header rather than four pins to prevent easy, accidental connection to the Wink Hub's Vcc rail.

  3. If you have chosen to install the cable with external jack:
    1. Attach the jack to the back of the Wink Hub case.
    2. Connect the other end of the cable to the header on the Wink Hub's circuit board, ensuring that the cable is properly oriented.
    3. Put the back cover back onto the Wink Hub. Ensure the UART cable isn't pinched by the case, and that the wires do not interfere with the reset button or power jack.
    4. Reinstall the four screws with a T-15 driver, being sure that you don't strip out the screw holes.


  4. Ensure that both the Wink Hub and Raspberry Pi are disconnected from their power sources.

  5. Connect the UART cable to the Raspberry Pi and the Wink Hub. Verify that the cables are properly positioned on the devices.

  6. Plug in/Turn on the Raspberry Pi and wait for it to boot to the desktop.

  7. Open Terminal on the Raspberry Pi and type minicom
    OpenWinkRPi installed minicom and a minicom configuration file for this connection, and disabled the serial console which ties up the Raspberry Pi UART by default.
    The Wink Hub uses 115200,8,N,1 for its UART connection. Minicom is already configured for these settings by OpenWinkRPi

  8. Plug in the Wink Hub and wait for it to boot. It will say "Startup Complete" when it has finished booting.
    The Wink Hub may display occasional errors as it fails to connect to the Wink servers, and may respond "SQL statement was rejected." This is normal and will not affect the preconfiguration process.

  9. Press Enter to Log In
    Type root as login name
    Enter the factory default root password

  10. The root password should be changed at this time, and can be changed at any time you are connected to the Wink Hub via UART or SSH.
    Depending on the complexity of the password you enter, it may complain. These complaints will not actually prevent the password you entered from being accepted, but should be taken under advisement.
    Type passwd and press Enter
    Enter the new password
    Enter the new password a second time
    The password is now changed

  11. Transfer the Wink Hub configuration script from the Raspberry Pi to the Wink Hub
    Type cat > openwinkpcfg
    Press Ctrl+A then S
    Arrow down to ascii and press Enter
    Arrow down to openwinkpcfg.s, press the space bar to select it and press Enter
    When the transfer window prompts "READY: press any key to continue..." press any key
    Press Ctrl+C to finish the transfer

  12. Run OpenWinkpcfg
    Type chmod +x openwinkpcfg.s and press Enter
    Type sh openwinkpcfg.s and press Enter
    The script will ask you several questions at the start. Your responses will be used to individualize your Wink Hub.
    Once the script has completed, press Enter at the prompt. The Wink Hub will reboot.

  13. If you have chosen NOT to install the UART cable with external jack:
    Disconnect the power cable from the Wink Hub
    Disconnect the UART cable from the Wink Hub circuit board
    Put the back cover back onto the Wink Hub.
    Reinstall the four screws with a T-15 driver, being sure that you don't strip out the screw holes.