Difference between revisions of "Wifi Remote I2c"

From PINE64
Jump to navigation Jump to search
 
(46 intermediate revisions by 3 users not shown)
Line 7: Line 7:
* USB/UART Programming/Console Adapter (PMPROG01) driver can be [https://www.silabs.com/products/mcu/Pages/USBtoUARTBridgeVCPDrivers.aspx Download here]
* USB/UART Programming/Console Adapter (PMPROG01) driver can be [https://www.silabs.com/products/mcu/Pages/USBtoUARTBridgeVCPDrivers.aspx Download here]
* Connect the USB/UART Programming/Console Adapter (PMPROG01) to the Wifi Remote I2c Device.
* Connect the USB/UART Programming/Console Adapter (PMPROG01) to the Wifi Remote I2c Device.
* You can power-up the WiFI Remote I2c module through the USB Bus for configuration and programming.
[[File:Wr_USB_Adpt_5v.jpg|100px|caption]]
Place the jumper J2 on USB/UART Programming/Console Adapter (PMPROG01) to 5V output selection.


=== Setting Configuration ===
=== Setting Configuration ===
[[File:Wr_Termite2.JPG|thumb|Termite Setup Screen]]
[[File:Wr_Termite2.JPG|thumb|Termite Setup Screen]]
[[File:Wr_cfghelp_scr.JPG|thumb|Help Command]]
* For windows system, you can use terminal emulator program Termite to configure the device.
* For windows system, you can use terminal emulator program Termite to configure the device.
* Termite can be downloaded at http://www.compuphase.com/software_termite.htm
* Termite can be downloaded at [http://www.compuphase.com/software_termite.htm CompuPhase Website ]
* Make sure the 'Port' setting is refer to the USB/UART Programming/Console Adapter (PMPROG01)'s Comm Port.
* Make sure the 'Port' setting is refer to the USB/UART Programming/Console Adapter (PMPROG01)'s Virtual Comm Port.
* Follow the setting according to the setup screen capture. (57600Baud 8-N-1)
* Follow the setting according to the setup screen capture. (57600Baud 8-N-1)
* Once Termite configuration is done, press 'OK' to save the setting.
* Once Termite configuration is done, press 'OK' to save the setting.
Line 20: Line 24:
* Type 'help' to show the command available for configuration.
* Type 'help' to show the command available for configuration.
* Type 'show' to list out current configuration.
* Type 'show' to list out current configuration.
* To Set the PineA64 IP address in to the device, enter (we will be using IP address 192.168.0.230 as example)
* We will use PineA64 as our Wifi Remote I2c module's server.
* To Set the PineA64's IP address in to the device, enter (we will be using IP address 192.168.0.230 as example)
   server 192.168.0.230
   server 192.168.0.230
* To configure the Wifi AP SSID and Password, (eg SSID=TestingWifi and Password=12345 )
* To configure the Wifi AP SSID and Password, (eg SSID=TestingWifi and Password=12345 )
Line 26: Line 31:
* The SSID and password are case sensitive. Please make sure it is input correctly.
* The SSID and password are case sensitive. Please make sure it is input correctly.
* Once configuration is done, type 'exit' to exit configuration mode and allow the device to reboot.
* Once configuration is done, type 'exit' to exit configuration mode and allow the device to reboot.
* After reboot, the Red LED indicator will be blinking fast. Once connected to the WiFi Access Point, the LED indicator will go into slow blink.
* Please make sure your network is has DHCP server. The WiFi Remote i2c module will be running on DHCP mode and will requesting a IP address from your network's DHCP server.
* After reboot, the Red LED indicator will start to blink in fast blinking mode.  
* Once the WiFi Remote I2c module connected to the WiFi Access Point, the LED indicator will go into slow blinking mode.
* The hardware configuration is done.
* The hardware configuration is done.
* The next step will be configure the PineWifiServer into your PineA64 board.
=== Setup the PineWifiServer ===
* [http://wiki.pine64.org/index.php/Wifi_Remote_I2c#Download Download the PineWifiServer from the Download Section]
* Copy PineWifiServer xxxxxxxx.gz  into your PineA64 with linux on it. (where xxxxxxxx is the version number)
* Unzip the file using gunzip.
* Add Execution flag on both of the file by
  chmod +x PineWifiServer
* Start the PineWifiServer by
  ./PineWifiServer
* Once the server is started, you will notice that the LED indicator on the Wifi Remote I2c Hardware will change from slow blinking to always on.
* To login into the server, telnet into localhost port 10000
  telnet localhost 10000
[[File:Wr_putty_login.JPG|thumb|PineWifiServer Login Screen]]
* To show current connect Wifi Remote I2c type 'list' in small capital letter.
* To see all available command, type 'help'.
* To exit the console, type 'exit'.
* Please take note that you are only allow one login simultaneously. The second telnet login will be rejected.
=== Running the WifiAppDemo ===
* [http://wiki.pine64.org/index.php/Wifi_Remote_I2c#Download Download the PineWifiServer from the Download Section]
* Copy WifiAppDemo xxxxxxxx.gz into your same PineA64 board that currently running with PineWifiServer. (where xxxxxxxx is the version number)
* Unzip both of the file using gunzip.
* Add Execution flag on both of the file by
  chmod +x WifiAppDemo
* before start running the demo application, please logout any telnet session to the PineWifiServer.
* The demo application will telnet into the PineWifiServer and start polling all the available Wifi Remote I2c device currently connected to the server.
* The demo application will also poll the I2c port of the hardware for the Ambient Light Sensor and the Temperature/Humidity Sensor if the sensor is connected to the Wifi Remote I2c module.
* To start the WifiAppDemo, type
  ./WifiAppDemo
* The Application will connect the PineWifiServer currently running in the localhost.
[[File:Wr_demo_application.JPG|center|caption]]
Example of screen shot with WifiAppDemo polling multiple Wifi Remote I2c with Ambient Light Sensor and Humidity/Temperature Sensor connected on it. The speed for each round of polling is 1 second per poll.
== Firmware Upgrade ==
=== Hardware Setup ===
[[File:Wr_Programming_Mode_Jumper.jpg|100px|caption]]
Short Jumper S2 on the WiFI Remote I2c module (before power up the board) to allow the board to go in to firmware programming mode.
[[File:PMWF01A_Wifi_Remote_IO_Rev3-1.jpg|thumb|Hardware Setup]]
* Make sure that the driver for USB/UART Programming/Console Adapter (PMPROG01) is properly install and the PC is detected it as Comm Port.
* The USB/UART Bridge is base on [http://www.silabs.com/products/interface/usb-bridges/classic-usb-bridges/Pages/usb-to-uart-bridge.aspx Silicon Lab CP2012 chipset].
* USB/UART Programming/Console Adapter (PMPROG01) driver can be [https://www.silabs.com/products/mcu/Pages/USBtoUARTBridgeVCPDrivers.aspx Download here]
* Connect the USB/UART Programming/Console Adapter (PMPROG01) to the Wifi Remote I2c Device.
* You can power-up the WiFI Remote I2c module through the USB Bus for configuration and programming.
[[File:Wr_USB_Adpt_5v.jpg|100px|caption]]
Place the jumper J2 on USB/UART Programming/Console Adapter (PMPROG01) to 5V output selection.
=== Software Setup ===
* Download the firmware from the [http://wiki.pine64.org/index.php/Wifi_Remote_I2c#Download download section] and unzip the file.
* Download the windows Python base Flash Download Tools by Espressif from [http://espressif.com/en/products/hardware/esp8266ex/resources Espressif website].
* Setup the ESP Flash Download tools according to the screen short.
[[File:Esp_prog_tool.JPG|400px]]
* Make sure that the firmware address is set correctly. Baud rate is set to 115200baud and Com Port is set according to the Virtual Com Port of your PC.
* Once the ESP Flash Download tool and hardware is setup properly, press the 'Start' button to start the firmware uploading process.
* After uploading is done, power off and on again the WiFi Remote I2c module to restart the system.
== Technical Specification ==
*Dimension : 47.00mm x 34.00mm
*Input Voltage : 5V
*Max. Input Current: 200mA
*Operating Frequency: 2412MHz-2484MHz
*Output power of PA for 802.11b: 19.5dBm-21.5dBm
*Recieived Sensitivity at DSSS, 1Mbps: -98dBm
== I/O Pin Out ==
[[File:IO_Pin.JPG]]


== Download ==
== Download ==
=== Program/Driver ===
*[http://www.compuphase.com/software_termite.htm Termite a simple RS232 terminal]
*[http://espressif.com/en/products/hardware/esp8266ex/resources Flash Download Tools v2.4] Under Tools Section
*[https://www.silabs.com/products/mcu/Pages/USBtoUARTBridgeVCPDrivers.aspx Silicon Lab CP2102 Virtual COM Port Driver]
*[http://files.pine64.org/doc/POT/WifiAppDemo.gz WifiAppDemo.gz]
*[http://files.pine64.org/doc/POT/PineWifiServer.gz PineWifiServer.gz]
*[http://files.pine64.org/doc/POT/PMWF01A%20Firmware.zip PMWF01A Firmware]
*[http://files.pine64.org/doc/POT/PMWF01A%20Firmware%20Source.zip PMWF01A Firmware Source]
*[http://files.pine64.org/doc/POT/PineWifiRemoteI2c%20Server%20Source.tar.gz PineWifiRemoteI2c Server Source.tar.gz]
=== Datasheet/Related Information ===
*[http://www.te.com/commerce/DocumentDelivery/DDEController?Action=srchrtrv&DocNm=PCJ_series_relay_data_sheet_E&DocType=DS&DocLang=EN TE PCJ-105D3M Relay Datasheet]
*[https://drive.google.com/file/d/0B0cEs0lxTtL3SDdCcWd0LVI2bk0/view?usp=sharing ESP8266 Datasheet]
*[http://bbs.espressif.com/ ESP8266 forum]
*[http://espressif.com/en/products/hardware/esp8266ex/resources ESP8266 Flash Download Tools, Please refer to the Tools section]
*[http://espressif.com/en/products/hardware/esp8266ex/resources ESP8266 Resources]
*[https://www.silabs.com/Support%20Documents/TechnicalDocs/CP2102-9.pdf CP2102 Datasheet]
[[Category:POT]]

Latest revision as of 16:54, 20 February 2023

PMWF01A : Wifi Remote I2c Module

Quick Start Guide

Hardware Setup

Hardware Setup
  • Make sure that the driver for USB/UART Programming/Console Adapter (PMPROG01) is properly install and the PC is detected it as Comm Port.
  • The USB/UART Bridge is base on Silicon Lab CP2012 chipset.
  • USB/UART Programming/Console Adapter (PMPROG01) driver can be Download here
  • Connect the USB/UART Programming/Console Adapter (PMPROG01) to the Wifi Remote I2c Device.
  • You can power-up the WiFI Remote I2c module through the USB Bus for configuration and programming.

caption Place the jumper J2 on USB/UART Programming/Console Adapter (PMPROG01) to 5V output selection.

Setting Configuration

Termite Setup Screen
Help Command
  • For windows system, you can use terminal emulator program Termite to configure the device.
  • Termite can be downloaded at CompuPhase Website
  • Make sure the 'Port' setting is refer to the USB/UART Programming/Console Adapter (PMPROG01)'s Virtual Comm Port.
  • Follow the setting according to the setup screen capture. (57600Baud 8-N-1)
  • Once Termite configuration is done, press 'OK' to save the setting.
  • On the Wifi Remote I2c Device, Press the configuration button to allow the device to go into configuration mode.

caption Press Config Mode button to go into configuration mode

  • Type 'help' to show the command available for configuration.
  • Type 'show' to list out current configuration.
  • We will use PineA64 as our Wifi Remote I2c module's server.
  • To Set the PineA64's IP address in to the device, enter (we will be using IP address 192.168.0.230 as example)
  server 192.168.0.230
  • To configure the Wifi AP SSID and Password, (eg SSID=TestingWifi and Password=12345 )
  wifi TestingWifi 12345
  • The SSID and password are case sensitive. Please make sure it is input correctly.
  • Once configuration is done, type 'exit' to exit configuration mode and allow the device to reboot.
  • Please make sure your network is has DHCP server. The WiFi Remote i2c module will be running on DHCP mode and will requesting a IP address from your network's DHCP server.
  • After reboot, the Red LED indicator will start to blink in fast blinking mode.
  • Once the WiFi Remote I2c module connected to the WiFi Access Point, the LED indicator will go into slow blinking mode.
  • The hardware configuration is done.
  • The next step will be configure the PineWifiServer into your PineA64 board.

Setup the PineWifiServer

 chmod +x PineWifiServer
  • Start the PineWifiServer by
 ./PineWifiServer
  • Once the server is started, you will notice that the LED indicator on the Wifi Remote I2c Hardware will change from slow blinking to always on.
  • To login into the server, telnet into localhost port 10000
 telnet localhost 10000
PineWifiServer Login Screen
  • To show current connect Wifi Remote I2c type 'list' in small capital letter.
  • To see all available command, type 'help'.
  • To exit the console, type 'exit'.
  • Please take note that you are only allow one login simultaneously. The second telnet login will be rejected.

Running the WifiAppDemo

  • Download the PineWifiServer from the Download Section
  • Copy WifiAppDemo xxxxxxxx.gz into your same PineA64 board that currently running with PineWifiServer. (where xxxxxxxx is the version number)
  • Unzip both of the file using gunzip.
  • Add Execution flag on both of the file by
 chmod +x WifiAppDemo
  • before start running the demo application, please logout any telnet session to the PineWifiServer.
  • The demo application will telnet into the PineWifiServer and start polling all the available Wifi Remote I2c device currently connected to the server.
  • The demo application will also poll the I2c port of the hardware for the Ambient Light Sensor and the Temperature/Humidity Sensor if the sensor is connected to the Wifi Remote I2c module.
  • To start the WifiAppDemo, type
 ./WifiAppDemo
  • The Application will connect the PineWifiServer currently running in the localhost.
caption

Example of screen shot with WifiAppDemo polling multiple Wifi Remote I2c with Ambient Light Sensor and Humidity/Temperature Sensor connected on it. The speed for each round of polling is 1 second per poll.

Firmware Upgrade

Hardware Setup

caption Short Jumper S2 on the WiFI Remote I2c module (before power up the board) to allow the board to go in to firmware programming mode.

Hardware Setup
  • Make sure that the driver for USB/UART Programming/Console Adapter (PMPROG01) is properly install and the PC is detected it as Comm Port.
  • The USB/UART Bridge is base on Silicon Lab CP2012 chipset.
  • USB/UART Programming/Console Adapter (PMPROG01) driver can be Download here
  • Connect the USB/UART Programming/Console Adapter (PMPROG01) to the Wifi Remote I2c Device.
  • You can power-up the WiFI Remote I2c module through the USB Bus for configuration and programming.

caption Place the jumper J2 on USB/UART Programming/Console Adapter (PMPROG01) to 5V output selection.

Software Setup

  • Download the firmware from the download section and unzip the file.
  • Download the windows Python base Flash Download Tools by Espressif from Espressif website.
  • Setup the ESP Flash Download tools according to the screen short.

Esp prog tool.JPG

  • Make sure that the firmware address is set correctly. Baud rate is set to 115200baud and Com Port is set according to the Virtual Com Port of your PC.
  • Once the ESP Flash Download tool and hardware is setup properly, press the 'Start' button to start the firmware uploading process.
  • After uploading is done, power off and on again the WiFi Remote I2c module to restart the system.

Technical Specification

  • Dimension : 47.00mm x 34.00mm
  • Input Voltage : 5V
  • Max. Input Current: 200mA
  • Operating Frequency: 2412MHz-2484MHz
  • Output power of PA for 802.11b: 19.5dBm-21.5dBm
  • Recieived Sensitivity at DSSS, 1Mbps: -98dBm

I/O Pin Out

IO Pin.JPG

Download

Program/Driver

Datasheet/Related Information