Difference between revisions of "Tasks Tab"

From WICE Wiki v2.89
Jump to navigation Jump to search
Line 157: Line 157:
=== Preview data ===
=== Preview data ===
"Preview data" will give you a data preview window where you can preview the selected file(s) data. To read more about how to use this window and all its functions read [[Preview data]].
"Preview data" will give you a data preview window where you can preview the selected file(s) data. To read more about how to use this window and all its functions read [[Preview data]].
{{:Creating a Task}}
<br clear="all">
{{:Stopping assignments}}
<br clear="all">

Revision as of 17:26, 21 December 2018

Regexp, regex, reg ex, regual expression

In the Tasks tab you can search for tasks, view and manage their assignments, see the log files, access result data files, and much more.

The search panel for finding tasks.

The Search Fields Section

The search field section consists of different columns where most have a field where you can insert search criteria to find active tasks.  As an example you have the label “Task ID:” which searches the field for task IDs matching your search criteria. When searching for tasks you can fill in one or more columns where the different search criteria will be treated with a logical AND between each other.

There are many different columns: in some you can fill in a search criteria and some you can not. Below is a table with all the columns followed by a short description. Note that the columns with a star are the ones where you can enter a search criteria to filter results.

Task ID* The nummeric Task ID.
Assignment* The assignment name.
Type* Different options for assignment types where one or more can be selected.
WCU ID* The WCU's ID and also the column where you see the WCU's label.
Upload size The upload size of all the assignment's uploads given in Kbytes.
Plate number* The car's plate number.
Status* Different options for assignment statuses where one or more can be selected.
Last log When the last log file was transferred to the portal.
Last upload Date of the assignments's last upload.
VIN* The car's Vehicle Identification Number.
Proto number* The proto number.
Project* The project ID.
TSU* The TSU ID.
Car comment* The car's comment/description.
Series* The series attribute.
Message* The assignment's status message.
WCU name* The name of the WCU.
Task owner The current owner of the task.
Expire date The date the assignment will expire.
Task creator The original creator of the task.
Creation date The creation date of the assignment.
Resource group* The resource group the WCU is part of.

In each searchable column you can use regular expressions for your searches. To designate an "all" search you enter a period (".") for that particular field or leave it empty if another field is already filled in. All searches are treated with the letters as wild-cards. An example is if you intend to search for tasks containing the word “bear” simply enter “bear” in the text field. Now, if there are tasks with the names “bear”, “polar bear”and “unbearable” all of these will match as they contain the word “bear” somewhere.

To search for a range of WCUs, let's say the WCUs MM-810:1 – MM-823:1, you can enter the query 81[0-9]|82[0-3]. This is a regular expression where the first expression, 81[0-9], means that we want our search to start with an '8' followed by a '1' and then any digit in range 0-9. The second part, 82[0-3], means an '8' followed by a '2' and then any digit in range 0-3. The two expressions are combined with a pipe characater ("|") which means logical OR. In other words we are looking for range 810-819 OR 820-823.

Note! If your WCU/resource group you are searching for has special characters (like '(' or '/') in its name you may need to escape these characters in order to get the desired result. Escape means putting a '\' before the special character. For example if you want to enter (and search for) the resource group name 'ABC(Alpha_Bravo_Charlie)' you need to write 'ABC\(Alpha\_Bravo\_Charlie\)'. Another example is when you want to list a WCU that contains "07-51" in its name. In this case you need to type "07\-51", otherwise the "-" character will make the searcher to search for a range of numbers.

For more info how to use regular expressions, see Regular Expressions

In the "Type" column a search is performed based on a checklist drop down menu with the default choice of all types being selected. If there is a need to solely select one type, it is possible to simply double-click on its corresponding field, given that it is already checked, and all other types will be deselected.

When you are filling in search criteria you can see in the top right corner how WICE says "Rows found:". That tell you how many assignments your search will find so you know if you need to narrow or broaden your search.

In the bottom right corner you have two binoculars. With these you can save and load your search criterias and shown columns for future uses. You can also set a view of criteria and columns as your default by hovering over the view you want and then pressing the pin button. There is also two magnifying glasses that can save and load your search results so even if their information change and can not be found with the same search criteria you can still find them. You can also pair a search with a view by going to your searches and then on the search click the binocular button and select which view you want to pair it with. You can also pair them going to your searches and press "Select search views" where you get a window with the option to pair your searches with views.

To the right of the 'Search' and 'Cancel search' buttons there is a field for 'Search by labels'. Any labels selected here will be appended to the search criteria assembled from the columns. It is also possible to search only by labels.

It is important to know that labels on resources in the Tasks tab are the labels associated with the WCUs and cars when the assignments was submitted. Labels added after the assignment was submitted will not be visible here or yield any search results.

The Result Section

The assignments are fetched when you press the "Search" button in the Tasks tab. Here we will go through the bottom part of the Tasks tab and the options for your previous search.

