APC AP9212 Guía de usuario Pagina 1

Busca en linea o descarga Guía de usuario para Los conmutadores de red APC AP9212. APC AP9212 Developers guide [en] Manual de usuario

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 147
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 0
UNIVERSITY OF NEW SOUTH WALES
School of Computer Science & Engineering
Hardware control systems using Java
November 2002
Oliver Mather
Student Number 3015072
Bachelor of Engineering (Software)
The University of Newcastle
Supervisor: Assoc. Prof. Michael Ashley
Assessor: Steve Matheson
Vista de pagina 0
1 2 3 4 5 6 ... 146 147

Indice de contenidos

Pagina 1 - Oliver Mather

UNIVERSITY OF NEW SOUTH WALES School of Computer Science & Engineering Hardware control systems using Java November 2002 Oliver

Pagina 2

10 Figure 9-6 Scan status panel 76 Figure 9-7 Signal strength vs. scan number 77 Figure 9-8 Signal strength vs. frequency and scan number 78 Fig

Pagina 3 - Abstract

100 Figure E-2 Equatorial coordinates, sourced from [ 4 ]. Right Ascension is analogous to the longitude of the earth. It is essentially the

Pagina 4

101 E.2. Astronomical times E.2.1. Universal time Universal time (UT) is the precise measurement of time used as the basis for civil time keepi

Pagina 5 - Acknowledgements

102 E.2.5. Dynamical time Dynamical Time, introduced in 1984 as a replacement for ephemeris time, more accurately defines a uniform

Pagina 6

103 The APT has the following filters available: • Ultraviolet (R) • Blue (B) • Visible (V) • Visible Red (VR) • Infrared (I) • Clear E.5.

Pagina 8

105 F. Selected code listings F.1. Masterswitch module F.1.1. Masterswitch.java /** * $Id: Masterswitch.java,v 1.4 2002/10/22 08:23:11 oliverm

Pagina 9 - List of Figures

106 * valid for MasterSwitch firmware version 1.X. */ public static final String OUTLET_ON_WITH_DELAY = "On with delay";

Pagina 10

107 * @param outlet The Masterswitch outlet. This is a number between 1 and 8 * @return The String value corresponding to the outlets sta

Pagina 11 - 1 Introduction

108 /** * $Id: AbstractMasterswitch.java,v 1.2 2002/10/22 08:23:11 oliverm Exp $ * Author: Oliver Mather * */ package apt.masterswitch; imp

Pagina 12

109 if( listener instanceof MasterswitchListener ) { if( listeners.contains(listener) ) { logger.log(Level.INFO

Pagina 13 - 2 APT hardware

11 1 Introduction 1.1 Overview This thesis documents the application of the Java language across several projects, the majority of which, are

Pagina 14 - 2.4 Telescope

110 F.1.3. MasterswitchListener.java /** * $Id: MasterswitchListener.java,v 1.2 2002/10/22 08:23:11 oliverm Exp $ * Author: Oliver Mather * *

Pagina 15

111 F.1.4. MasterswitchException.java /** * $Id: MasterswitchException.java,v 1.2 2002/10/22 08:23:11 oliverm Exp $ * Author: Oliver Mather *

Pagina 16 - 2.6 Telescope movement

112 F.1.5. SNMPMasterswitch.java /** * $Id: SNMPMasterswitch.java,v 1.6 2002/10/22 08:23:11 oliverm Exp $ * Author: Oliver Mather * */ pack

Pagina 17 - 2.6.1 Anti backlash motor

113 private static final String sPDUOutletCtlName = "sPDUOutletCtlName"; // This is similar to sPDUOutletName, except only sPDUOutlet

Pagina 18 - 2.6.2 Limit switches

114 throw new MasterswitchException("Cannot initialise Masterswitch",e); } catch (FileNotFoundException e) {

Pagina 19 - 2.6.4 Macrostation

115 private SnmpSyntax doSNMPSet( String oid, SnmpSyntax data ) throws MasterswitchException { SnmpVarBind[] vblist = { new SnmpVarB

Pagina 20 - 2.7 Masterswitch

116 } else if(outletInt == SNMP_OUTLET_OFF ) { return OUTLET_OFF; } else if(outletInt == SNMP_OUTLET_REBOOT ) {

Pagina 21 - 2.8 Web cameras

117 log.log(Level.WARNING, "Request ignored by apt.masterswitch.masterswitch. Another user is probably logged in"); }

Pagina 22 - 2.10 Roof

118 int command, SnmpPduPacket pdu) { SnmpPduRequest req = null; if(

Pagina 23 - 2.11 ROTSE

119 log.log(Level.WARNING, "An unexpected error occured with the SNMP Session"); log.log(Level.WARNING, "The error

Pagina 25 - 3 APT software

120 System.out.println("fireOutletNameChanged("+((int)(i+1))+", "+currName+");");

Pagina 26 - 3.3 Command line tools

121 F.1.6. SnmpTrapDaemon.java /** * $Id: SnmpTrapDaemon.java,v 1.3 2002/10/22 08:23:11 oliverm Exp $ * Author: Oliver Mather * */ package

Pagina 27 - 3.4.2 Architecture

122 F.1.7. AbstractSnmpTrapDaemon.java /** * $Id: AbstractSnmpTrapDaemon.java,v 1.3 2002/10/22 08:23:11 oliverm Exp $ * Author: Oliver Mather

Pagina 28 - 3.5 APT server

123 protected void fireSnmpTrapDaemonStarted() { Iterator i = listeners.iterator(); while (i.hasNext()) { SnmpTrapL

Pagina 29

124 F.1.8. SnmpTrapDaemonImpl.java /** * $Id: SnmpTrapDaemonImpl.java,v 1.4 2002/10/22 08:23:11 oliverm Exp $ * Author: Oliver Mather * */ p

Pagina 30

125 logger.log( Level.INFO, "Java SnmpTrapDaemon Started"); fireSnmpTrapDaemonStarted(); } catch (SocketE

Pagina 31 - 4.1 Introduction

126 * allow the handler to determine the host, port, * and community string of the received PDU.</P> * * @param session The SNMP

Pagina 32 - 4.3 Code

127 F.1.9. LinuxSnmpTrapDaemonImpl.java /** * $Id: LinuxSnmpTrapDaemonImpl.java,v 1.2 2002/10/22 08:23:11 oliverm Exp $ * Author: Oliver Mather

Pagina 33 - 4.3.3 SNMP messages

128 buffer = new BufferedReader(reader,1); readerThread = new StdErrReader(); readerThread.start()

Pagina 34 - 4.4 JAS integration

129 } } /** * output of "man snmptrapd" * ************************************************************* SNMPTRAPD(8)

Pagina 35 - 4.4.1 Commands

13 2 APT hardware 2.1 Introduction The APT is a term often used not simply to refer the Telescope itself, but rather to a comple

Pagina 36 - 4.4.2 Messages

130 %W Trap description %q Trap sub-type (numeric, in decimal) %P Security information from the PDU (community n

Pagina 37 - 4.5 Screenshots

131 F.1.10. SnmpTrapListener.java /** * $Id: SnmpTrapListener.java,v 1.3 2002/10/22 08:23:11 oliverm Exp $ * Author: Oliver Mather * */ pac

Pagina 38 - 4.6 Conclusion

132 F.2. APT deployment system F.2.1. apt-client-base.jnlp <?xml version="1.0" encoding="utf-8"?> <!-- JNLP base f

Pagina 39 - 5.1 Introduction

133 F.2.2. apt-client-keith.jnlp <?xml version="1.0" encoding="utf-8"?> <!-- JNLP base file for the apt client gui

Pagina 40 - 5.3 Process manager

134 F.2.3. apt build.xml <?xml version="1.0"?> <!-- $Id: build.xml,v 1.24 2002/10/24 01:35:35 oliverm Exp $ Buildfile for apt

Pagina 41 - 5.4 Roof

135 Note: if you install an additional library here, please add it to the check below at the init target

Pagina 42

136 SCP Setup Note that to use scp, authenticed remote ssh must be setup on mcba5 AND mistral. This is done by

Pagina 43 - 5.5 Chat system

137 classpathref="classpath" srcdir="${src-dir}" > <exclude name="apt/sp/**"/>

Pagina 44 - Figure 5-8 APT chat system

138 <delete file="${apt.src.tar}"/> </target> <!-- ********** END DIST ********** --> <!-- ***

Pagina 45 - 5.6 Look and Feel

139 <copy file="${bin-dir}/runOliversGui-base.bat" tofile="${dist-dir}/runOliversGui.bat" /> <repl

Pagina 46 - 5.6.3 Screenshots

14 Control of the sliding roof, discussed in more detail in 2.10, gives the telescope rapid access to any part of the sky. The building also contai

Pagina 47 - 5.7 Conclusion

140 <property name="scp-upload-mistral-args" value=" -C -r ${scp.mcba5.source} ${scp.mistral.destination}" />

Pagina 48

141 F.2.4. lib build.xml <?xml version="1.0"?> <!-- $Id: build.xml,v 1.4 2002/10/03 08:32:20 oliverm Exp $ Ant build file for

Pagina 49 - 6 APT software deployment

142 SCP Setup Note that to use scp, authenticed remote ssh must be setup on mcba5 AND mist

Pagina 50 - 6.3.1 Versioning

143 <arg line="${scp-mcba5-args}" /> </exec> </target> <target name="upload-mistral"

Pagina 51 - 6.3.2 Security

144 F.3. CSIRO / SEARFE F.3.1. Sample data file <?xml version="1.0" encoding="UTF-8"?> <?xml:stylesheet type="

Pagina 52 - 6.4 Compilation

145 F.4. TextSkin F.4.1. TextSkin zipfile listing [oliverm@mcba5:~] unzip -l BacklitLCD.zip Archive: BacklitLCD.zip Length Date Time

Pagina 54

147 G. CDROM directory structure apt The base directory for the apt files cvs-workspace Build environments for the apt, ja

Pagina 55 - 6.5 Version synchronisation

15 Figure 2-2 Telescope Originally a Baker-Nunn satellite tracking camera, the telescope was donated to The University of New South Wales by

Pagina 56 - 6.6 Uploading

16 2.5 CCD The CCD, or Charge Coupled Device, is a digital camera, similar to those commonly found in the marketplace today. The telescope is

Pagina 57 - 6.7 Conclusion

17 Each servo motor is powered by its own DC servo amplifier which receives an analogue voltage from the Macrostation (see 2.6.4). In October 20

Pagina 58

18 pushing the mount in the opposite direction to which it is travelling. Note that this motion will not be recorded by the software, which only m

Pagina 59 - 7.3 Software

19 Figure 2-8 Inner RA limit switches 2.6.3 Tilt sensor The tilt sensor is used for calibration of the telescope. This is necessary to correctl

Pagina 61

20 2.7 Masterswitch Figure 2-9 APC Masterswitch power distribution unit AP9212 In principle, the Masterswitch is a very simple device. It allo

Pagina 62 - 7.4 Conclusion

21 The Management Interface Board also supports up to 16 user accounts, although this functionality is not required as the JAS provides

Pagina 63 - 8 SkinnedTextField

22 2.9 Controller Area Network (CAN) Controller Area Network (CAN) is a serial bus system especially suited to interconnect smart dev

Pagina 64 - 8.4 TextSkin

23 2.11 ROTSE Figure 2-13 Nearby ROTSE Enclosure The ROTSE (Robotic Optical Transient Search Experiment) enclosure is situated just a few metres

Pagina 65 - 8.5 SkinnedTextFieldDemo

24 Roof ControlSwitchboadSwitchboardNodeRoof NodeUPSLightsPower Outlets150.203.153.2mistral.anu.edu.au150.203.153.1gatewayCAN BusInternetIR Cam150.

Pagina 66

25 3 APT software 3.1 Introduction As stated in 2.3, the GNU Linux operating system is an integral part of the APT system. It provides a centrali

Pagina 67

26 3.3 Command line tools BASHPERLIRAFImagingapt_exposure_display apt_imageapt_image_abortEnclosureapt_imsaveTelescopeaptEmergencySystemaptSet

Pagina 68

27 3.4 Java Automation System (JAS) 3.4.1 Introduction The Java Automation System (JAS), developed by Keith Bannister in [ 52 ], w

Pagina 69 - 9 CSIRO SEARFE project

28 public void sendToOthers(JASMessage message) { ... } public void sendToClient(JASMessage message, String clientName) { ... } JASMessages can c

Pagina 70 - 9.3 Requirements

29 subsystems as a set of key-value properties. The Masterswitch, discussed in detail in Chapter 4, is controlled in this way.

Pagina 71 - 9.5 Architecture

3 Abstract The purpose of this thesis is to apply Java technology to facilitate the creation of more reliable, portable, flexible and logical ha

Pagina 73 - 9.6 User interface

31 4 APT Masterswitch implementation 4.1 Introduction Currently the Masterswitch is controlled via an “Expect” script which runs a t

Pagina 74

32 These requirements were translated into the Java interfaces shown below: // Java interface to the APC AP9212 Masterswitch public interface Mas

Pagina 75

33 The AdventNet package is clearly of the highest quality. Feature rich, and backed by comprehensive documentation. However,

Pagina 76 - 9.6.2 Data visualisation

34 which is represented internally as “.1.3.6.1.4.1.318.1.1.4.5.2.1.3”.This string is then appended with “.<outlet-number>” to sp

Pagina 77

35 • Provide initialised references to the Masterswitch Object to be used by Commands to interact with the hardware 4.4.1 Commands

Pagina 78

36 4.4.2 Messages Masterswitch status information is broadcast to clients on the CHANNEL_MASTERSWITCH, initialised at the APTServer star

Pagina 79

37 public static final String KEY_OUTLET_1_STATE = "Outlet 1"; ... public static final String KEY_OUTLET_8_STATE = "Outlet 8";

Pagina 80 - 9.7.1 Visualisations

38 4.6 Conclusion The design proposed and developed is being successfully used in the live system, providing a more reliable fine gra

Pagina 81 - 9.8 Conclusion

39 5 APT user interface implementation 5.1 Introduction The existing user interface (shown below), was originally developed by Keith Bannister to

Pagina 83 - 10 Conclusion

40 5.2 Architecture The user interface has been isolated as much as possible from the JAS to ease its portability to future versions of the JAS,

Pagina 84 - 10.4 Logging analysis

41 time. This way, any connected users would be able to discern exactly what the system was doing, an invaluable tool for debugging

Pagina 85

42 • POWER: The status of the roofs power supply. It is either ON, or OFF • MOVING:Possible values are OPENING, CLOSING, STOPPED, UNKNOWN These

Pagina 86

43 5.5 Chat system Given the distributed nature and complexity of the APT control system it is desirable to be able to communicate with other user

Pagina 87 - Bibliography

44 Figure 5-8 APT chat system

Pagina 88

45 5.6 Look and Feel The Java Language comes with a rich user interface toolkit, the Java Foundation Classes, also known as JFC-Swing. Swing

Pagina 89 - A. Glossary

46 5.6.2 Problems • SwingUtilities.updateComponentTreeUI() in certain circumstances does not function as desired. For example, compone

Pagina 90

47 Figure 5-11 Aqua Look and Feel with Blue Digits textSkin 5.7 Conclusion This GUI is significantly more attractive, responsive and eas

Pagina 92 - B.4.2. Installing commands

49 6 APT software deployment 6.1 Introduction The APT software is a very complex system of integrated software components and is constantly under

Pagina 93 - B.5. JAS channel monitoring

5 Acknowledgements Special thanks must be extended to my supervisor, Michael Ashley, and to Keith Bannister for their consistent p

Pagina 94

50 Web Start is designed to address several of the problems traditionally associated with the deployment of standalone applications:

Pagina 95 - C. Software tools

51 6.3.2 Security By default, all Web Start applications are run in a restricted sandbox with the following limitations (sourced from [ 49 ] ):

Pagina 96 - C.1.4. CVS user interfaces

52 6.3.3 Resource loading Resources such as images, sounds, and any other additional application files cannot simply be referenced in the same wa

Pagina 97 - D. SNMP overview

53 mistralAPTServermcba5workspace/apt__V3.0/apt__V2.0/apt__V1.0apt-client.jnlprunServerapt.jarconfig.jar. . . /libjas__V1.0.jarjas__V2.0.jar. . ./a

Pagina 98 - RequestRequest

54 Once the workspace has been checked out from CVS the developer should manually edit the build.xml (see Appendix F.2.3) file and modify the vers

Pagina 99 - E. Astronomy primer

55 doc-tar.gz Packages the JavaDocs and content of the doc directory code into the archive apt__V<version-key>/apt-docs__V<

Pagina 100 - E.1.3. Coordinate epochs

56 6.5.1 External libraries The solution discussed previously must be further developed to account for the versioning of the library files that t

Pagina 101 - E.2. Astronomical times

57 The ant upload targets discussed previously are simply calls to the scp command line tool. The deploy directory is uploaded to mcba5, and then

Pagina 103 - E.6. Cosmic rays

59 7 APT suggestions and enhancements 7.1 Introduction This Chapter contains a collection of improvements designed to increase the reli

Pagina 105 - F. Selected code listings

60 7.3.2 Maintenance The APT system relies heavily on several external software libraries and tools. Such as PTCS, DRAMA, JAS, JSDT

Pagina 106

61 diagram was developed. Also, additional hardware and software components will inevitably need to be added to provide information suc

Pagina 107

62 Note that this command could be implemented as a SP command or as a very simple Java application, bypassing the JAS entirely. 7.

Pagina 108

63 8 SkinnedTextField 8.1 Introduction Given the complex architecture of the APT System, the development of a rich user interface in Java will r

Pagina 109

64 /* Abbreviated SkinnedTextField API */ public class SkinnedTextField { ... public SkinnedTextField() { ... } public void setSkin

Pagina 110

65 In order to support skins downloaded from [ 36], as well as those I have extended to include additional characters, Skins are

Pagina 111

66 BackLitLCD 57ChevySkin Figure 8-3 SkinnedTextFieldDemo

Pagina 112

67 Figure 8-4 SkinnedTextField menu Unfortunately, the Web Start deployment of SkinnedTextFieldDemo can not be distributed with Skins pre-load

Pagina 113

68 8.6 Suggestions and enhancements • Support for Classes of SkinnedTextFields. This would allow users display to have different areas of their

Pagina 114

69 9 CSIRO SEARFE project 9.1 Background The SEARFE (Students Exploring Australia’s Radio-Frequency Environment) project is designed to act as a

Pagina 115

7 Contents 1 Introduction 11 1.1 Overview 11 1.2 Automated Patrol Telescope 11 1.3 Additional projects 11 2 APT hardware 13 2.1 Introdu

Pagina 116

70 This prototype was used as a basis for preparing the requirements of the Spectrum Scanner application. 9.3 Requirements The primary purpose of

Pagina 117

71 9.4 Hardware Figure 9-1 AOR – AR3000A Radio Receiver The software interfaces to a AOR-AR3000A professional radio receiver. The features ut

Pagina 118

72 StatusWidgetsStatusWidgetsStatusWidgetsStatusWidgetsStatusWidgetsStatusWidgetsGUISpectrum ScannerAR3000ARS232Acquire ScanCommandSetScan DataData

Pagina 119

73 9.6 User interface The main application window shown in Figure 9-3 provides access to all the data files currently loaded in memory, access to

Pagina 120

74 Figure 9-4 Scan conditions panel

Pagina 121 - F.1.6. SnmpTrapDaemon.java

75 Figure 9-5 Receiver parameters

Pagina 122

76 Figure 9-6 Scan status panel 9.6.2 Data visualisation VisAD was chosen as a graphical package primarily because of its ability to plot imag

Pagina 123

77 Figure 9-7 Signal strength vs. scan number

Pagina 124

78 Figure 9-8 Signal strength vs. frequency and scan number

Pagina 125

79 Figure 9-9 Signal strength vs. frequency

Pagina 126

8 8 SkinnedTextField 63 8.1 Introduction 63 8.2 Requirements 63 8.3 Design 63 8.4 TextSkin 64 8.5 SkinnedTextFieldDemo 65 8.6 Suggesti

Pagina 127

80 Figure 9-10 3D plot 9.7 Suggestions and enhancements Version 2.0 of the Spectrum Scanner satisfies all the requirements outlined in 9.3. Since

Pagina 128

81 • The XML data files also utilise XML style sheets to automatically format the data into comma delimited text. These style s

Pagina 130

83 10 Conclusion 10.1 Introduction Despite the fact that Java’s platform independence and design principles are focussed on abstracti

Pagina 131

84 10.3 Failure and fault analysis As the complexity of any system grows, so does the likelihood of a individual components failure. The conseque

Pagina 132 - F.2. APT deployment system

85 An implementation based on the java.util.logging framework is capable of achieving this. Searches could be performed on LogRecord objects usi

Pagina 134 - F.2.3. apt build.xml

87 Bibliography [ 1 ] Delta Tau Website. http://www.deltatau.com/ [ 2 ] CAN in Automation workgroup. http://www.can-cia.de [ 3 ] PCI Watchdog Webs

Pagina 135

88 [ 39 ] AOR. AR – 3000A Professional Monitor Receiver Instruction Manual. [ 40 ] Java Communications API Website. http://java.sun.com/products/ja

Pagina 136

89 A. Glossary AAO Anglo Australian Observatory APT Automated Patrol Telescope CAN Controller Area Network CCD Charge Coupled Device - Camera

Pagina 137

9 List of Figures Figure 2-1 APT building 13 Figure 2-2 Telescope 15 Figure 2-3 Focus motor interface 16 Figure 2-4 Right ascension motor 17 F

Pagina 139

91 B. JAS programming techniques B.1. Introduction This appendix is intended to be a simple programming guide for interacting with the APT usi

Pagina 140

92 The core of the JAS system revolves around its ability to execute commands. To add a command to the APT system is a relatively simple pr

Pagina 141 - F.2.4. lib build.xml

93 LogCommand.class, MasterswitchSwitchOutletCommand.class, MasterswitchRenameOutletCommand.class }; Figure B-

Pagina 143

95 C. Software tools C.1. CVS - Windows Instructions for accessing the APT CVS repository on Linux based machines is available from Keith Banni

Pagina 144 - F.3. CSIRO / SEARFE

96 set CVS_RSH=C:\Program Files\NetworkSimplicity\ssh\ssh.exe C.1.3. Checkout the code Create a cvs-workspace directory on your local machine. C

Pagina 145 - F.4. TextSkin

97 D. SNMP overview D.1. Architecture The Simple Network Management Protocol (SNMP), is a standard designed to allow the remote management of

Pagina 146

98 o Each of the Request messages will immediately generate a response message. • Trap o Agents can asynchronously send Traps (similar to i

Pagina 147

99 E. Astronomy primer E.1. Celestial coordinate systems Several Celestial Coordinate Systems are used by astronomers to record the positions of

Comentarios a estos manuales

Sin comentarios