Alloy Computer Products Network Card BWS 136 User Manual

BWS-136 User Manual  
Table of Contents  
Introduction.............................................................................................4  
LAN.............................................................................................5  
Serial ...........................................................................................5  
Software ......................................................................................6  
Power...........................................................................................6  
Environment................................................................................6  
Dimension ...................................................................................6  
Panel Layout........................................................................................7  
Connecting Power .......................................................................7  
Connecting Ethernet Port ............................................................8  
Connecting Serial Port.................................................................8  
Switch SW1 Settings...................................................................8  
LED Status ................................................................................10  
Serial Port Pin Assignments......................................................11  
Factory Default Settings............................................................13  
Configure BWS-136..................................................................14  
Install Java Configuration Utility......................................................15  
Serial and Data Packing Settings...............................................17  
TCP/IP Network Settings..........................................................17  
Device Name Settings ...............................................................18  
Access Control Settings.............................................................18  
Save Configuration....................................................................20  
Save Configuration to File.........................................................20  
Overview...........................................................................................22  
Overview...........................................................................................26  
Alloy Computer Products 22/9/06  
BWS-136 User Manual_amend.doc  
- 1 -  
BWS-136 User Manual_amend.doc  
- 2 -  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Software  
Product Specifications  
Protocol: TCP, IP, HTTP, ICMP, DHCP, Telnet,  
UDP (only for programming),  
Utility: Java Configuration. Web Configuration, Serial Console,  
Telnet Console  
LAN  
Ethernet: 10/100 Mbps, RJ45 x1  
Operation Mode: TCP Server, TCP Client, Web Control  
Protection: Built-in 1500V magnetic isolation  
Power  
Serial  
Power input: 9~40VDC@100mA  
RS-232/422/485: DB9 connector x1  
RS-232 : RxD, TxD, RTS, CTS, DSR, DTR, DCD, GND  
RS-422: RX+, RX-, TX+, TX-, GND  
RS-485: Data+, Data-, GND  
Baud Rate: 300~38400 bps  
Connector: Power Jack or Terminal Block  
Environment  
Operating Temperature: 0~55°C (32~131°F), 5~95% RH  
Storage Temperature: -20~85°C (32~131°F), 5~95% RH  
Parity: None, Even, Odd  
Data Bits: 7, 8  
Stop Bits: 1, 2  
Dimension  
Flow Control: RTS/CTS, XON/XOFF  
Protection: 15KV ESD  
108x78x25 mm (HxWxD) without ear  
Digital Input/Output  
General Purpose DIO x8  
DIO0 to DIO5: Programmable Digital I/O (TTL)  
DIO6 to DIO7: Programmable Digital I/O (CMOS)  
BWS-136 User Manual_amend.doc  
- 5 -  
BWS-136 User Manual_amend.doc  
- 6 -  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Connecting 9~40VDC power line with the BWS-136 terminal  
block or the power jack. If the power is properly supplied, the  
Power LED will keep solid yellow color.  
2
Getting Started  
Connecting Ethernet Port  
Panel Layout Connecting  
Power  
Connect a RJ45 Ethernet cable to the Ethernet port of BWS-136.  
The Link/Activity light will keep solid yellow color if Ethernet  
cable is corrected to the network and this light will keep flashing if  
there are data transmitted.  
Connecting Serial Port  
Use a null modem DB9 serial cable to connect a RS232 serial  
device to BWS-136 serial port. The null modem cable will cross  
over the RxD to TxD connection between the serial device to  
Aport 211.  
Switch SW1 Settings  
Set the SW1 setting to RS-232 mode and pin definition of Aport  
211 serial port is as follow:  
BWS-136 User Manual_amend.doc  
- 7 -  
BWS-136 User Manual_amend.doc  
- 8 -  
Download from Www.Somanuals.com. All Manuals Search And Download.  
SW1 Setting:  
LED Status  
SW1 Key  
RS-232  
RS-422  
RS-485  
Normal  
DHCP  
1
2
3
4
-
5
-
The LED provides the BWS-136 operation information. The  
LED status is described as follow:  
ON  
OFF  
OFF  
-
OFF  
OFF  
ON  
-
OFF  
OFF  
ON  
-
-
-
-
-
Power LED: Power LED keeps ON if power (+9VDC to +40VDC)  
is correctly input to BWS-136.  
OFF  
OFF  
ON  
ON  
OFF  
ON  
OFF  
ON  
Ready LED: Ready LED keeps ON when Aport 211 firmware is  
ready for operation. Ready LED will be flash when Aport 211 in  
Serial Console mode (SW1 key 4 and key 5 are ON) or Telnet  
Console mode (Telnet Console port:5001 are connected)  
Link/Act LED: Link and Activity LED will turn ON when the  
Ethernet cable is connected. When there is network data traffic,  
this LED will be flash.  
Default  
Console  
Normal: Aport is in Normal Operation Mode  
DHCP: Network IP Address is assigned by DHCP Server  
Default: All the settings are reset to Factory Default.  
Console: COM1 serial port is served as console port. User can  
use ACSII command to configure BWS-136 via COM1 port.  
Please refer to Appendix I for the ASCII command  
RX/TX LED: The RX/TX LED is a dual color LED that indicates  
the serial data traffic. In RS-232 mode, the Yellow LED stands  
for transmitting data and Green LED means receiving data. In  
RS-422/485 mode, the Yellow LED stands for receiving data and  
Green LED means transmitting data.  
Changing the switch settings will not be effective until  
system reboot by pressing RESET button  
BWS-136 User Manual_amend.doc  
- 9 -  
BWS-136 User Manual_amend.doc  
- 10 -  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Digital I/O  
Serial Port Pin Assignments  
Digital I/O uses DB9 connector and the pin assignments  
are described as follow:  
Serial Port COM1 uses a Male DB9 connector and it includes  
RS-232, RS-422 and RS485 signal and pin assignments are  
described as follow:  
Pin 1: DIO4  
Pin 2: DIO3  
Pin 3: DIO2  
Pin 4: DIO1  
Pin 5: DIO0  
Pin 6: GND  
Pin 7: DIO7  
Pin 8: DIO6  
Pin 9: DIO5  
Pin  
Transmission Signals  
Number  
RS-232  
4-wire  
RS485  
TxD-  
TxD+  
RxD+  
RxD-  
GND  
-
RS-485  
1
2
3
4
5
6
7
8
9
DCD  
RxD  
TxD  
DTR  
GND  
DSR  
RTS  
CTS  
-
-
-
DIO0 to DIO5 are TTL compatible Programmable  
Data+  
DIO and DIO 6 to DIO7 are CMOS compatible Programmable DIO.  
All the DIO channel are pull up +5VDC with a 4.7K Ohm resistor.  
Data-  
GND  
-
-
-
-
DIO  
As an Input  
DIO  
As an Output  
-
-
-
GND  
GND  
BWS-136 User Manual_amend.doc  
- 11 -  
BWS-136 User Manual_amend.doc  
- 12 -  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Factory Default Settings  
Configure BWS-136  
If you forget your BWS-136 settings, you use SW1 to reset Aport  
to factory default settings. The factory default settings are:  
IP Address: 192.168.16.10  
Aport 211 provides four ways to configure the settings. They are:  
1. Java Configuration Utility  
2. Web Configuration Utility  
3. Serial Console  
Data Port: 4000  
Telnet Port: 5001  
4. Telnet Console  
Web Port: 80  
Baud rate: 19200  
To use the Java configuration utility software, you need to  
install the Java 2 Platform, Standard Edition (J2SE) version  
1.4.2 or later. J2SE is free and available at  
Data Format: N,8,1 ( Parity, Data bits, Stop bits)  
Flow Control: None  
Interface: RS-232  
BWS-136 User Manual_amend.doc  
- 13 -  
BWS-136 User Manual_amend.doc  
- 14 -  
Download from Www.Somanuals.com. All Manuals Search And Download.  
BWS-136. The default IP address of BWS-136 is 192.168.16.10.  
Click on the row of the BWS-136 setting, the configuration  
window will open as follow:  
3
Java Configuration  
Install Java Configuration Utility  
To install the Java Configuration Utility, you can simply copy  
manager.jar to the desired folder. Double click on the icon will  
start the manager.jar  
When the SW1 is set to Console mode, BWS-136 cannot  
be discovered by the Configuration Utility and  
the configurations are controlled by serial console.  
Once this program started, it will perform a broadcast search to  
find the Aport device in the network. If you cannot find the  
Aport module and you know the IP address of the module, you can  
click Search by IP item and specify the IP address to find the  
When enter the configuration mode, the READY LED will be  
flashing and TCP Data Port will be disabled and data transfer  
between serial port and Ethernet port will be stopped.  
BWS-136 User Manual_amend.doc  
- 15 -  
BWS-136 User Manual_amend.doc  
- 16 -  
Download from Www.Somanuals.com. All Manuals Search And Download.  
IP Address: Set the Static IP Address  
Subnet Mask: Subnet Mask setting  
Gateway: Gateway address setting  
Serial and Data Packing Settings  
The group of setting is to configure the serial interface and data  
packing settings. Data Packing setting is are as follow:  
Length: Pack the length of serial data before forwarding data to  
Ethernet port  
Device Name Settings  
Timeout: the period of time to forward data to Ethernet Port  
Delimiter: Wait for the Delimiter Character before forwarding  
data to Ethernet port. The Delimiters are maximum two bytes  
Hex format ASCII code. If you use Carriage Return (CR) and Line  
Feed (LF) as delimiters, you can specify 0D0A or 0d0a.  
Click Edit Device Name button can edit the device name  
TCP/IP Network Settings  
The group of TCP/IP Network settings are configuring the IP  
Address, TCP port and operation mode as follow:  
OpMode: TCP operation mode setting  
Access Control Settings  
TCP Port: TCP Port number of BWS-136  
BWS-136 provides IP address filtering method and password  
authentication for access control  
Destination IP: The IP address of remote host which BWS-136  
will actively connect to (TCP Client mode only)  
Connect At: Startup means TCP connection is established when  
system starts (TCP Client mode only)  
Timeout: When this option is checked, TCP connection will be  
disconnected if there is no serial data activity before timeout  
IP Mode: Configure the IP Address to be Static IP or Dynamic IP  
by DHCP  
BWS-136 User Manual_amend.doc  
- 17 -  
BWS-136 User Manual_amend.doc  
- 18 -  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Save Configuration  
After the all the settings are configured, click to the Save to  
Module button to save the settings to the module. The new  
settings will be effective after the reboot of module by clicking the  
Reboot Module button. If the IP address had been modified,  
please do broadcast search or search by IP again to find the  
BWS-136 module.  
Save Configuration to File  
You can also save current configuration to file by click the Save to  
File button. A new window to specify the path of the file will pop  
out as follow:  
Enable IP Filtering: When this option is checked, user can  
specify the starting IP address and ended IP address which are  
allowed to access BWS-136 TCP port in order to prevent  
unauthorized access.  
Password Settings: Enter the new password will enable the  
password authentication. Password is required to login Java  
Configuration and Web configuration Pages in the next entry.  
BWS-136 User Manual_amend.doc  
- 19 -  
BWS-136 User Manual_amend.doc  
- 20 -  
Download from Www.Somanuals.com. All Manuals Search And Download.  
The configuration is a text file and uses extension of txt. If you use  
Text editor to open the configuration command, you will notice that  
the configuration file contains the ASCII command set of the  
configuration. You can also edit these commands by the text  
editor to configure the settings and import it to the BWS-136 by  
using the Import button.  
4
Web Configuration  
Overview  
BWS-136 can also be configured by Web Browser. The build-in  
Web server and Web configuration pages makes BWS-136  
configurable anywhere via a Web browser such as IE and Firefox.  
To open the Web configuration pages, you can simply type the IP  
address to the Web Address input such as 192.168.16.10. The  
Login windows will ask you enter password if the password option  
is enabled. After password confirmed, the web configuration  
page will show up as follow:  
BWS-136 User Manual_amend.doc  
- 21 -  
BWS-136 User Manual_amend.doc  
- 22 -  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Customize Your Web Page  
The configuration is very similar to the Java configuration utility.  
After completing the settings, click submit button then all the  
settings will save to the module and the module will reboot  
automatically to use the new configuration.  
After you complete your web page design, you can use the Manager  
Utility (manager.jar) to upload the Web page to bws-136 Web server.  
The web files need to be converted to binary format first before  
download to server. Place the web files in the source directory and  
assign the output directory for the binary file. Pressing the Convert  
button and you can find a binary file, fsdata.anf has been created.  
Use this binary file to upload to Web server. You can see the  
BWS-136 User Manual_amend.doc  
- 23 -  
BWS-136 User Manual_amend.doc  
- 24 -  
Download from Www.Somanuals.com. All Manuals Search And Download.  
converted file is available in the Upload binary file to device dialog  
box. Press Upload and the Web Page Binary files will be upload to  
server. Manager Utility uses tftp protocol to upload web page.  
Before uploading the web page, please check if there is any anti virus  
program which could prevent the tftp file transfer. Shut down the anti  
virus program first to allow manager.jar upload the binary file.  
5
Serial/Telnet Command  
Overview  
BWS-136 provides a set of ASCII command to configure Aport  
through a serial and Ethernet port. User can use serial terminal or  
Telnet command to configure BWS-136 when Web browser and  
Java utility are available. In addition, these functions provide  
user the most convenient way to develop their own configuration  
utility software simply to use the ASCII command.  
Serial Console Mode  
To enter the Serial console mode, you can switch SW1 (4~5) to  
ON position and then serial port will function as a console port.  
The READY LED will keep flash that indicates BWS-136 is in  
serial console mode. Please set the serial data setting of the Serial  
Terminal software (such as Hyper Terminal) to be the same as the  
BWS-136 serial port. If you forgot the serial port setting, you can  
use SW1 to reset it to factory default setting as use following  
setting:  
Baud rate: 19200  
Data Format: N,8,1 ( Parity, Data bits, Stop bits)  
BWS-136 User Manual_amend.doc  
- 25 -  
BWS-136 User Manual_amend.doc  
- 26 -  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Flow Control: None  
Forgot Password  
Interface: RS-232  
Now you can use serial terminal software to send the ASCII  
command to BWS-136.  
If you forgot the Password, you can switch SW1 to Factory Default  
setting mode and use default IP Address 192.168.16.10 and enter the  
Web console pages. Once the configuration is completed,  
remember to switch SW1 back to Normal operation mode and  
reboot the module by Reset Command or push reset button.  
Password is not required for serial console mode. Therefore you  
can also use serial console to reset the password.  
In Serial Console Mode, all the network functions will be  
disabled  
Once the configuration is completed, remember to switch SW1  
back to Normal operation mode and reboot the module by Reset  
Command or push reset button.  
Command Syntax  
The command syntax is  
Telnet Console Mode  
[Delimiter][Command][Carriage Return/CR][Line Feed/LF]  
Delimiter (one byte): The command begins with a delimiter of  
dollar sign $ and if BWS-136 receives the correct command it will  
response with an echo which begins with the delimiter of a  
percentage sign %.  
BWS-136 uses Port number 5001 as telnet console port.  
Remember to turn on the LOCALECHO before opening the telnet  
console port. You must login first before sending command to  
BWS-136. If password is enabled, you need to use the password  
to log in. The password is encrypted using Tiny Encryption  
Algorithm (TEA) and the keys are sixteen bytes with low case  
character from “a” to “p”. The login command format is as  
follow:  
Command: The command are ASCII string which contains three  
elements: {Read/Write}{Function}{Parameter} as described as  
follow:  
$LOG[16 bytes of TEA Encrypted Password]  
or  
$LOG  
if there are no password settings  
BWS-136 User Manual_amend.doc  
- 27 -  
BWS-136 User Manual_amend.doc  
- 28 -  
Download from Www.Somanuals.com. All Manuals Search And Download.  
RS-422  
RS-485  
Command  
Category  
Basic  
Function  
(2 bytes)  
Parameters  
(command related)  
Max. 14 bytes  
Default  
R
W
S
Network  
G
G
G
G
S
S
S
S
LI: IP Address  
LN: Netmask  
LG: Gateway  
LC: IP Mode  
e.g. $SLI192.168.2.127  
e.g.$SLN255.0.0.0  
G
G
BN: Device Name  
BM: Model Name  
BP: Password  
e.g. $SLG192.168.2.254  
0: Static IP  
S
Max. 8 bytes  
Default  
G
G
BV: Firmware Ver..  
SB: Baud Rate  
1: DCHP  
Serial  
S
1200  
2400  
G
G
LM: MAC  
Default  
LS: LAN Status  
Link fail  
Link OK,100M  
Link OK, 10M  
4800  
9600  
19200  
38400  
N72  
Operation  
G
G
S
S
OM:  
Operation  
TS:TCP Server  
TC:TCP Client  
Mode  
G
S
SD: Data Format  
OC: TCP connection  
timeout option  
AC: always connect  
TO: Disconnect if  
timeout  
(Parity,Data,Stop)  
E71  
O71  
N81  
G
G
S
S
OU: Timeout clock  
OD: Data Packing  
0~65535  
E72  
(unit: ms)  
O72  
e.g. $SOU500  
E81  
Three parameters:{  
[0]:Delimiter Option  
[1]: Timeout Option  
[2]: Length Option  
}={1:Enable,0:Disable}  
e.g. $SOD110  
O81  
N82  
G
G
S
S
SF: Flow Control  
SI: Interface  
NONE  
RTS/CTS  
XON/XOFF  
RS-232  
G
S
OS: Delimiter  
Max. two bytes characters  
BWS-136 User Manual_amend.doc  
- 29 -  
BWS-136 User Manual_amend.doc  
- 30 -  
Download from Www.Somanuals.com. All Manuals Search And Download.  
e.g. $SOS0D0A (CR/LF)  
e.g. $SDMI:0,4,5  
set DIO0, DIO4, DIO5 as  
input  
G
S
OT: Timeout  
0~65535  
(unit: ms)  
e.g.$SOT500  
0~1024  
$SDMO:1,H,2,L,4,H,7,L  
set DIO1 high ,DIO2 low,  
DIO4 high, DIO7 low as  
Output  
G
G
G
S
S
S
OL: Data Length  
OF:IP Filtering  
OI: Authorized IP  
e.g.$SOL20  
Access  
Control  
0: Disable  
1:Enable  
G
G
DM: Get Digital  
e.g. $GDM  
e.g.$SOI192.168.16.1:192.1  
68.16.9 (Starting IP:Ended  
IP)  
I/O mode  
the response is  
%GDM I,O,O,O,I,I,O,O  
e.g. $GDI  
DI: Get DI channel  
TCP Server  
TCP Client  
G
S
VP: Listen Port  
1~65535  
status  
the response is  
e.g. $SVP4000  
e.g.$SCI192.168.16.200  
%GDI 0=1,4=0,5=1  
It stands for  
G
G
G
S
S
S
CI: Destination IP  
CP: Destination Port  
e.g.$SCP4001  
DIO0=1,DIO4=0,DIO5=1  
CC: Connection  
0: Reserved for PPPoE  
1:Establish connection when  
Serial Data in  
Remark: Italic font stands for Command String  
Logic  
CR/LF (two bytes): Both command from host and echo from  
BWS-136 are terminated with a Carriage Return (ACSII code Hex  
0d) and Line Feed (ASCII code Hex 0a). Therefore please  
remember to add CR/LF at the end of command line in the terminal  
emulation program.  
System  
S
YC: System mode  
R: Reboot system  
F: Reset to default setting  
and reboot  
D: Set current setting as  
Default setting  
S
S
EI: Exit console  
DM: Set Digital I/O  
mode  
All command strings are in Upper Case  
DIO  
I Input O Output  
H pull high, L pull low  
BWS-136 User Manual_amend.doc  
- 31 -  
BWS-136 User Manual_amend.doc  
- 32 -  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Echo Syntax  
Appendix A  
After BWS-136 console port received correct command string, it  
will response Echo String and the Echo Syntax is as follow:  
[Delimiter][Function][Status]  
Tiny Encryption Algorithm  
Delimiter (One byte): A percentage sign “%”  
Function (Two bytes): function string  
1. Example of TEA.C  
/************************************************  
Status: “OK” or “FAIL”  
The Tiny Encryption Algorithm (TEA) by David Wheeler and Roger Needham of the  
Cambridge Computer Laboratory. Placed in the Public Domain by  
David Wheeler and Roger Needham.  
For example: Set the IP Address by sending command  
$SLI192.168.16.100(CR)(LF)  
**** ANSI C VERSION (New Variant) ****  
Echo string  
Notes:TEA is a Feistel cipher with XOR and addition as the non-linear mixing  
functions.  
%SLIOK(CR)(LF)  
means the new IP address is successfully transferred to the module  
and the new setting will be effective after reboot the module.  
To get IP address setting, you can send a command as follow  
$GLI  
Takes 64 bits of data in v[0] and v[1]. Returns 64 bits of data in w[0] and w[1].  
Takes 128 bits of key in k[0] - k[3].  
TEA can be operated in any of the modes of DES. Cipher Block Chaining is, for  
example, simple to implement. n is the number of iterations. 32 is ample,  
16 is sufficient, as few as eight may be OK. The algorithm achieves good  
dispersion after six iterations. The iteration count can be made variable if  
required.  
then the Echo string will be  
%GLI192.168.16.100  
Always remember to reboot the module by send command  
Note this is optimised for 32-bit CPUs with fast shift capabilities. It can very  
easily be ported to assembly language on most CPUs. delta is chosen to be the  
real part of (the golden ratio Sqrt(5/4) - 1/2 ~ 0.618034 multiplied by 2^32).  
This version has been amended to foil two weaknesses identified by David A.  
Wagner ([email protected]): 1) effective key length of old-variant TEA was  
126 not 128 bits 2) a related key attack was possible  
$SYCR to use the new configuration  
BWS-136 User Manual_amend.doc  
- 33 -  
BWS-136 User Manual_amend.doc  
- 34 -  
Download from Www.Somanuals.com. All Manuals Search And Download.  
although impractical.  
}
************************************************/  
2. The TEA.H  
//#include "xtea.h"  
#ifndef __XTEA_H__  
void encipher(unsigned long *const v,unsigned long *const w,  
#define __XTEA_H__  
const unsigned long *const k)  
{
void encipher(unsigned long *const v,unsigned long *const w,  
const unsigned long *const k);  
void decipher(unsigned long *const v,unsigned long *const w,  
const unsigned long *const k);  
#endif  
register unsigned long  
while(n-->0)  
y=v[0],z=v[1],sum=0,delta=0x9E3779B9,n=32;  
{ y+= (z<<4 ^ z>>5) + z ^ sum + k[sum&3];  
sum += delta;  
z+= (y<<4 ^ y>>5) + y ^ sum + k[sum>>11 & 3];  
}
w[0]=y; w[1]=z;  
}
void decipher(unsigned long *const v,unsigned long *const w,  
const unsigned long *const k)  
{
register unsigned long  
y=v[0],z=v[1],sum=0xC6EF3720,  
delta=0x9E3779B9,n=32;  
/* sum = delta<<5, in general sum = delta * n */  
while(n-->0)  
{
z-= (y<<4 ^ y>>5) + y ^ sum + k[sum>>11 & 3];  
sum -= delta;  
y-= (z<<4 ^ z>>5) + z ^ sum + k[sum&3];  
}
w[0]=y; w[1]=z;  
BWS-136 User Manual_amend.doc  
- 35 -  
BWS-136 User Manual_amend.doc  
- 36 -  
Download from Www.Somanuals.com. All Manuals Search And Download.  

3M Pet Fence 520 01 83R01 User Manual
Acer Computer Monitor C100 Series User Manual
Adcom DVD Player GDV 870 User Manual
AKG Acoustics Microphone C680BL User Manual
Allied Telesis Network Card 7112 User Manual
American Standard Outdoor Shower 3232Y1SW User Manual
Athena Technologies Portable Speaker 5 User Manual
Avocent Switch DSR2010 User Manual
Baldor Portable Generator PC32RI User Manual
Beko Clothes Dryer DRCT 70 W User Manual