REMOTE[RS232] Using Easy-Server V0.9

Wichit Sirichote, kswichit@kmitl.ac.th

Connecting PIC16F84 to internet gateway, set/clear bit, read bitfrom wherever internet terminal available. Free download Easy-Server V0.9beta!


A diagram shown above was to demonstrate the use of Easy-ServerV0.9 to connect PIC16F84 chip through internet terminal. A PIC16F84 receivesand sends ascii character as a command or data via a 9600 8n1 serial port,COM1 say, to a PC having IP address. The Easy-Server run on PC under Windows95,98,NT, forms a TCP/IP stack and sends over the internet network. Whereveryou find internet terminal, use Telnet to connect the PIC16F84, with IPaddress of the PC and Port 8888, say. We then can set/clear LEDs (LED1,LED2), turn electromechanical RELAY (K1) on/off or read digital input (S1,S2)definitely around the Earth. Many have ask me what for? I said just forfun. I suppose after reading and making the circuit, you may got othersuseful idea, say Telemetering, Remote control, Alert signaling.Please send me your project, I shall provide for others.

Let Build PIC16F84 first

The circuit for demonstration uses a PIC16F84 run with 4MHz Xtal. RA0and RA1 provide sink current output for driving small LEDs. RB0 drivesa 2n3904 which in turns drive a 12V RELAY (K1). Two bits, RB1 and RB2 areinput port to read logic status of S1 and S2. The serial interfacing forRS232C standard uses simple TTL level but the logic is inverted. With a1K connected to RxD and a 20K to TxD, the circuit works well with any PC.

The original C program for REMOTE RS232 is Remote.cwith Remote.h for headre file and the HEXfile ready for F84 Programmer is Remote.hex.

Test with Hyperterminal

After finish build the circuit, you can test the board with direct connectto any communication program. Below showed example of using Hyperterminal.

Press Enter key, it sends Title message "REMOTE[RS232]".
Try set/clear LED using "1" and "2", or command 7 to read logic atthe input for SW1, say. If success then get the Easy-Server below to testremote login.

Download Easy-Server V0.9 (available onlyexecutable file)

The original version of Easy-Server was written by Zong who(see aboutin Easy-Server screen) wrote me many PC program using Delphi.
 
20 May 2000
EZ-Server V0.9
358kB
beta version
 
EZ-Server V1.0
 N/A
with SMTP

Initial Password

You can switch ezserver to initializemode by deleting 'config.ini' in the folder of ezserver and defaultpassword is 'password'. This enables you to enter at first log-in.

Running Easy-Server V0.9

Without IP address that connected to internet gateway, you may run Easy-Serveron your PC at home, by using Local IP address, i.e. 127.0.0.1 with port8888, say.

While waiting client, invoke Telnet with Remote System IP address withport 8888.

Example shown above is sending command '1','2','3','4', say. For command'7' and '8', the REMOTE[RS232] will send back status of SW1 and SW2.

Change Welcome Message, Password, and Port number

You may change the welcome message, password, and port number easilyby config icon in the EZ server screen.

As shown above, next version Zong would prepare us with SMTP for sendinge-mail from microcontroller to your address or sending message throughyour pager. Details of Easy-Server, please ask him directly here zongwitc@yahoo.com.