Tag Archives: server

Seg 4: Experimental analysis-2

(4) set up wifi hot spot: Since there is no other wifi hot spot in our such experimental environment, then we use OUR HTC mobile phone to set up a wifi hot spot (wifi router is suitable). After this, temperature data can be sent by wifi to the cloud. At first, opent the “WLAN hot spot” in the mobile phone. At the same time, remember to open 3G network signal, which can make temperature data collected by LM35 send to server in the remote cloud. In this experiment, the WLAN hot spot name in my phone is set as “HTCtest” for the mobile SSID, and password is “12345678″. You can also use the default name and password. However, for the input convenience, you had better to modify the default name and password.

(5) network configuration: When the computer connects the wifi network wifi HI_LINK_0021 successfully, you can input the website “192.168.16.254″ in the browser, and input the user name and password (both are “admin”) to configure the web data, which is shown in Figure 3-5.


Figure 3-5 Network data configuration

When configure the network data parameters, please note that the marked by red rectangle, and others can be default set. Some notes are given as follows.

  1. At this time, wifi module can be viewed as a collection and transmission unite, which can send the collected temperature data to the server on the remote distributed cloud.
  2. SSID and Password are denoted by the SSID and Password of the mobile phone (or wifi router).
  3. Remote ServerDomian/IP: It is pointed to the server IP address where the temperature data are stored at.
  4. Locale/Remote Port: the server port number.

After configure, click “Apply”. At this time, if you check your phone, there is a “1 user connects” in the bottom of the “WLAN hot spot”. This implies that, the wifi module on the Arduino board has been connected the mobile hot spot. That is, the wifi module has been connected the internet.

Seg 6: Software settings

2.4 Software debug

You can also use computer (PC) and/or mobile phone software to debug the wifi module. After the connection among the wifi board, Arduino shield board, USB to RS232 cable, and power, then we can test the wifi module shown by the following.

一. Computer (PC) version software

(1) software setting

Open the network serial software (which can be download from the website, if cannot find, can be contact me by my skype: yichone). Firstly, we should set simply the software environment, as shown in Figure 2-6, especially for the red label.


Figure 2-6 Simple settings for the PC network serial debug software

Some notes on the settings:

  1. PortNum: can be found at “computer (or my computer)”→right click “property”→click “device manager”→click “COM and LPT”. We can get the PortNum is COM6. So, we choose “COM6″ in the software, as shown in Figure 2-7.


Figure 2-7 query of PortNum

  1. Baud rate (BauR): during the wireless communication, the rate is generally chosen as 115200. It is also the wifi transmission rate 11MHz.
  2. Protocol: during the wireless communication, we should let wifi module as TCP Client mode. In other words, let wifi as client to visit the server.
  3. ServerIP (server IP address): :in the default factory setting, please input the IP address: 192.168.16.254. Note that, in the default factory setting, the IP address is 192.168.16.254. However, if the wifi board has ever been used, the IP address maybe is not this address. So, before using it, we must confirm the default factory setting for the wifi module. The way to default factory setting is introduced at Section 2.3.
  4. ServerPort (server port): the value is 8080.