Assignment Options

You can right-click one or many assignments to get a menu with a range of options described below:

  • "Show task description" will show you the description of the task that the assignment you right-clicked on belongs to.
  • "Go to Vehicles Panel" will take you to the vehicles tab. When you are in the vehicles tab the car(s) you selected will be shown in the vehicles tab.
  • "Go to Search Panel" will take you to the search tab. When you are in the search tab the WCU(s) you selected will be selected in the search tab.
  • "Get/Show assignment" will give you a small pop-up dialog with some assignment information and a "Download assignment" button if a download is possible. If you choose to press "Download assignment" the assignment file will be downloaded to your computer in its original format.
  • "Edit task" will give you the option to edit ownership and expiration date of the task. It will also show you the WCU(s) the task is running on.
  • "Show car info" and "Show WCU info" will give you a pop-up showing you available info of the assignment car and WCU. Depending on which car/WCU you choose there will be different information available since cars/WCUs can lack information.
  • "Show message" will show you the assignment's status message.
  • "Plot route" will open a map in your current window. In that map you can see up to 100 of the cars registered positions during the last 24 hours or the last 100 registered positions. For more information about this read Plot Route Dialog.
  • "Event subscription" is an option where you choose to subscibe to a car, a WCU or an assignment. When hovering above "Event subscription" you will see three options, "Connect", "Assignment status" and "Result upload". With the option "Connect " you can subscribe to the selected car(s) or WCU(s) and get notified when their connection status changes. "Assignment status" and "Result upload" subscribes you to selected assignment(s) and gets you notified about status changes and when results are uploaded. You will se events when clicking on the bell symbol at the top which gets a red dot when theres new events from your subscriptions.

Column Options

The result section has many ways to sort, view and handle the result with the columns. When right-clicking a column you will get a window with different options for the column.

  • "Sort Ascending" and "Sort Descending" will sort the assignments in ascending or descending order after the column's attribute.
  • "Configure Sort" where you can add more levels of sorting so that it sorts for more than one thing in different priority. For example can you sort after task ID ascending and then sort after WCU ID descending. When a column has a sorting prefrens the option "Clear Sort" will appear which clears your sorting preferences for that column.
  • "Columns" opens a window where you can select which columns you want shown and which you want hidden by checking or unchecking their corresponding checkboxes. If you remove a column with a filled search criteria that criteria will still matter when you make a new search. Also when you make the new search the column will reappear.
  • "Group by" groups together the assignments that share the column's attribute value. When they are grouped there will be the option "Ungroup" that ungroups them.
  • "Freeze" moves the column to the left corner and freezes it in position so it can be rearranged. If there is alraedy a frozen column till will move next to it as they go from left to right in chronological order. The "freeze" then becomes "Unfreeze" which revertes the freeze.
  • "Export to excel" will export the columns and results into an excel file that will get downloaded.
  • "Clear all fields" will clear all columns of their criteria.
  • "Get help for this column" should take you here.

Get result files

When selecting a file you can view the result files by pressing "Get Result Files" if there are available result files. That will create a window where you can search, view and download result files. It is also possible to view result files from multiple assignments at the same time by selecting many assignments of the same type (Only possible for Signal Reader and MCD-Hub tasks).

Searching result files

The window will look different depending on what kind of assignment you selected watching. The different windows all share a lot of tools and have the same concept: to search and filter files. In Illustration 6 you can see how a MCD-Hub result window looks. This is a great example as this window contains all different tools while all the others can be seen as an MCD-Hub window that does not need and therefore lacks some of the tools. There are some tools that all have and just like when creating a task the common ones are at the top. Below is a description of all tools followed by which assignment window that has them:

General search functions
Illustration 6: The-MCD-Hub result file window.

At the top there are two boxes, labeled "Description" and "Filename", whereby you can search for files based on their description and filename. The "Description" box is disabled so that you can not type in it. When searching by filename it will search for actual result files, the not compiled (i.e. zip) files. Below there are two other sections with two checkboxes. The sections are labeled "From" and "To" and contain dates that can be changed by using the calendar next to the box. The files are filtered so only files between those two dates are shown. The checkboxes are labeled "Measurement Date" and "Upload to Portal" and only one of them can be checked. The checkboxes tell if the files will be filtered by measurement or upload date. There is also a checkbox labeled "Hide downloaded files" which will filter out already downloaded files but this button is disabled if the checkbox "Compline by portal update date" is checked. These tools are the same for all type of assignments and can be seen as marked green in Illustration 6.

GPX inclusion

The checkbox "Include GPX" enables GPX files containing positioning data to be included when downloading result files. That means each downloaded result file will have a corresponding gpx file containing the route of the car when the assignment was executed. Note that the en date for the route is 24 hours after the start since assignments does not always have end dates. ETAS, Softhub, SignalReader and MCD-Hub assignments has this tool and its marked magenta in Illustration 6.

File type filters

