Alloy Network Device BWS-136 Скачать руководство пользователя страница 17

 

BWS-136 User Manual_amend.doc

 

- 33 -

 

Echo Syntax 

After BWS-136 console port received correct command string, it 

will response Echo String and the Echo Syntax is as follow: 

[Delimiter][Function][Status] 

Delimiter (One byte): A percentage sign “%” 

Function (Two bytes): function string 

Status: “OK” or “FAIL” 

 

For example: Set the IP Address by sending command   

$SLI192.168.16.100

(CR)(LF) 

Echo string   

%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 

then the Echo string will be 

%GLI192.168.16.100 

 

Always remember to reboot the module by send command 

$SYCR

 to use the new configuration 

 

BWS-136 User Manual_amend.doc

 

- 34 -

 

 

Appendix A 

Tiny Encryption Algorithm 

1.

 

Example of TEA.C 

/************************************************ 

 

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. 

**** ANSI C VERSION (New Variant) **** 

Notes:TEA is a Feistel cipher with XOR and addition as the non-linear mixing 

functions.  

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. 

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 

Содержание Network Device BWS-136

Страница 1: ...ut 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...

Страница 2: ...g capability BWS 136 converts the serial data to standard TCP IP protocol therefore the serial device can be accessed everywhere via Internet or Ethernet In addition BWS 136 provides an embedded Web s...

Страница 3: ...SD 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 6 Software Protocol TCP IP HTTP ICMP D...

Страница 4: ...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 Conn...

Страница 5: ...s The LED provides the BWS 136 operation information The LED status is described as follow Power LED Power LED keeps ON if power 9VDC to 40VDC is correctly input to BWS 136 Ready LED Ready LED keeps O...

Страница 6: ...Data 4 DTR RxD Data 5 GND GND GND 6 DSR 7 RTS 8 CTS 9 BWS 136 User Manual_amend doc 12 Digital I O Digital I O uses DB9 connector and the pin assignments are described as follow Pin 1 DIO4 Pin 2 DIO3...

Страница 7: ...Data Format N 8 1 Parity Data bits Stop bits Flow Control None Interface RS 232 BWS 136 User Manual_amend doc 14 Configure BWS 136 Aport 211 provides four ways to configure the settings They are 1 Ja...

Страница 8: ...address of the module you can click Search by IP item and specify the IP address to find the BWS 136 User Manual_amend doc 16 BWS 136 The default IP address of BWS 136 is 192 168 16 10 Click on the r...

Страница 9: ...IP Address TCP port and operation mode as follow OpMode TCP operation mode setting TCP Port TCP Port number of BWS 136 Destination IP The IP address of remote host which BWS 136 will actively connect...

Страница 10: ...on Pages in the next entry BWS 136 User Manual_amend doc 20 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 s...

Страница 11: ...BWS 136 by using the Import button BWS 136 User Manual_amend doc 22 4 Web Configuration Overview BWS 136 can also be configured by Web Browser The build in Web server and Web configuration pages makes...

Страница 12: ...nd doc 24 Customize Your Web Page 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...

Страница 13: ...er 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...

Страница 14: ...nd format is as follow LOG 16 bytes of TEA Encrypted Password or LOG if there are no password settings BWS 136 User Manual_amend doc 28 Forgot Password If you forgot the Password you can switch SW1 to...

Страница 15: ...136 User Manual_amend doc 30 RS 422 RS 485 G S LI IP Address e g SLI192 168 2 127 G S LN Netmask e g SLN255 0 0 0 G S LG Gateway e g SLG192 168 2 254 G S LC IP Mode 0 Static IP 1 DCHP G LM MAC Defaul...

Страница 16: ...etting as Default setting System S EI Exit console DIO S DM Set Digital I O mode I Input O Output H pull high L pull low BWS 136 User Manual_amend doc 32 e g SDMI 0 4 5 set DIO0 DIO4 DIO5 as input SDM...

Страница 17: ...dham of the Cambridge Computer Laboratory Placed in the Public Domain by David Wheeler and Roger Needham ANSI C VERSION New Variant Notes TEA is a Feistel cipher with XOR and addition as the non linea...

Страница 18: ...igned 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 su...

Отзывы: