1 / 10

JMDC Application Software (JAP)

JMDC Application Software (JAP). Xudong CAI / MIT. Sep.1, 2009 @ CERN. Current Status. Communication: All AMSWire and CAN master slave modes are implemented and tested except JIM-CAN “bypass” mode. All HRDL and 1553 communications are implemented and tested. They are in use.

urbana
Download Presentation

JMDC Application Software (JAP)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. JMDC Application Software (JAP) Xudong CAI / MIT Sep.1, 2009 @ CERN

  2. Current Status • Communication: • All AMSWire and CAN master slave modes are implemented and tested except JIM-CAN “bypass” mode. • All HRDL and 1553 communications are implemented and tested. They are in use. • RS422 has implemented but not tested yet. • JBUX/JBU has partly implemented under debugging. • Flash file system and file control: • File system is implemented and compatible with JROM • The file system operations are also compatible with JROM (the support for the data types). • AMS file transfer protocol has been modified and unified between JAP and JROM. • Support file copy between JMDCs • Node address control: • Node addresses can be controlled by commands now. • Node address timeout counter and disable function not yet finished. (Proposed by Alexei) JMDC Application Software (JAP)

  3. Current Status (continued) • Q-List: • Counter based Q-List has completed (AMS-1 style) • Time based Q-List is under discussion • Envelop commands: • AMSWire and CAN envelop commands are implemented. • Envelop AMS blocks are implemented and under tests. • Command file execution: • Command file execution is implemented and under tests • There is a way to execute command file with new node address. (Proposed by Alexei) • Flash file as block data: • A data type is implemented to use a flash file as part of data append at the end of command. (Proposed by Paolo) • It is ready to implement DAQ and Slow Control tasks whenever the procedures are defined. JMDC Application Software (JAP)

  4. Node Address Control JMDC Application Software (JAP)

  5. Nodes Address Control (continued) • The real AMSW path has to start from JMDC links. • There is a special way to define the path to be copied from another node. For example: • JINJ-0 (0x80) : 0x0001 • JINJ-P (0x84) : equal to JINJ-0 • JINF-T0-A (0xA6) : 0xC084 0x033F • JINF-T0-P (0xA8) : equal to JINF-T0-A • TDR0-00-A (0x11A) : 0xC0A8 0x003F • Real address of JINF-T0-A : 0x0001 0x033F • Real address of TDR0-00-A: 0x0001 0x033F 0x003F • It is also possible to define a group address for AMSW. For example all TDRs in T-0. JMDC Application Software (JAP)

  6. Command file / Envelop AMS Block JMDC Application Software (JAP)

  7. Command File / Envelop AMS Blocks • Envelop AMS block will put replies from sub blocks in a envelop and send together. You will not get replies until all sub-blocks are executed. • Command file will be executed in separate tasks (there are five of them). The command is replied if command file execution started. All blocks in command file will be executed one by one. The reply will not be packed and will be sent to HK streams not depend on the command source. • The current status of command file executions can be obtained from JMDC. • Command file execution can be stopped by command. • One level nesting is allowed and will be executed by the same task as the original command file. This is under debugging. • Alexei has provided graphic tools to control the command file executions JMDC Application Software (JAP)

  8. Counter based Q-List • There are two parameters to control the execution frequency of the Q-List. • Wait time between items (32-bit word defines time in ms) • Wait time at the end of loop (32-bit word defines time in ms) • Each item has a 16-bit word which defines the priority (in how many loops the command to be executed once). • The Q-List table can be read or write by command. The table items cannot be modified by command. (Proposed by Alexei) • The item priority can be changed by command. Priority 0 means the item is disabled. • Q-List is a system task now (was belong to MCT and related to the MCT ownership). All JMDC can have its own Q-List. • Alexei has provided graphic tool to control the Q-List. JMDC Application Software (JAP)

  9. AMS File Transfer Protocol • Alessandro is working on the graphic interface to support it. • I have made a command line program can be used from our ground support computers. Usage: jftp [options] Options: {-? --help} Show this listing. {-d --debug} debug Bigger is more. {-v --server} server Server computer name or IP string (def: localhost) {-a --port} port eAss server port name or number (def: hrdl) {-s --segsize} seg_size Segment length for transfer in byte (def: 4000) {-f --name} jname File name at JMDC (def: jap_test.img) {-n --node} node JMDC node address (def: 4) {-h --handle} handle Transfer handle (def: random) {-g --get} gname Get file (downlink) and file (def: put) {-p --put} gname Put file (uplink) and file (def: ~/jmdcfiles/jap.img) {-e --exec} Execute after uplink transfer (def: save) {-c --continue} Continue uncompleted transfer (def: new) For example: jftp –v pcgsc13 –a hrdl –s 4000 –f test.dat –n 7 –p /home/ams/config/test.dat jftp –v pcgsc10 –a 1553 –s 400 –f test.dat –n 7 –g /home/ams/config/test.dat JMDC Application Software (JAP)

  10. Document • There is a “AMS-02_datatypes.xls” file on AMS web site which is updated automatically every night. The address is http://ams.cern.ch/AMS/DAQ/AMS-02_datatypes.xls • I try to keep all information and formats inside. The data types marked with green color are implemented in the current version of JAP. JMDC Application Software (JAP)

More Related