Free



Contents

Introduction 3

1 Company 4

1.1 SIEMENS 4

1.1.1 Corporate Information 4

1.1.2 Financial Information 4

1.1.3 SIEMENS: U.S. POWERHOUSE 6

1.1.4 SIEMENS Energy & Automation 8

1.2 Siemens Gardner Transportation Systems 9

1.2.1 History 9

1.2.2 Location 10

1.2.3 Products 12

1.2.4 Projects 13

1.2.5 Competitors 14

2 My work 15

2.1 icons Development 15

2.1.1 System description 15

2.1.2 Icons graphical interface 17

2.1.3 icons Database editor 19

2.1.4 Software Change Request (SCR) 21

2.2 CCTV Control 29

2.2.1 Overview 29

2.2.2 System view 30

2.2.3 SNMP Agent 36

2.3 Freeway Management System 47

2.3.1 Overview 47

2.3.2 FMS Architecture 48

2.3.3 FMS Bridge Behavior 50

2.3.4 Solution 52

Conclusion 56

INDEX 57

Table of Figures 59

Abstract 60

Appendices 61

Appendices A: Instructions to compile the SNMP library 61

Appendices B: SNMP Agent code 63

Appendices C: ASN1 68

Appendices D: SNMP 69

Appendices E: Traffic signals, concepts and terminology 70

Appendices F: Siemens 71

Introduction

I am currently carrying out an internship in The Siemens Gardner Transportation Systems Business Unit, which is included in the Siemens Energy & Automation group. I am working as a Software Engineering intern at the Georgia office.

I thank Craig Gardner for welcoming me in his company and Walt Townsend for welcoming me in the Georgia office. He, Christel Henry and Nagendra Tripathi helped me to settle in the US. I also thank my all work team for its help during this internship, especially Michael Clance who spent a lot of time to explain how Siemens Gardner Systems software was working. I also thank Anne Chateau for supervising my work.

Company

1 SIEMENS

Over 150 years of innovation have made Siemens a global leader in electrical engineering and electronics. Today, with the same entrepreneurial spirit, Siemens is on it’s way to becoming a worldwide leading e-business company. With more than 460,000 employees in over 190 countries Siemens is able to draw on a worldwide base of experience and knowledge to deliver products and solutions for the new century.

Nearly 57,000 employees are engaged in research and development worldwide and the annual R&D budget amounts to EUR5.6 billion. Additionally, Siemens is committed to Corporate Citizenship and to protecting the environment.

1 Corporate Information

| |Company Headquarters: |

|President and Chief Executive Officer: |Siemens AG |

|[pic] |Wittelsbacherplatz 2 |

|Dr. Heinrich v. Pierer |D-80333 Munich |

|since October 1, 1992 |Federal Republic of Germany |

| |Contact: |

| |+49 89 636-00 (Central Office) |

| |+49 89 636 33032 (Press Office) |

| |+49 89 636 32474 (Investor Relations) |

| |Web Site Address: |

| | |

2 Financial Information

|[pic] Number of Shareholders: |

|Over 700,000 shareholders hold 589 million shares of Siemens stock. |

|[pic] Total Assets Worldwide: |

|EUR 79,255,000,000 |

|Fiscal Year (years ended September 30) |2000 |1999 |1998 |1997 |1996 |

| | |

|Sales and earnings | |

|(amounts in millions of euros) | |

|Net sales |78,396 |68,582 |60,177 |54,672 |48,153 |

|Gross profit on sales |23,424 |19,491 |16,318 |15,492 |14,045 |

|Research and development expenses |5,593 |5,236 |4,664 |4,158 |3,730 |

|as a percent of sales |7.1 |7.6 |7.8 |7.6 |7.7 |

|Income after taxes before extraordinary items |3,381 |1,865 |1,359 |1,333 |1,274 |

|Extraordinary items |4,520 | |890 | |253 |

|Net income |7,901 |1,865 |469 |1,333 |1,527 |

| | |

|Key capital market data | |

|(in euros, unless otherwise indicated) | |

|EVA (before extraordinary items) (in millions of euros) |859 |( 658) |(1,105) | | |

|DVFA/SG earnings per share (new formula) |5.07 |2.63 |1.38 | | |

|DVFA/SG earnings per share (new formula) plus amortization charges|5.71 |3.09 |1.60 | | |

