You are welcome to enter the world of the Internet of things in the cool. It has a free air and a natural atmosphere. Next I'll tell you what to do if you build your own IoT platform in one step.
The cool of the website address: http://icoolpy.com
Because of the complexity of the openwrt system, I don't know how to start. You can only use examples to illustrate how and how the Configuration works:
1. Run the cool and swelling IoT system with the firmware provided by the Youku
A. Enter the cool OpenWrt version of the official dot click:
Here is the first explanation of what they are;
A1. Nodeforopenwrt There are two files in this folder, if there is a very lucky also have a openwrt system has been brushed the router, you can directly install these two files will be removed from the firmware provided by the cool, if your openwrt version should be a new kernel, Install the first step to install the beginning of the UC IPK, the second step to install node at the beginning of the IPK, installation method, please search the Internet opkg usage, example: opkg install XXXXX.IPK
A2. WinSCP and putty are all tools for writing firmware. The WINSCP is used to upload the firmware bin to the router, and Putty is the tool to log in to the router via SSH. The premise is that you first have to enable SSH in the router's web administrator, and you have the OPENWRT system with root privileges.
A3. The HC5761 bin file is the firmware for Polar Route 2.
A4. The HC5661 bin file is the firmware of the polar route 1s.
A5. Coolpyopwrt is the cool-and-ready system that we need to run eventually. Many people ask why did not see the source code generation of download connection in the official website, I want to tell everyone just download is the source, running is the source code, not processed. For you to download back the source code source files must be. Includes other versions of the cool and hip IoT system.
B. The first way to use the awesome firmware:
B1. First tells you that currently only provides the firmware of the polar route 1s and the polar route 2, and the two bins of HC5761 and HC5661 respectively correspond to pole 2 and pole 1s. Download it back to your computer. This document uses the HC5661-pole route 1s as a description, the very 2 router is just the bin file different, the other operation is the same.
B2. Preparatory work. Please purchase the original polar routing device, because only the 9003 version of the firmware of the polar routing device is root, so when you buy must first ask the seller, otherwise you will waste some time on root problem.
B3. Decompression start Winscp.exe: The default IP is 192.168.199.1, the account is root, the password is admin (if you log in the router modified password), the file protocol must choose "SCP".
B4. When everything goes wrong, press "OK" to copy your bin file to the TMP directory of the router after logging in. Directly on the left, click the bin file and drag it to the right to copy and transfer to the router. Close WinSCP when finished.
B5. Start Putty.exe: Login parameters and WINSCP, just do not have to choose the file protocol.
Open, you will be asked to enter the account: The account is root, password is admin (if you log on the router modified password)
B6. Key step, brush write bin firmware to router flash.
Cd/tmp
MTD Write Xxxxxxx.bin firmware
Xxxx.bin is the bin file name that was just uploaded with WinSCP.
If you want to query whether this file can be viewed with the LS command. The following information appears:
Unlocking firmware ...
Writing from Hiwifi-key.bin to firmware ... [W]
Writing from Hiwifi-key.bin to firmware ...
It usually takes a few minutes for you to restart the router via the reboot command or a direct power outage, and the router has already brushed the firmware provided by the cool guy.
C. Now that all the basic conditions needed to run the cool guy are complete, we'll copy the cool guy to the SD card and let the router boot up and run.
C1. Download Coolpyopwrtxxxx.zip extract to the SD card coolpy folder, if you do not create a new bar.
Do not underestimate the process, the general small white also really can not do. The following is the operation of Cheung Fine:
First you have a Linux computer or a virtual machine, then insert the SD, and also put the cool and the system into the system. Copy to SD card using the following instructions:
Copy operation, the following instruction wrtcoolpy is coolpyopwrtxxx.zip extracted content, and/media/jac/this beginning is from the road to unplug the SD card.
sudo su
Cp-r/media/jac/orcusb/wrtcoolpy/media/jac/2fd4bcda-53f6-489b-83bd-fb4b4051ac44/coolpy
Delete operation, if you have any unexpected copy operation, you can remove the Coolpy folder on the SD card by using the following instructions, and then start again.
sudo rm-rf coolpy
When you are finished, reseat the SD card back into the router. This completes the SD card operation. If you want to upgrade the cool system in the future, the new version of the system will be replaced by the cool of the coolpy file of the SD card content can be. However, this operation will delete the database together, please filter clear before operation.
D. The following operations are all logged into the router's web management system operation,
D1. System/mount point/Mount point, select "Enable"
D2. Network/Firewall/Open router port share name 1337, external port 1337, save and apply
D3. System/Boot entry/Local startup script, add a line of code: Node/mnt/mmcblk0p2/coolpy/bin/coolpy.js, where/mnt/mmcblk0p2 is the mount point path, and ultimately depends on the different SD mount path and modified, Here is an example:
------------------------------------------------------------------------------------------
# Put Your custom commands here This should be executed once
# The System Init finished. By default this file does nothing.
Node/mnt/mmcblk0p2/coolpy/bin/coolpy.js
Exit 0
-----------------------------------------------------------------------------------------
When you are done restarting the router, it will automatically run in the router. We can open the system by "http://Router ip:1337". At this point it has finished running the cool gangster in your router.
E. The last few things that need to be solved, do this here if your only need to cool the only operation in a local area network work has been completed. Then, if you need to allow the extranet to access the system in the router, you need to do the following:
E1. Configure your router to connect to the Internet, no wheel you are through the ADSL bracket or wifi signal relay, please connect the router to the network, if the subnet please do IP address mapping. The next operations are all Web Management system operations that log on to the router.
E2. Configuring dynamic Domain Name Service with peanut shells as an example: Service/Dynamic DNS enable, WAN, custom, updated url:http://[user name]:[password] @ddns. oray.com/ph/update?
Host name, user name/password blank,
IP Address Source Url:http://ddns.oray.com/checkip
Check the time interval for IP changes: 5 minutes
E3. System/Scheduled Tasks/Add content */5 * * * */etc/init.d/ddns start Save
----------------------------------------------------------------------------------
If you have any questions, please contact:
qq:229292620
Email:[email protected]
Cool Ruffian running on OpenWrt routing system