There are three sections of checkboxes that are framed by a blue line which filter the shown file types. The framed sections represent one file type with their own sub-groups and they are labeled according to what file type they filter. When the outline checkbox in the framed section is checked, it will show you that section's file type. When the respective outline checkbox is not checked, the other checkboxes are disabled as they represent the sub-groups for that file type. As with the other search functions in the WICE portal, leaving all filters empty will result in everything being shown. The section labeled "Text" has three other checkboxes which will show you "Common", "Separate" and "All" text files. Note that not all text files have the subtype "Common" or "Seprate" and can only be shown in "All". The section labeled "MDF" has two other checkboxes which will show you MDF files "With module names" or "Without module names" (i.e. either with or without prefixes in the signal names). The section labeled "Vector" has two other checkboxes which will show you files referring to frames by "Frame ID" or "Frame name". Typically, the MCD-Hub, Softhub and Signal Reader measurement tools generate these file types. These tools are marked blue in Illustration 6.

Compile by upload date

The checkbox "Compile by portal upload date" will compile result files into a zip file if they were uploaded at the same time. When the files are compiled some functions that usually work on result files work differently, or do not work at all. As mentioned before, you cannot search for the compiled file since it does not really exist, but is rather created on demand. But when searching with this option turned on, the compiled file will show up if one or more of the files it contains match the search criteria. This search feature is automatically turned on since you are often looking for a specific uploaded file. MCD-Hub, Softhub and Signal Reader has this option and it is marked yellow in Illustration 6.

Label Search

It is also possible search by result file labels using the section marked in red in Illustration 6. It is, however, only possible to add labels by the use of server triggers on Signal Reader and Softhub assignments. If there are no assignments of either of these type for the selected WCUs this search option is hidden.

Handling result files

When you have selected the result file(s) you want different buttons will be active depending on the file. The buttons are above the column bar and it is where you download, view and convert result files.

"Get file(s)", "Get all files" and "Get log files" will open a dialog to download selected files, all files or that dates log files. In the dialog you will get the option to add a description, when downloading result files you can also add plate number and/or VIN to the file name. Note that downloading log files from multiple result files will download only log files 24 after the oldest result files so download log files from result files one result file at a time.

"Save Headers" saves your current view of columns and files and saves it as default. This button has since been replaced by the two binoculars that are described in The Portal User View#The Search Fields Section. We therefore advice you to use the new and improved binoculars as save headers will be removed.

"Plot route" will open a map in your current window. In that map you can see up to 100 cars' registered positions during the last 24 hours or the last 100 registered positions. For more information about this read Plot Route Dialog.

"View log files" will view log files from the selected file´s date. When viewing log files from multiple result files at the same time it will show you log files 24 hours after the oldest result file and not from both dates. you can always change the dates when viewing log files to narrow or widen the amount of files. When viewing log files you can read them by selecting a file and pressing "View file". There is also the option to "Get file(s)", "Save Headers", "Plot route" and "View file" who are all except "View file" described above. "View file" will open the log file in readable format in your current window. You can also filter log files like you filter result files by date, name and if they are downloaded or not. Note that when selecting to view log files from many files it will show log files from the oldest file's date and 24 hours forward.

"View file" will open the file in a readable format in you current window. If the file is compiled by upload date or not readable this button will not be enabled.

"Convert to text" will convert and download selected MDF file(s) to your computer. When doing this you will get a pop-up with the ability to add a description to your download. This is only availible for MDF files and this button can therefore only be found on assignments with MDF files.

Preview data

"Preview data" will give you a data preview window where you can preview the selected file(s) data. To read more about how to use this window and all its functions read Preview data.

Creating a Task

You create a new task by pressing the "New Task" button on the bottom of the "Tasks" tab. This will open a window where you choose the type of task you want to create. Note that it is not possible to create a new task for a WCU which has the system labels ''shelving_in_progress'' or ''shelving_done''. However, if the WCU has the latter label, it is possible to unshelve it using the corresponding button in the bottom of the Vehicle-tab. Here we will go through how to create tasks of each of the different kinds of tasks available. Remember that not all of the task types will be available as this depends on customer configuration and some types might not be enabled in the portal.

To learn about how to add resources to the task, check here.

Arcos

The dialog for creating an Arcos task.
The dialog for creating an Arcos task.

The WICE system can interact with external loggers as well. From version 2.71 the portal can interact with the Arcos-logger from Ipetronik. You create your measure task using an external tool which creates a file which you can upload for this type of task. The file should have the extension ".ccmc". When the task is downloaded the WICE system will then forward this file to the external logger. The WICE system can also take care of uploading the result files as well where you can retrieve the files using this portal.

Select the "Use existing measurement configuration" checkbox if a measurement setup file already exists on the Arcos - no upload will be required.

Since version 2.79.0 Arcos tasks can now have software version validation in the same manner as described for the M-Log task (see Software version validation).

Area5

Area5 task

Area5 tasks are used to read out data from the memory of ECUs.

Assignment: To create a new Area5 task you first have to create an Area5 assignment in the Area5 Assignment Editor.

Validate ECU SW version on WCU: By checking this box, the WCU will validate that the ECU SW version of the task and the actual ECU are the same before starting the task. If they are different, it will not start the task.

Trigger Expression: The task can be started by an expression. This option lets the user specify start trigger conditions based on logical expressions containing signals measured by the Signal Reader module. Note that the user must make sure the signals present in the expression are actually measured (otherwise the expression will never be true). For an explanation of trigger conditions look here.

Sync Signal: It is possible to specify a signal with given values that will be sent when the Area5 task starts and stops. This can be used to synchronize the Area5 read-out with external measurements systems like the M-Log.

Audio

An audio task makes it possible to record audio from a connected microphone. An audio recording can be started in five ways:

  • Trigger button: to initiate the recording you need to attach a button to the WCU in order to start in the audio recording.
  • Signal reader: initiate the recording by a trigger expression in a Signal Reader assignment. The recording is started as soon as a Signal Reader recorder is started. You specify the name of the Signal Reader recorder (e.g. SREC_0) you want to start the audio recording. You can also enter "auto" as the recorder name, in which case a recorder that include the Audio_Device_n internal signal will be selected.
  • Expression: Similar to the 'Signal reader' trigger option, the 'Expression' option lets the user specify start and stop trigger conditions based on logical expressions containing signals measured by the Signal Reader module. Note that the user must make sure the signals present in the expression are actually measured (otherwise the expression will never be true). Unlike the 'Signal Reader' trigger, there does not have to be a recorder configured in the Signal Reader measurement assignment. For an explanation of triggers look here.
  • Audio level: Start the trigger once the microphone registers volume above a certain threshold.
  • None: start the recording as soon as possible.

In addition to this, you can set the pre-trig time which is only valid in the cases of trigger button, signal reader, expression and audio level above. As an example, let's assume the trigger button method is selected. At the moment the trigger button is pressed the audio has already been recorded for the number of seconds specified. This can be handy when you press the trigger button to make a comment about an event where the event was audible.

Audio task
Audio task

A maximum duration of the recording can also be set, in seconds from the start trigger event. If there is a stop trigger expression specified, the recording will be stopped either when the stop expression is fulfilled or the max duration is passed, whichever occurs first. If you do not enter a duration it will be set to a default value of 120 seconds.

It is possible to monitor the audio live. To do this, check the box "Monitoring". To listen to the live audio you should use a tool such as Alkit Confero.

There is more information about audio in WICE here.

Audio tasks can be scheduled in the same manner as described for the Canrecoder task.

Blue piraT

The blue PiraT is a measurement system from Telemotive AG that can be configured with measurement set-ups, and data accessed through the WICE Portal. Note that to use the blue PiraT module, the WCUs to be used need to be preconfigured with a special software package (i.e. an "extra bundle"). Contact Alkit Communications in order to set this up.

CAN-recorder

Canrecorder

Canrecorder is a measurement module that allows CAN frames to be captured and logged.

1. In the grid, select which bus (or buses) to record from. By clicking below active column or select a row and click on “Toggle” button.

2. To apply filters on specific CAN buses, select a row and click on “Edit filter”. There it is possible to select one specific frame or several by separating them by “,”. It is also possible to select a range between frames by using “-”. The value can either be decimal or hexadecimal. A example of a filter: “1, 0x12-0xFF”

3. Below the grid settings for how long the recording should be and how many shots. If not using shot count, infinite result files will be created as long as the units are on.

Scheduling

For WCUs with version >= 2.53 this task can be scheduled by selecting the "Add schedule"-checkbox. By doing so, the panel shown in Figure "Schedule Panel" appears. By thereafter selecting the "ASAP" checkbox, the task will be performed once and as soon as possible. If instead the task is to be performed at a specified time, deselect the "Time span" and "Repeat"-checkboxes and select the sought time in the "Start field". The task can also be performed within a certain time span, and in this case "Time span" should be checked and the Date in "End" field specified. Repetition of the task is defined by checking the "Repeat" checkbox, defining a interval size in the field after "Every" and a recurrence rate in the drop down menu. The task will then be repeated at this rate until the date defined in the "Until" field is reached. By selecting the "On ignition" checkbox, the task will be performed once on ignition. If delay is above 0 then the task will be performed once the configured amount of seconds have passed after ignition.

Schedule Panel
Schedule Panel with 'On ignition' enabled


To control the time zone in which the task scheduling is to be performed the "WCU local time"-checkbox is used. If this option is deselected, the task will be performed in UTC-time (the date fields present the portal local time). On the other hand, if this box is checked, the task will be performed according to the local time zone predefined for the WCU. A WCU time zone can be defined for a WCU with version >= 2.53 by an administrator using "Edit configuration" in the Vehicles panel. This is useful when there is a need to perform a certain task at a specific time of the day regardless of which country the vehicle is in. For instance, when selecting 100 different WCUs scheduled to perform a task at 10:00, checking the "WCU local time"-checkbox will result in them performing the task according to their time zone setting. Without checking this option, the task will be performed in the corresponding UTC-time, which could mean in the middle of the day or night depending on where the vehicle is located.

Diagnostic Log and Trace (DLT)

DLT itself provides a log and trace interface, based on the standardised protocol specified in the AUTOSAR standard 4.0 DLT. A DLT task in the WICE Portal makes it possible to collect such logs in a vehicle where this functionality is available and transfer the data to the WICE portal where logs can be downloaded for further analysis. For a more in-depth description, you can go here.

The DLT new task dialog.

Basically the WCU is connecting to one or more DLT Daemons and unique filters can be applied to each daemon, filtering out specific log messages.

So when creating a DLT task on WCUs with software version 2.72.0 or later the number of daemons can be specified and for each daemon the following needs to be specified:

  1. Daemon address - the IP-address in order for the WCUs DLT client to find the daemon.
  2. Daemon port - which port on the address the daemon is at.
  3. Filter configurations - filter expressions to be applied on the log messages. If left empty no filter is applied. For an explanation on how to write filter expressions, see here.

Older WCUs

For WCUs with software version earlier than 2.72.0 only one daemon is supported and only filters can be configured when creating a DLT task. To specify the daemon address and port go to the DLT Module instead.

ETAS

Through an ETAS task, an ETAS ES720 Drive Recorder system can be configured, and measurement data offloaded and accessed through the WICE Portal.

When creating an ETAS task, the task description file you select must be a .exp file.

Ethernet capture

This kind of task is used to capture packet data from one of the ethernet interfaces on the WCU. The basics for this kind of task is that you choose the interface you would like to capture from and a capture expression to filter which packets you are interested in. The results from this task type is pcap files. To read more about this task type, go here.

File fetcher

The new task dialog of the File fetcher task.

The File fetcher task fetches files from a specified unit and makes them available for downloading in the Portal.

The following needs to be specified when creating such a task:

  • File path - One or several paths to a files or file-containing directories on the unit's file system. This specifies which files that will be fetched.
  • Username - To log in to the unit.
  • Password - To log in to the unit.
  • IP address - To find the unit.
  • Port - To find the unit. Default is 22, but can be changed.

Furthermore, the task also allows the use of a proxy.

To use a proxy, the Use Proxy checkbox has to be checked, and the following must be specified:

  • Proxy Username - To log in to the proxy unit.
  • Proxy Password - To log in to the proxy unit.
  • Proxy IP Address - To find the proxy unit.
  • Proxy Port - To find the proxy unit. Default is 22, but can be changed.

IDC

The Internal Diagnostic Client (IDC) is a measurement module that allows a sequence of diagnostic requests to be sent and responses recorded. The sequence of diagnostic requests can be created as an assignment in the Assignment tab, alternatively can be uploaded to the portal as a text file (usually ending with ".seq"). This task can also be scheduled in the same manner as described for the Canrecoder task.

IPEmotion RT

The WICE system can interact with external loggers as well. From version 2.72 the portal can interact with the logger IPEmotion RT from Ipetronik. You create your measure task using an external tool which creates a file which you can upload for this type of task. The file should have the extension ".irf". When the task is downloaded the WICE system will then forward this file to the external logger. The WICE system can also take care of uploading the result files as well where you can retrieve the files using this portal.

Select the "Use existing measurement configuration" checkbox if a measurement setup file already exists on the IPEmotion RT - no upload will be required.

Since version 2.79.0 IPEmotion RT tasks can now have software version validation in the same manner as described for the M-Log task (see Software version validation).

LPD

This type of task is ultimately handled by a separate App in an iPhone or iPad. The WICE system simply makes this task available to the App through a REST interface running on the WCU. The task consists of a specially crafted excel file. When the file is uploaded to the WICE portal it is validated to make sure that it can be read by the App.

View an LPD task
Upload opportunity after pressing the Edit button

From version 2.83.0 of the WICE portal the task measurement file can be updated via the View Task function in the Tasks tab and a dialog as shown to the right will appear. By pressing the "Edit" button in the lower right corner, you will be presented with the possibility to upload a new measurement task file. This is shown with a red triangle in the illustration on the right.

M-Log

The WICE system can interact with external loggers as well. One such logger is called M-Log from Ipetronik. You create your measure task using an external tool which creates a file which you can upload for this type of task. The WICE system will then forward this file to the external logger. The WICE system can also take care of uploading the result files as well where you can retrieve the files using this portal.

M-Log task
Entering ECU software version
Entering ECU software version

Select the "Use existing measurement configuration" checkbox if a measurement setup file already exists on the MLOG - no upload will be required.

Software version validation (Available from version 2.74.0)

The measurement assignment for an MLOG is created using an external tool to WICE. An assignment is created with a certain version of the ECU software in mind for each ECU in the assignment. In order for the assignment to work it might be important that the ECU software version in the vehicle matches the software version of the ECU it was created for. In WICE, you can ask the system to read the current software version for each ECU which is stored and can be viewed, e.g. via the ECU list. As WICE cannot know which software versions the assignment was created for, the user can supply this to WICE. By doing that, WICE can validate the entered software versions against what has been read out for each vehicle and thus aid the user in making sure that an assignment will work once it will run.

To make the validation possible the user enters a ECU by its address, not the name. To help find out the address for an ECU you can go to the ECU list to find the address of a specific ECU. Have a look at the illustration, Entering ECU software version, to see where in the dialog this is entered. On the top you enter the ECU address on the left and what software version is expected on the right. When satisfied, press the "Add" button. The data you just entered will be added to the table and evaluated against what the WICE system has read out from the vehicle. In the example to the right something is incorrect which is indicated by the yellow color. To see the exact reason, simply use the cursor to see the specific message.

A negative validation in not enforced in the sense that you cannot run the assignment but rather an indication that it might not work as expected. You can always go ahead and press "Submit".

MQTT

A MQTT task makes it possible to record data from a MQTT message broker, by specifying a specific topic.

Rapid prototyping

A Rapid prototyping (RP) task makes it possible to download RP binaries to multiple WCUs and keep track of the result files the RP task might produce. For more information about RP, see WICE RP How-To and WICE RP Manual.

Rapid prototyping task

The rapid prototyping tab can be seen in Figure "Rapid prototyping task".

An RP task must consist of at least an 'RP binary' or a 'Web application zip file'.

SoftHub

The SoftHub is a measurement system that can be run either as a stand alone unit or as a software module on the WCU, with functionality similar to the Signal Reader module. A SoftHub task is created much in the same way as a Signal Reader task.

When creating a SoftHub task, you select a .shub task file, and then proceed in the same way as the Signal Reader task.

The SoftHub task will generate result files. It may be interesting to know if certain signals reach certain values in these result files, therefore it is possible to add server triggers to the task that will trigger and add a suitable label to the corresponding result file. Read more about this here.

Signal Reader

Signal reader task

Signal Reader is a data capture module that allows monitoring and logging of CAN and FlexRay signals, as well as diagnostics data, and ECU-internal signals read by CCP or XCP. To create a Signal Reader task you proceed as follows:

1. You either select an assignment file of .haf format, or choose an assignment created in the assignment creator (see Signal Reader Assignment Wizard). Your current choice will be displayed in the "Chosen file" field.

2. When you have selected an assignment and one or more WCUs, the CAN buses defined in the assignment and on the WCU will be mapped. If they can be automatically mapped a green check symbol will be displayed, otherwise a red cross will be displayed. Clicking the mapping button will open the mapper. In the pop-up window you will have to map the different buses to each other manually and then save. Once this is done correctly, the red cross will become a green check mark, indicating that the mappings are ready to be automatically applied upon submit. Read more about this in I/O configurations and Mappings.

3. With a Signal Reader task you can monitor CAN, FlexRay, ODB-II and WCU-internal signals live by selecting "Monitor signals". When selected, two boxes will appear under the task description. In the left one you search for signals and drag them over to the right one where the signals to be monitored are listed. You can later see the monitored signals by pressing the Monitor Signals button either in the Tasks tab or in the Vehicles tab. It is also possible to copy the signals text in the bottom right corner of the right box. Next to the copy text button you can also paste signals as text where the pasted signal names will be matched against the list of unselected signals

4. You can choose if you want the signals to have their data source names as a prefix (e.g. CAN1.EngineSpeed instead of EngineSpeed).

5. The Signal Reader task will generate result files. It may be interesting to know if certain signals reach certain values in these result files, therefore it is possible to add Server Triggers to the assignment that will trigger and add a suitable label to the corresponding result file. Read more about this here.

A Signal reader task can be scheduled in the same manner as described for the Canrecoder task.

The Signal Broker

Signal Reader can act as a Signal Broker for other software components. For instance, the audio and video modules relies on the Signal Broker API of Signal Reader for evaluating start and stop trigger expressions. Moreover, the Signal Broker gives programmatical access to signals for Rapid Prototyping tasks. Read more about this in WICE Signal Broker API.

Files containing references to sequence files

Sequence Files References in .haf File

If the measurement file contains references to sequence files, you are also required to select these in order to run the task. The portal scans the .haf file for such entries and presents this to you, see illustration 4.2. Click the button for each sequence file reference to upload each sequence file needed. Some requests in the sequence file may be for reading DTCs, and in such cases you can select the option of also reading associated Snapshots or Extended data. An example of this can found in Figure "Sequence Files References in .haf File".

Sequence File with Functional Query

Here, the .haf file contained two references to sequence files. As no sequence files have yet been uploaded, the selection for reading snapshot or extended data is grayed out. In Figure "Sequence File with Functional Query" we have selected one such sequence file containing (functional) DTC requests. Here we have checked that we would like to read Extended data. It is also possible to select both Snapshots and Extended data.

WICE internal signals

In addition to CAN and FlexRay signals, a number of internal signals (i.e. internal to the WCU) are also available. The following WICE-internal signals are supported: WICE Internal Signals

SoH

SoH

A State of Health (SoH) task collects specific status information from vehicles. You select which information you want the task to collect by filling in one or more of the checkboxes shown in Figure "SoH". The number of checkboxes shown can vary depending on the WICE installation. In order for SoH data to be correctly interpreted, relevant description files (e.g. SDDB) for the vehicles executing the SoH task may have to been available. To add such a description file for a vehicle, see The Edit Car Dialog.The six different options are:

  • Mileage
  • Voltage
  • Read ECU software numbers
  • Read ECU DTC:s (optionally including 'Snapshot' and 'Extended data')
  • Read OBD-II PIDs
  • App Diagnotstic Db Part Num
  • DM1, Diagnostic Message using the j1939 protocol
  • Odometer, reading the odometer using the j1939 protocol (available from WCU version 2.63)
  • Clear DTCs.
    • If reading DTCs is requested as well, those will be read before clearing the DTCs. (available from WCU version 2.63)
    • If this option (Clear DTC) is chosen it is optionally possible to set a PIN code for unlocking a gateway module - e.g. Vehicle Gateway Module (VGM). (Available from WCU version 2.66)
  • Engine hours, reading engine hours using the j1939 protocol (available from WCU version 2.64). The result for this can be read in the generated j1939-file from the task. It is a text type of file. In addition, a system value label called 'engine_hours' (as default, can be changed on a customer basis). This label shows the latest read value and is available on the vehicle.

This task can also be scheduled in the same manner as described for the Canrecoder task.

Some selections above might not be available to you as this is a configuration setting depending on customer.

SWDL

New SWDL task

A Software Download (SWDL) task updates the ECU software in one or more ECUs in one or more vehicles. A number of Versatile Binary Format (VBF) files containing the ECU software need to be supplied, along with PIN codes to allow security access to re-program the ECUs. The PIN codes should be in the format of five hexadecimal numbers, e.g. ff:00:1a:2c:77 (or alternatively, omitting the colon separator, ff001a2c77). When a SWDL task has been created and assigned to one or more WCUs, it will cause all vbf files to be downloaded to the WCUs, and then the actual re-programming can be triggered by the vehicle user through the WCU status GUI web interface. The uploaded vbf-files are presented in a table along with its ECU and software part type (SW part type). In a separate table, the PIN codes for each ECU are presented along with the total number of files uploaded per WCU, see Figure "New SWDL task". To get an overview of how the files relate to the ECUs it is possible to choose the "Group by"-option when right clicking the ECU column in the file table.

SWDL tasks can optionally include a pre-update sequence file and/or a post-update sequence file. The diagnostic requests of those sequence files will be sent before and after the ECU re-programming respectively.

SWDL tasks can optionally include one signature file (containing checksums). The file is assumed to be an xml file. (Available from WCU version 2.66) If either of the optional files is selected, a field will appear to the right of the chosen file. This field will contain the name of the chosen file. (Available from WCU version 2.70)

SWDL tasks can optionally include a VGM unlock access control mechanism, with a PIN code for the VGM node. This is specifically for vehicles requiring this kind of access control for ECU re-programming.

By checking the box Run SoH after completion it is possible to let the SWDL task run the WCUs SoH task after the SWDL task is completed.

If you would like to use any individual ECU pin codes for a vehicle, make sure to check the box "Use Vehicle Pin mappings". If a pin code for the ECU targeted by a vbf file, the pin code for the vehicle will be used. If no such pin code is found, the one entered in the right hand side table is used. Read more on how to prepare a vehicle with pin codes here.

SWDL tasks can optionally contain a Trigger Expression which must be fulfilled within a specified time limit ("Wait time") for ECU re-programming to be allowed. The trigger expression follows the same syntax as Signal Reader trigger expressions (or Server Triggers, audio/video triggers), and should be built up from signals being measured in a Signal Reader assignment. The user must make sure that there is a Signal Reader assignment on the WCUs of the SWDL task, with the signals of the trigger expression being measured.


It is also possible to choose to ignore checksums and/or disable pre-programming using the corresponding checkboxes.

The SWDL module can be configured to perform SWDL either over CAN or over Ethernet (DoIP).

Video