|DVFA/SG earnings per share (old formula) | |3.17 |2.24 |2.38 |2.29 |

|Dividend per share |2.40 |1.00 |0.77 |0.77 |0.77 |

|Siemens stock price | | | | | |

|High |191.51 |86.30 |70.87 |66.47 |43.95 |

|Low |75.98 |40.39 |46.17 |36.20 |36.86 |

|Year-end (September 30) |146.00 |77.40 |47.19 |61.02 |41.14 |

|Fiscal Year (years ended September 30) |2000 |1999 |1998 |1997 |1996 |

|Siemens stock performance over prior year (in percentage points) | |

|compared to DAX® index |+ 57.88 |+ 63.23 |- 30.00 |- 6.98 |- 8.33 |

|compared to Dow Jones STOXXSM index |+ 63.95 |+ 47.85 |- 26.13 |- 2.79 |- 8.16 |

|Number of shares (in millions) |589 |595 |595 |571 |560 |

|Market capitalization (in millions of euros) |85,939 |46,037 |28,068 |34,852 |23,036 |

|Credit rating of long-term debt | | | | | |

|Standard & Poor's |AA |AA |AA |AAA |AAA |

|Moody's |Aa3 |Aa3 |Aa1 |Aa1 |Aaa |

3 SIEMENS: U.S. POWERHOUSE

1 Corporate Profile

The U.S. emerged as Siemens' leading market in fiscal 2000, surpassing Germany in new orders for the first time. Sales grew by 42 percent to more than $16 billion and accounted for 22 percent of worldwide sales. That figure is expected to rise to 25 percent in the medium term.

As part of Siemens' aggressive strategy to achieve sustainable growth in profitability and in line with the U.S. market's rise to prominence, the company is launching an aggressive business initiative designed to dramatically increase U.S. profitability.

The program is comprised of six key elements:

[pic]Group specific programs-Optimize business and product portfolios, stimulate sales and increase efficiency.

[pic]Cross-group selling-Cross-sell and bundle products and services across business groups to create total customer solutions.

[pic]Communication-Raise U.S. profile through an aggressive integrated marketing communications campaign.

[pic]Human Resources-Push performance by recruiting top talent and retaining and developing high potential employees.

[pic]Shared Services-Realize synergies, improve services and gain efficiencies.

[pic]e-Transformation-Under the leadership of the Center of e-Excellence in Atlanta, implement global e-strategy and process alignment, including e-procurement, supply chain management and e-commerce.

Siemens US Business Groups

Information and Communications

|Helping the world to communicate with the latest network solutions and a full line of cordless and mobile |[pic] |

|phones. | |

|Siemens Business Services | |

|Siemens Information and Communication Networks | |

|Siemens Information and Communications Mobile | |

Automation and Control

|Optimizing production, cutting costs and boosting plant productivity with the latest solutions in production |[pic] |

|and logistic automation. | |

|Siemens Building Technologies | |

|Siemens Electrocom | |

|Siemens Energy and Automation | |

Power

|Providing affordable and enviromentally friendly power sources. |[pic] |

|Siemens Westinghouse Power Corporation | |

|Siemens Power Corporation | |

|Siemens Power Transmission & Distribution | |

|Siemens Energy & Automation | |

|Siemens Solar | |

Transportation

|Integrating transportation and improving vehicle safety and comfort. |[pic] |

|Siemens Automotive | |

|Siemens Transportation | |

|Siemens Airfield Solutions | |

Medical

|Providing complete healthcare solutions. |[pic] |

|Siemens Medical Systems | |

Lighting

|Producing economical, long-life lighting for every application. |[pic] |

|OSRAM SYLVANIA | |

Research and Development

|Innovations |[pic] |

|Siemens Corporate Research | |

U.S. STATISTICS

- Surpassed Germany in new orders in fiscal 2000 to become Siemens' biggest market.

- Revenues rose by 42% to more than $16 billion in fiscal 2000.

- Accounted for 22% of sales in fiscal 2000 vs. just 12% in 1995; projected to reach 25% in the medium term.

- More than $6 billion invested in key U.S. acquisitions from 1998 to 2000.

- In several operating groups, U.S. sales account for a significant portion of

total revenue,OSRAM, 49%, Medical Solutions, 38%, Production and Logistics, 36%, Power Generation, 34%, Automotive, 28%, Building Technologies, 27%, Automation and Drives, 22%.

