Charon I – Web51 Home Control FWThe Charon I module with this firmware controls the RS-232 line, 8x inputs and 8x outputs, LCD display and up to 4 one-wire thermometers via Ethernet network, using Telnet or Web browser application. We should recommend you to use the Charon I Development Kit for testing and using the firmware. You can use the Charon I&II DB, which contains shifted peripherals and it's standard distributed with the Charon 2 module.This firmware is not the default firmware, so you need to upload this firmware to the module. The basic network parameters are set via RS-232 line later using the easy standard terminal application.The application is available with the source codes in the development version of Web51 system as an example. Basic Description
The Controlled and supported peripheralsThe Web51 Home Control uses the RS-232 line and 8 bits I/O port P1. You can set up two P port modes, the first is the direct port mode and the second one is a shift register usage mode. The recommended shift registers scheme is available on our web page (see Charon I&II Development Board). 8 bits port P1 – Direct accessIf you need only several I/O pins, use the Direct port communication mode. Than you can remotely control:
Using the external shift registersIf you are using the recommended P1 port extension, you will get a very powerful tool with:
Doporučený hardware
The module should be used with any other basic board, which supports at least the power supply and the right Ethernet connection. The SNMP module’s firmware instalation
The Charon Module has already the default firmware Convertor Ethernet
/ RS-232 uploaded, so the first step is to change the firmware containing
SNMP application. We will use the original Atmel's Flip program
for upload the T89C51RD2 processor.
|
|||||||||||||||||||||||||||||||||||||||||||||||
| ATTENTION |
|---|
| After each firmware upload, you must make RESET all the module's SETUP parameters to default. The internal EEPROM must be initialized by this way. Otherwise, the module does not work properly. |
The Commands description
D: Reset to defaults |
This command reloads the default EEPROM setup settings. After that the defaults are loaded, set the IP address Mask and Gateway of the module.
S: Telnet/SMTP Server IP |
It is an IP address of the other communication side:
The IP address must be different from the IP of the Gateway.
B: Speed 9600,N,8,1 |
Serial port speed: 1: 38400 Bd 2: 19200 Bd 3: 9600 Bd 4: 4800 Bd 5: 2400 Bd 6: 1200 Bd 7: 600 Bd |
| Set the RS-232 line communication speed. You cannot use other speeds or parity types than in the list. |
|
A: Add device (max.4) now:1 |
Adding One-Wire device ... OK |
E: Remove all devices |
|
| You can add or remove the 1-Wire thermometers. | |
H: HTTP password |
Enter Password for access via HTTP: |
| The I/O WEB control password. If you don’t want to use the password, do not enter any character | |
Z: System configuration |
------- System Configuration ------- T: serial server ON S: serial client ON E: e-mail OFF |
The each network parts activation.
We recommend you to switch OFF all the services, you are
not using. |
|
P: Peripherals config. |
--------------I/O ports------------- id in state id out state ------------------------------------ 0. in0 1 8. out0 0 1. in1 1 9. out1 0 2. in2 1 10. out2 0 3. in3 0 11. out3 0 4. in4 0 12. out4 0 5. in5 1 13. out5 0 6. in6 1 14. rea 0 7. in7 0 15. reb 0 -------- Temperature sensors ------- id name temperature(gr.C) ------------------------------------ 16. term1 29.7 17. term2 Not Present 18. term3 Not Present 19. term4 Not Present ---------------- Ports ------------- P: input capture Period 10(x 5ms) A: Output state after Reset 0x00 - I/O port type: Shift registers S: switch to Shift regs ports D: switch to Direct ports N: port name E: erase all names - Caption for LOW state: ---Vyp - Caption for HIGH state: Zap--- C: change HIGH/LOW captions H: set to HIGH state(1) L: set to LOW state (0) ----------- Display Mode ----------- - Mode of 2nd display line: text mode T: switch to text mode I: switch to IP mode |
| Here you can set the names of each input (0..7), „state“ indicates the inputs state, and output (8..15). The name should be long up to 6 characters. There is also the list of founded 1-Wire thermometers. You can also change the names as you need (16..19).
P: How often will be the inputs checked. A: The HEX value, which will be written to the outputs after the reset. S: Switch the P1 port to the External Shift Register mode D: Switch the P1 port to the Direct mode C: Defines the name of the logical 1 and 0 (ON and OFF, ALARM and OK..) H,L: Sets the defined pin to 1 or 0. T,I: Defines the control type of the second LCD display’s
line. (both lines text or the second line is displaying the IP
address of the last device, which connects the module). |
|
C: Controller |
|
| Switching on the Serial Line Controller. This option will be described later. | |
X: E-Mail settings |
-------------- e-Mail -------------- F: From - home_controll@web51 T: To - lsn_web51@smtp_server S: Subj.- Mousetrap state message Mask Patt. Message --------------------------------------------- 0x07 0x01 Msg1 - Mouse in the Mousetrap 0x07 0x02 Msg2 - Mousetrap - Armed 0x07 0x03 Err1 - Mousetrap - No Cheese 0x07 0x04 Err2 - Mousetrap - Under Attack 0x07 0x05 Err3 - Mousetrap - Out Of Order --------------------------------------------- C: Change Message |
| The E-mail settings.
There are 5 conditions with the e-mail texts for sending the e-mail, if this option is allowed.. Mask Defines, which input bit will be used for the Patt condition. The conditions are analyzed from the first one to the last one. |
|
Disconnect the SETUP jumper and reset the application. No page will be displayed in the terminal window. The module is in the normal, running mode.
Go to the START-> Run Application and write the command: PING x.x.x.x –t and press the Enter. The number x.x.x.x is the module’s IP address. After that you have pessed the Enter key, the computer tries to find the response of the module. If the module is set and connected well, there will be a response displayed in the window.
Now it’s time to try the WWW connection. Run the internet Explorer or any other internet browser and write the modules www address: http://x.x.x.x for example in my case http://192.168.6.15.
The module generates the HTML page (see the picture on first page), where you can see the states of the peripheries. If you have accessed the page first time or no thermometers are connected, there are no temperatures displayed. Connect the thermometers and run SETUP. You can try to change the outputs values. If there was set a password in the SETUP mode, you have to write it to the text box. Otherwise no changes will be done!
If no LED is lighting, chack the LED jumper position.
The module is now tested. You can start to work with other module’s options now.
Note: After each manipulation with SETUP jumper, you must reset the module!
Používáme
teploměrSet the SMTP IP address using the S: Telnet/SMTP Server IP IP command. The SMTP server must be accessible on this IP on port 25.
Use the X: E-Mail settings command to set your own e-mail sending conditions. The mask means, that there will be done the logical AND between the mask and input port. The pattern defines the result after the AND is done. So, the conditions works as follows: The P1 value AND MASK is equal to PATT, than send the e-mail.
If the connection with the module is opened (for example from the Telnet application)on the port 23, all the data received by the module on port 23 are sent to the module’s RS-232 line and all the data, received by the module on it’s RS-232 line are sent to the Ethernet. The receiving device is set in the SETUP mode (outgoing IP address). There MUST be set the right Server/Client option in the SETUP mode. If the module does not sends or receives any character in 50 seconds, the TCP connection is closed by the module. The RS-232 communication mode is set also in the SETUP mode.
All
the inputs, outputs and controlled peripheries has its own ID. Each
periphery can has an alias of 5 bytes. For example, the first thermometer
has a default alias “term1” and ID 16. This ID number is useful for
the remote control.
The texts of each alias might be changed in the SETUP mode. The alias cannot be changed, if the application is running.
The Alias is used by the Controller with the “$” character, while
the ID is signed by “#”.
port Defines, which device is going to be used for the command. The ID can be defined in the following ways:
command Specifies the command, which would be done
Note: In case, there was set the „IP mode“ in the SETUP, there will be displayed „!-Read Only“ if you are trying to write on the second line of LCD.
| Main page | Products | Support & Download | Pricelist | Contacts | SiteMap |