A video task makes it possible to record and monitor live video from one or two cameras attached to a WCU. You can trigger recording of video in four ways:

  • Trigger button: To initiate the recording you need to attach a button to the WCU in order to start in the video recording.
  • Signal reader: Initiate the recording when a recorder in a Signal Reader assignment starts. The recording is started as soon as a Signal Reader recorder is started. You specify the name of the Signal Reader recorder (e.g. SREC_0) you want to start the video recording. You can also enter "auto" as the recorder name, in which case a recorder that include the Video_Device_n internal signal will be selected.
  • Expression: Similar to the 'Signal reader' trigger option, the 'Expression' option lets the user specify start and stop trigger conditions based on logical expressions containing signals measured by the Signal Reader module. Note that the user must make sure the signals present in the expression are actually measured (otherwise the expression will never be true). Unlike the 'Signal Reader' trigger, there does not have to be a recorder configured in the Signal Reader measurement assignment. For an explanation of how to enter triggers, have a look here.
  • None: start the recording as soon as possible. (Use this with caution, since it tends to produce prohibitively large video files.)

In addition to this, you can set the pre-trig time (not valid in the cases of the 'None' trigger option above). As an example, let's assume the trigger button method is selected. At the moment the trigger button is pressed the video has already been recorded for the number of seconds specified.

A maximum duration of the recording can also be set, in seconds from the start trigger event. If there is a stop trigger expression specified, the recording will be stopped either when the stop expression is fulfilled or the max duration is passed, whichever occurs first. If you do not enter a duration it will be set to a default value of 120 seconds.

If monitoring of video from a WCU is enabled, a live video stream will be transmitted which can be viewed using a RTP-based video tool, for instance Alkit Confero. This task can also be scheduled in the same manner as described for the Canrecoder task.

Read more about the video support in WICE here.

Applicable for all types

If enabled at your site, there might be an opportunity to announce to third party applications that a result file is available using a JMS API. By checking this box, as soon as a result file is added in the back-end this will be signaled using a customer specific event. The check box title is "Announce result file availability", this can be seen in the image in SoH.

Site specific features

Announce result file availability

Announced On column

If enabled at your site, there might be an opportunity to announce to third party applications that a result file is available using a JMS API. By checking this box, as soon as a result file is added in the back-end this will be signaled using a customer specific event. The check box title is "Announce result file availability", this can be seen in the image in SoH. Starting from version 2.87.0, there's a new 'Announced On' column that keeps track of when the result file was announced.

Retention time

Retention time

This function works by setting a retention time in days which simply says that data coming in from the task, i.e. result files and positions will be kept the set number of days from when the data was collected. If, e.g. setting the retention time for an task to 30 days, will keep data until it is 30 days old where it will be automatically removed. See image.

It is possible to set a default retention time for resource groups. To do this, add a global value label named RETENTION_TIME to the resource group and give it an appropriate value. This value will then be used as a template value when creating a new task for this resource group. If multiple resource groups have this label and they have different values, the one with the lowest/shortest retention time value will be chosen as the template value.

Stopping assignments

The tasks tab provides options to stop measure tasks in multiple ways. These are explained below.

Tasks can assume multiple states

Pending The task is waiting for the WCU to download it.
Running The WCU has downloaded the task and it has started.
Warning The task is running on the WCU, but has reported warnings.
Error The WCU has attempted to start the task, but has reported back major problems (that may have prevented it to run).
Stop pending The WCU still has the task applied, but will stop it next time it connects to the portal.
Stopped The WCU has stopped running the task.

Resume Task

Used to undo the stopping of an task. This is only usable on Stop Pending tasks, and reapplies the task so that the WCU will continue running it. If there is another task of the same type currently in Pending for that WCU, that task is changed to Stopped, and will never be downloaded by the WCU.

Cancel Task

Used to undo the application of a new task. Only useable on Pending tasks. The task is instantly Stopped and if there is a task of the same type currently Stop Pending it reapplies that task and changes the status back to Running.

Stop Task

Stops the task without replacing it, making the WCU not run anything of that task type. Useable on Pending, Running, Warning, and Error. Pending tasks instantly enter a Stopped state while giving the WCU a stop command. Running, Warning, and Error tasks enter a Stop Pending state, waiting for the WCU to report it has stopped before changing state to Stopped.

Force Stop Task

Force stopping a task is an Admin feature meant for WCUs which have been physically disconnected by an operator while having an active task. In this situation the WCU will not report to the portal that it has actually stopped the task (since it will not turn on). In this case, this feature can be used to place the task in Stopped for tracking purposes. This can only be used on Stop Pending task. If you wish to force stop a running/warning/error task, you need to stop it first (using Stop Task).

Note that this will not affect the actual WCU in any way.

Stopping tasks and strict resource groups

You can use these features on strict resource groups to stop all tasks of that type running on the WCUs in that group.
Stop Task will place all the tasks of that type in either Stop Pending or Stopped based on their status (see Stop Task).
Force Stop Task can be used used on strict resource groups with status Stop Pending to force every WCU in the resource group to enter Stopped state (see Force Stop Task).

Note that Resume Task and Cancel Task can not be used on strict resource groups.