- Contributes $4.1 billion annually to U.S. exports.

- Responsible for developing key technologies from radiation therapy to software engineering.

- Nearly 80,000 employees working at 700 locations, including 100 manufacturing and assembly facilities in all 50 states.

- Entered the U.S. market in 1954.

Each day in the U.S., Siemens or its products:

- dedicates more than $3 million and 3,000 employees to R&D.

- help ensure the safe takeoff and landing of more than 2,800 aircraft and 235,000 passengers by providing end-to-end lighting and networking solutions that optimize airport processes.

- generate 40% of U.S. electricity.

- produces 5,000 cordless phones, 1,000,000 circuit breaker components and 3,300,000 electrical lamps.

- provide advanced radiation treatment to 29,000 cancer patients.

1 SIEMENS Energy & Automation

Siemens Energy & Automation, Inc. is dedicated to providing complete electrical, engineering and automation solutions, along with the right products, software, services to our clients worldwide. Our customers include some of the world’s largest and most respected companies in the industrial, manufacturing and construction industries, retailers, and leaders in the emerging e-business sector, among others.

|Employees |12,000 |

| |38 manufacturing, assembly and distribution facilities; |

|Locations |four regional sales offices; |

| |and more than 100 area sales offices throughout the U.S. |

|Manufacturing & Office Space |More than 4.8 million square feet |

| |3333 Old Milton Parkway |

|Corporate Headquarters |Alpharetta, GA 30005 |

| |800-964-4114 |

3 Siemens Gardner Transportation Systems

Siemens Gardner Transportation Systems is an innovative leader in the development and integration of advanced transportation management systems. The firm is focused on providing high quality systems analysis, design, development, and integration services for the Intelligent Transportation Systems (ITS) community.

Siemens Gardner Systems is built around a closely-knit group of systems, communications, electrical and transportation engineering professionals with diverse experience and educational backgrounds. Together, these individuals offer the depth and breadth of expertise needed to meet the challenges of any ITS project. The principals have strong backgrounds in traffic and transit engineering. This facilitates an understanding of the end users' needs and ensures practical and efficient systems suited to real-world environments.

The following are some of the types of systems and projects delivered by Siemens Gardner Systems: 

[pic] Traffic signal network control and management

[pic] Traffic signal controller software

[pic] Ramp meter control software

[pic] Freeway management systems

[pic] Transit priority at traffic signals

[pic] Integrated multijurisdictional systems

[pic] Adaptive traffic signal timing

[pic] Traveler information systems

[pic] Communications networks

[pic] Automated vehicle identification

[pic] Probe vehicles

[pic] Strategic ITS planning

[pic] Standards development

Gardner Systems uses state-of-the-art software and communications techniques in open systems based on industry standards. The firm has played a lead role in the development of key ITS standards including the National Transportation Communications for ITS Protocol (NTCIP), the Model 2070 Advanced Transportation Controller, and the ITS Cabinet.

1 History

Craig Gardner founded Gardner Transportation Systems in 1994 as an employee-owned company.

Nearly 70 employees are currently working in The company.

On the first of May 2000, Siemens announced an agreement to acquire Gardner Transportation Systems, Inc.

Gardner Systems now operates as a wholly owned subsidiary of Siemens Energy & Automation. Actually, the company keeps its management policy but Siemens provides financing and a new CEO.

Logo

[pic]

The previous Gardner System logo resembles the “G” letter. The green color stands for traffic signals green light. Moreover it looks like a clock, which means synchronizing traffic lights.

But the logo changed when Siemens acquired Gardner Systems 1 year ago.

[pic]

The colors of the new logo are traffic signals colors too. The shape resembles a power plant turbine.

2 Location

Siemens Gardner Systems Offices are located in:

1 Georgia office

Siemens Garner Systems Georgia office (red star) was created in 1998. It is located in Duluth, GA, about 30 miles northeast of Atlanta.

I am working within a team of eight people. Walt Townsend is the regional manager, Mike Clance is a senior Software engineer, Pete Montigny is responsible for our customer support, and

Christel Henry, Zuyi Shen, Nagendra Tripathi, Jeff Chadwell and I are software developers.

3 Products

1 icons

The icons Advanced Transportation Management System is the main product of the company. Gardner Systems, Inc. and Econolite Control Products, Inc. developed it jointly. icons comprises a single integrated platform for information management, graphical data display, and system control. icons provides a full-featured, object oriented Graphical User Interface (GUI) with intersection specific objects defined to support centralized management and control of signalized intersections.

This integrated display environment can be extended to manage other AMTS/ATIS-related devices and information. (For more information about icons, please see the detailed description p15).

2 NextPhase

NextPhase intersection management software is a next-generation approach structured to satisfy the most demanding of modern traffic signal control applications. NextPhase is easily configured and maintained by field operations/maintenance personnel. NextPhase is designed to tap the power of the new Advanced Transportation Controllers (ATCs), such as the Model 2070 controller.

[pic]

These "open platform" ATC controllers separate hardware from application software by defining a common controller hardware platform upon which multiple application software packages from multiple developers can operate.  Open systems protect agency investments and reduce life-cycle costs by assuring a mechanism for agencies to upgrade software and functionality without being tied to a single supplier for these upgrades.  NextPhase was designed from the ground up to take full advantage of open platform ATCs and to provide capabilities not previously available.

NextPhase is more than just traffic signal controller software.  It is a fully distributed intersection management package designed for optimal isolated or system coordinated management.  The package can support extensive local traffic optimization capabilities and flexible coordinated operation.  Communications capabilities include California's AB3418 and the National Transportation Communications for ITS Protocol (NTCIP). 

NextPhase is significantly more flexible and powerful than other signal control packages and yet it uses common concepts and terminology, which are well understood and accepted by today's transportation professionals.

NextPhase goes much further than most current-generation control packages by providing significant extensions beyond the typical quad 8-phase, dual-ring operation.  The flexibility of up to 40 fully configured phases, configured in any one of 20 independently defined rings, and up to 26 barriers and 20 overlaps is available.  These features provide a level of expanded control flexibility and configurability which is simply not available in other controller packages at this time. 

4 Projects

Gardner’s main customers are local and state traffic control division, police department, and federal government. The scope of software varies for states, counties and cities.

Here are some current projects and customers:

|Project |Customer |Location |

|Prototype development – vehicle recognition based |University of California at Irvine (UCI) |California |

|on loop detector signatures | | |

|Project support – various |Caltrans (California Department of Transportation)|California |

|Traffic Control System Design & Implementation |Houston Metro |Texas |

|NTCIP Protocol Translator for Dynamic Message |ADDCO, Inc. | |

|Signs | | |

|Traffic Control System |City of Denver |Colorado |

|RHODES Adaptive Traffic Control Implementation |Santa Clara County |California |

|System Integration |Harris County |Texas |

|Traffic Control System |City of Tucson |Arizona |

|Traffic Control System |City of Lynnwood |Washington |

|Light Rail integration with traffic control system|Salt Lake City LRT |Utah |

|Light Rail integration with traffic control system|Tasman LRT (San Jose, CA) |California |

|Traffic Control System |City of San Mateo |California |

|Advanced Traveler Information System design |LA Ventura ATIS |California |

|Traffic Control System |City of Fremont |California |

|Traffic Control System design & implementation |City of Las Vegas |Nevada |

|Integration of Traffic Control System with Freeway|IMAJINE Demonstration Project | |

|and Transit control systems | | |

|Traffic Control System |Redwood City |California |

|Traffic Control System; Integration with ATMS |Salt Lake City |Utah |

|Traffic Control System |City of Mesa |Arizona |

|Traffic Control System integration with freeway |I-105 Corridor Signal Project |Los Angeles area, California |

|system | | |

|Traffic Control System |City of Charlotte |North Carolina |

|Traffic control system, ATMS integration |City of Austin |Texas |

|Fog Warning System |Alabama DOT – Mobile FWS |Alabama |

|Design & Implementation of Advanced Traffic |Alabama DOT – Birmingham ATMS |Alabama |

|Management System (ATMS) | | |

|Traffic Control System |City of Stockton |California |

|Traffic Control System |Jinan |China |

|Interface legacy traffic control systems to |OCTA TravelTIP | |

|freeway management systems | | |

|Traffic Control System |City of Pleasant Hill |California |

|Traffic Control System |City of Indianapolis |Indiana |

|Traffic Control System |City of Austin |Texas |

5 Competitors

The main competitors are:

|Name |Web site |

|National Engineering Technology Corporation (NET) | |

|Transcore | |

|Iteris | |

My work

I am currently working on the icons Software and recently on the Freeway Management System.

My work can currently be categorized into three main parts:

• Fist, I have to develop and debug parts of the icons controller database editor, which is included into the icons graphical user interface (IGUI).

• Second, I am working at the same time on the CCTV Control Service for Austin icons. I created a SNMP agent to simulate ATM switches that are used in Austin CCTV.

• Third, I am currently working on the Freeway Management System and more precisely on the FMS bridge component.

1 icons Development

1 System description

icons™ combines the various ATMS components (e.g., traffic signals, closed circuit television (CCTV), dynamic message signs (DMS)) into an well-integrated systems package. Modern "object-oriented" system design concepts are utilized throughout. Traffic control and monitoring functions are logically tied to real-world system elements (objects) in a straightforward and consistent manner. System support is provided in the base icons™ package for traffic signal control, detector monitoring stations, dynamic message sign control, and CCTV control. Other traffic control and surveillance functionality (ramp metering, highway advisory radio, etc.) is available as optional add-on modules.

The system is coded in the highly portable C++ programming language. C++ tools and multi-platform commercial graphics libraries are used to further support system configurability and portability. The system employs both object-oriented and relational DBMS database technologies and includes industry standard SQL interfacing. All system elements are geographically tied to a layered geographically coded "map" database allowing spatially oriented traffic analysis and management of system elements.

The system supports various system hardware configurations, including distributed Transportation Management Center (TMC) facilities, workstations/server configurations, and various optional peripheral devices such as high-speed printers, displays, large screen video projection systems, CCTV monitoring screens, and integrated console stations.

The workstation hardware consists of Intel Pentium-based workstations running the Windows NT 4.0 / 2000 operating system.

A variety of microprocessor-based traffic controllers are compatible with icons™. Both 8 and 16-bit controllers are supported through communication processor(s), which can be located at the central site or in the field. These processors support once-per-second polling of individual local intersection controllers.

icons™ is not tied to specific manufacturers' field controllers or devices. icons™ is designed to interface to any manufacturers' field devices through open system protocols such as NTCIP or other user agency specified interfaces. icons™ currently communicates to Model 2070 as well as NEMA TS-1/TS-2 type traffic signal controllers with full upload/download functionality.

Icons Architecture

icons employs a distributed client/server architecture interconnect via a local area network (LAN) for performance and scalability. Client workstations access networked computers that perform traffic management, database management, and real-time communications and traffic control functions. The system is implemented using standard, commercially available Personal Computer (PC) hardware as client workstations and servers. Also included are peripheral and communications equipment as well as all necessary operating and traffic control software. Client workstations access servers that perform traffic management and real-time traffic control (traffic server), database management (database server), and communications (communications server) functions. Windows NT, TCP/IP, Ethernet 100BaseT local area network (LAN) is the default configuration. Can use any other NOS, data link, or transport protocol if needed. Some graphic displays may slow at low speeds (e.g., 56 kbps). Field communications processing is distributed between central communications processors, optional communication hub processors, and local controllers. "Open" NTCIP communications support of field control equipment. Additional icons features support for the California AB3418 protocol and other controller manufacturer specific protocols. Key features are:

▪ The server-based software operates under the Microsoft Windows NT operating system.

▪ Workstation software operates under both Microsoft Windows NT and Windows 95/98 operating systems.

▪ The system is built around a multi-user commercial database software product to store, retrieve, and maintain system data and parameter files.

▪ Default for larger systems is Microsoft SQL Server, however icons can use any SQL/ODBC compliant database.

1 Comm Manager

Comm Manager is a subsystem for distributed interprocess communication, using the CORBA technology. Siemens Gardner System developed it to make icons more extensible and modular. New features can be added in icons without major changes into the core of the system. The various processes that make up an icons system (GUIs, Scheduler, Event Logger, etc.) use Comm Manager rather than connecting to each other directly. It manages the information associated with each process, so the processes themselves need not know anything about the network configuration.

The central component of Comm Manager is the Event Channel, which routes data between client processes:

2 Icons graphical interface

[pic]

All traffic system reports, graphic displays, and dialogues are functions of the user interface software running on individual workstations. Each workstation can access data, as needed from the traffic control and database servers. The base window is a map with dynamic icons. The user selects other windows either by clicking on such icons or via the menu. The base map and subsequent detail maps provide full zoom, pan, and layer control, including automatic layer switching with zoom level.

All workstation user interface functions are implemented using window-based graphical user interface (GUI) concepts conforming to Microsoft Windows Standards. The GUI uses the multiple document interface (MDI) standard to manage the windows work space environment. The various windows within the work space area are managed as a group using the MDI scheme. The system supports Microsoft Object Linking and Embedding (OLE) capabilities.

The user interface includes an object library that contains dynamic icon objects for system control and monitoring devices. These objects include as a minimum traffic signals, CCTV, and CMS. The library also includes an interactive editor for drawing background images and placing and linking dynamic objects. The system allows the user to link dynamic graphics objects directly to system database elements without programming or recompilation. The library also includes dynamic objects for directional roadway links using a simple vector drawing facility. Such links can change color based on volume, occupancy or speed data.

The GUI provides access to all monitoring and control options from a single point. As a result, all operator actions are immediately visible as graphical status changes and on screen display windows. Dual monitors are supported.

The user interface available at every workstation simultaneously supports the following operations by the operator:

• Generate and display in real-time intersection status screens, section level maps, and system level maps

• Issue manual commands to the intersection controllers.

• Provide intersection controller data base management.

• Retrieve detector logs and event logs from local controllers

• Print event reports from system data saved on disk

• Print or plot system detector data from system data stored on disk

• Provide facilities for traffic analysis programs.

• Setup and configure new devices and tables

• Obtain on-line help.

Each user can configure the user interface (e.g., position of tool bars and whether displayed or not, map and layers displayed at startup, selection panel displayed or not, etc.) and store the configuration for retrieval at any time. Users can create macros of workspace actions (e.g., mouse clicks to zoom, pan or make menus selections) and store these attached to icons on a tool bar. Multiple maps or intersection status graphics can be displayed simultaneously and each display is independently sized and positioned.

3 icons Database editor

The icons database editor provides with the following functionalities to manage intersection controller database:

❑ Upload database from controllers

❑ Edit database and save on disk

❑ Download database to controllers

❑ Compare field and central databases

Here is a Screen shot from the database editor. The user can perform the following actions:

The database editor supports the following controller types:

✓ ASC2

✓ ASC2NTCIP

✓ NP

✓ NP13

✓ EAGLE

The two controllers ASC/2 NTCIP and EAGLE are illustrated in the following figures:

System specifications:

The database editor is written in C++ language. Because there are many types of controller, the database editor is developed with an object-oriented point of view, especially with inherence properties.

When you launch the database editor, it loads .dll files that are specific to the controller types that you want to use.

[pic]

The database editor provides a global interface, which is completed with an interface that is specific to the controller you are using. For instance, if you wish to view data from an ASC/2 controller, thanks to the ASC2Editor.dll file, you will obtain the following interface:

4 Software Change Request (SCR)

Each time something needs to be developed or debugged, an SCR is created.

These SCR are managed thanks to the icons tracker.

1 icons tracker

The Problem Tracker software manages all the troubles that occur with projects. The interface is based on the html language. That’s why it is very simple to use. I describe it here because I think that’s a very efficient way to organize our work and because communication aspect is a key word in the success of a company.

When logging the icons tracker, each user is identified with a username and a password.

[pic]

Once connected, every user can access to his “Todo list”. As the name implies, the “Todo list” is the list of the SCR on which the user is working.

[pic]

By this way, every user knows exactly what he needs to do and he can consequently organize his work depending on the SCR priorities or deadlines. Moreover, you can also access to the SCR detailed history and trace all the changes that occur in the associated files. Each SCR has a unique ID. Thanks to it, the user can directly go to its related information. For example, when a new SCR is assigned to a developer, the icons tracker sends him an email with the SCR ID and a short description. Then the developer can access to the detailed information by a simple click.

The program tracker interface provides the key information: when, who, how a SCR has been modified. More, you can set different priority level. It also reminds who submitted it. Once you resolved the SCR, you need to change the status from “open” to “resolved”. Then the test department will test yours changes before including them in the new release version.

Program tracker is used conjointly with Perforce software. Perforce saves every change that occurs in files. Thanks to it, you can understand faster what is wrong with a code, which is 90% of the work needed to fix a bug.

Examples of SCR:

A unique number identifies each SCR.

Here are some SCR that I was working on:

SCR 1415:

History from Icons Tracker:

[pic]

[11/14/2000 12:41PM by kminyard] Two parts: When I first loaded an ASC/2 AB3418 controller from the database, there was some strange data in the Controller Sequence Priority field, where the ring structure is shown. I've attached a BMP with a screen capture of the DBEditor after loading a controller from a brand new database.

Second, I tried to recreate the problem by creating a new controller through DBEditor. After creating an ASC/2 controller, I loaded it from the database and again got strange data in the ring structure, but not the same data as before.

[01/11/2001 10:52AM by kminyard] Also occurs with NTCIP. Loading a controller from the database - with a freshly created and empty stored controller db, there is random data in the ring structure field.

[05/11/2001 02:08PM by kminyard] Assigned to mclance.

[05/17/2001 12:17PM by mclance] Assigned to mdebaynast.

[06/01/2001 07:43PM by mdebaynast] Perforce change list 6387.

[06/01/2001 07:43PM by mdebaynast] Resolved this record.

[06/01/2001 07:43PM by mdebaynast] Assigned to mclance.

[06/06/2001 02:39PM by mclance] Assigned to kminyard.

[06/08/2001 04:07PM by kminyard] Assigned to mclance. Changed status from (resolved) to (passed test). Passes Test.

SCR 1415:

Observations

Actually, barriers locations are not directly sent when uploading data from the controller. The database editor shall draw the barriers after computing their location from the groups of phases.

For instance, the following table represents every group of phases in ring R1 and R2.

| |

|1 1 1 |

|1 2 3 4 5 6 7 8 9 0 1 2 |

| |

|R1 1 2|3 4|0 0 0 0 0 0 0 0 |

|R2 5 6|0 0|0 0 0 0 0 0 0 0 |

| |

wGroup values:0033, 000C, 0000 ...

0033 = 0000 0000 0011 0011

000C = 0000 0000 0000 1100

The first group contents phases 1, 2, 5, 6. These numbers are exactly the on-bits location in the first wGroup value (0033) starting reading from right to left. More, the second group contents phases 3 and 4. That’s why the second wGroup value is 000C.

The previous algorithm was working as described below:

For each wGroup value,

• Count the number of on-bits in the wGroup value

• Divide the count number by 2

• Place the barrier at the right place

The trouble is that two configurations can have exactly the same wGroup values, especially when wGroup contents the 0 value.

For instance:

1 1 1

1 2 3 4 5 6 7 8 9 0 1 2

R1 1 2 3 4|0 0 0 0 0 0 0 0

R2 5 6 0 0|0 0 0 0 0 0 0 0

wGroup values:003F, 0000, 0000 ...

003F = 0000 0000 0011 1111

1 1 1

1 2 3 4 5 6 7 8 9 0 1 2

R1 1 2 3|0 0 0 0 0 0 0 0 0

R2 4 5 6|0 0 0 0 0 0 0 0 0

wGroup values:003F, 0000, 0000 ...

003F = 0000 0000 0011 1111

The previous algorithm described above does not work in this case because some information is missing to locate the barrier.

Solution

The solution is the following algorithm:

• For every wGroup value

{

For each on-bit

{

Look for the location of the associated phase in ring R1 and ring R2.

If the phase is located on the far most right position, save this value

}

}

• Place the barrier at the far most right location.

Here is a part of the previous code and the part of the new one:

Previous code:

WORD wRing1 = (WORD) thisCtrl->GetRingAssignment(1);

WORD wRing2 = (WORD) thisCtrl->GetRingAssignment(2);

WORD wPriority, wPhase;

for (int col=1; colGetPhasePriority(col);

PhaseAssign->Cells[col-1][0] = 0;

PhaseAssign->Cells[col-1][1] = 0;

wPhase = 1;

for (int i=0; iCells[col-1][0] = i+1;

if (wRing2 & wPhase)

PhaseAssign->Cells[col-1][1] = i+1;

}

wPhase = (WORD) (wPhase > 1);

}

bitCount = bitCount + nCount/2;

ConGrps = (WORD)(ConGrps | (0x0001 Cells[j][1] == index)&& j > nextBarrierLocation)

nextBarrierLocation = j;

}

wGroup = (WORD)(wGroup >> 1);

index++;

}

ConGrps = (WORD)(ConGrps | (0x0001 = 0) && (v ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download