VSpy 3 Documentation
All DocsProductsLearning CenterSupport
3.9.13
3.9.13
  • 🚗Welcome to the Vehicle Spy Help Documentation
  • Vehicle Spy Introduction
    • Vehicle Spy Overview
      • Vehicle Spy Tour
        • Vehicle Spy Tour 1: Bus Monitor
        • Vehicle Spy Tour 2: Signal Monitoring and Recording
        • Vehicle Spy Tour 3: Flight Recording
        • Vehicle Spy Tour 4: Node/Vehicle Simulation
        • Vehicle Spy Tour 5: Test Automation
        • Vehicle Spy Tour: Summary
    • Other Vehicle Spy Users
    • Vehicle Spy Specifications
    • Vehicle Spy Required Hardware PC System Requirements
    • Vehicle Spy Website
  • Vehicle Spy Tutorials
    • Vehicle Spy Tutorial Files
    • Getting Comfortable with the User Interface
    • Tabs in the User Interface
    • Tutorial 1: Basics of Vehicle Spy
      • Part 1 - Logon Screen
      • Part 2 - Monitor Message Traffic
      • Part 3 - Examine Messages
      • Part 4 - Your Message Specification in Action
      • Part 5 - Filtering Messages
      • Part 6 - More Ways to Filter in Vehicle Spy
      • Part 7 - Message Timestamps and Pausing
      • Part 8 - Save Your Messages View Buffer
      • Part 9 - Clear the Messages View Buffer
      • Part 10 - Exercises
    • Tutorial: Transmit Messages with Vehicle Spy
      • Part 1 - Load the Setup File
      • Part 2 - Enter a Transmit Message
      • Part 3 - Utilize the Alternate Workspace Panels
      • Part 4 - Manually Transmit a Message
      • Part 5 - Periodically Transmit a Message
      • Part 6 - Automatically Respond to a Message
      • Part 7 - Exercises
    • Tutorial: Decode Signals from Messages
      • Part 1 - Load a Setup File
      • Part 2 - Enter a Message
      • Part 3 - Enter an Equation for an Analog Value
      • Part 4 - View Message Data
      • Part 5 - View Message Data with the Signal List and Signal Plot
      • Part 6 - An Introduction to Signal Plot Features
      • Part 7 - Exercises
    • Tutorial: Database Setup
      • Part 1 - Platform Overview
      • Part 2 - Create a Platform
      • Part 3 - Adding Database Files
      • Part 4 - ECU Setup Wizard
      • Part 5 - Diagnostic Decoding
      • Part 6 - Conclusion
    • Tutorial: Basics of Capture Function Block and Graphical Panels
      • Part 1 - Setup the Simulation
      • Part 2 - Setup the Capture Function Blocks
      • Part 3 - Setup the Graphical Panel
      • Part 4 - Conclusion
    • Tutorial: Basics of Scripting and Playback
      • Part 1 - Setup Application Signals
      • Part 2 - Setup the Graphical Panel
      • Part 3 - Setup The Playback Function Block
      • Part 4 - Setup the Script Function Block
      • Part 5 - Summary
    • Tutorial: Request and Save DTC Data
      • Part 1 - Create a Diagnostic Job
      • Part 2 - Create Function Block to Request and Save Data
      • Part 3 - Make a Graphical Panel
      • Part 4 - Request, Save, and View the DTCs
      • Part 5 - Conclusion
    • Tutorial: DPS Programming Automation
      • Part 1 - Create DPS Programming Job
      • Part 2 - Create Function Block to Launch Programming Services
      • Part 3 - Make a Graphical Panel
      • Part 4 - Use the DPS Programming Graphical Panel
      • Part 5 - DPS Programming Automation Conclusion
    • Tutorial: Getting Fancy with Diagnostics
      • Part 1 - Read Data By Identifier Setup
      • Part 2 - Write Data by Identifier Setup
      • Part 3 - Writing the Read DID
      • Part 4 - Request Identifiers using Dynamically Define Data Identifier
      • Part 5 - Request the Dynamic Identifier
      • Part 6 - Conclusion
    • Tutorial: Sort Messages by ECU
      • Part 1 - Start a New Vehicle Spy Application
      • Part 2 - Enter ECU Source IDs to Sort
      • Part 3 - Setup Capture Type Function Blocks
      • Part 4 - Sort the ECU Messages
      • Part 5 - Setup Application Signals
      • Part 6 - Setup Playback Type Function Blocks
      • Part 7 - Setup Script Type Function Blocks
      • Part 8 - Construct a User Dialog
      • Part 9 - Run the Setup
    • Tutorial: Configuring and Using CoreMini
      • Part 1 - Creating a Tx Message
      • Part 2 - Logging Data
      • Part 3 - Loading the Script to the Hardware
      • Part 4 - How to Run the Script
      • Part 5 - Extracting Data
      • Part 6 - Viewing the Data
      • Part 7 - Conclusion
    • Tutorial: Simple Standalone Logging
      • Part 1 - Getting Started
      • Part 2 - Database/Hardware Setup
      • Part 3 - Channels
      • Part 4 - Checking Channel Selection
      • Part 5 - Standalone Logging
      • Part 6 - CoreMini Console
      • Part 7 - Extract Data
      • Part 8 - Conclusion
    • Tutorial: Standalone Video Logging
      • Tutorial: Standalone Video Logging - Part 1 - Setting up the Axis Camera
      • Tutorial: Standalone Video Logging - Part 2 - Setting Up Vehiclescape DAQ
      • Tutorial: Standalone Video Logging - Part 3 - Extracting the Video
    • Tutorial: C Code Interface
      • Part 1 - Create a Project
      • Part 2 - Adding Events
      • Part 3 - Running the Example
      • Part 4 - Debugging
      • Part 5 - Conclusion
    • Tutorial: How to run multiple devices in one VS3 file
      • Part 1 - Enabling Multiple Devices
      • Part 2 - Adding Devices
      • Part 3 - Assigning Devices
      • Part 4 - Syncing Time Across Multiple Devices
  • Tutorial Summary
  • Basic Operation of Vehicle Spy
    • The Logon Screen
    • Menus & Buttons
    • Running and Stopping
    • Data Directory
    • Create, Open, & Save Vehicle Spy Setups
    • Alternate Workspaces
    • Using Window Docking
  • Vehicle Spy Main Menus
    • Main Menu: File
      • The Logon Screen
      • Create, Open, & Save Vehicle Spy Setups
      • Import Function Blocks and Graphical Panels
      • Data Directory
      • Review Buffer
    • Main Menu: Setup
      • Setup a Network
      • Setup Platforms
      • Network Databases
      • ECUs View
        • Edit ECU Diagnostic Database
        • ECU Diagnostic Services Tab
      • Data Cache Disk Streaming
    • Main Menu: Spy Networks
      • Snapshot
      • Messages View
        • Messages View Filter Bar
          • Messages View Custom Filters
        • Messages View Top Toolbar
          • Message Details Pane
          • Reverse Engineering
          • Messages View Timestamping
          • Pause Messages View
          • Save the Buffer
          • Clear the Buffer
        • Messages View Column Headers
        • Messages View Column Filters
        • Messages View Buffer Display
          • Displaying Signals in Messages View
          • Buffer Progress Display
          • Messages View Task Menus
        • Messages View Bottom Toolbar
          • Color Filters
          • Messages View Data Byte Format
          • Messages View Setup
      • Message Editor
        • Messages Editor: Overview
        • Messages Editor: Receive, Transmit, & Database Tables
        • Add and Delete Messages
        • Messages Editor: Cut, Copy, and Paste
        • Messages Editor: Sort and Arrange
        • Messages Editor: Pick a Network
        • Messages Editor: Right Click Menu
        • Message PT, Trgt, and Src
        • Messages Editor: Message Fields
          • Message Key
          • Message Description
          • Message Type
          • Message Arbitration ID
          • Multiframe Message
            • Receive ISO15765-2 Multiframe Message
            • Transmit ISO15765-2 Multiframe Message
          • Message Length
          • Message Data Bytes
            • Transmit Long Messages
          • Message Source Node
          • Receive Message "Tx Msg" Field
          • Message Color
        • Message Signals
          • Live Edit
          • Message Signal Type
          • Message Signal Type Analog
          • Message Signal Type Digital
          • Message Signal Type State Encoded
          • Message Signal Type Text
          • Message Signal Type DTC
          • Understanding Bit and Byte : Bit Positions
          • Message Signal Format and Units
      • Transmit Panel
        • Ways to Transmit Messages
          • Auto Tx and Transmit Rate
        • Add and Delete Transmit Messages
        • Transmit Panel Filter Bar
        • Dynamic Transmit Message Bytes
      • Networks
        • Setup a Network
        • Network Statistics
        • Moving Messages Between Networks
      • TCP/IP
      • FlexRay Controllers
        • FlexRay Controllers: State/Action Tab
        • FlexRay Controllers: Configuration Tab
        • FlexRay Controllers: Registers Tab
      • FlexRay Cycles
      • Diagnostics
        • Diagnostics View
        • Diagnostics Setup
      • Diagnostics over IP (DoIP)
      • Simulator
      • ECUs View
        • GMLAN ECUs
        • ISO 14229 ECUs
        • Keyword 2000 ECUs
    • Main Menu: Measurement
      • VehicleScape DAQ
        • VehicleScape DAQ: Database/Hardware Setup Tab
        • VehicleScape DAQ: Channels Tab
        • VehicleScape DAQ: PC Logging Tab
        • VehicleScape DAQ: Standalone Logging Tab
          • Standalone Logging: Collections and Methods
            • Collections and Methods: Message Capture Method
              • Message Capture Method: Message Collection Options
              • Message Capture Method: Start Options
            • Message Capture Method: Stop Options
              • Message Capture Method: Stop Options: Finish After Collecting Messages or When Expression is True
              • Message Capture Method: Stop Options: Pre/Post Collection
              • Message Capture Method: Stop Options: One Shot Report
            • Message Capture Method: Restart Options
            • Message Capture Method: Upload to Wireless neoVI
            • Collections and Methods: Bus Query Method
            • Collections and Methods: Histogram Method
            • Collections and Methods: Ethernet DAQ Method
          • Standalone Logging: Status Reporting
          • Standalone Logging: Power Management
          • Standalone Logging: Generation Options
        • VehicleScape DAQ: Gateway
        • VehicleScape DAQ: Online Tab
      • Signal Views
        • Signal Plot
        • Signal List
      • Graphical Panels
        • Graphical Panels: Tools
          • Graphical Panel Controls: Common Control Properties
          • Graphical Panel Controls: LED
          • Graphical Panel Controls: Text Display
          • Graphical Panel Controls: Meter
          • Graphical Panel Controls: Function Block Button
          • Graphical Panel Controls: Tx Button
          • Graphical Panel Controls: On/Off Button
          • Graphical Panel Controls: Action Button
          • Graphical Panel Controls: Diag Job Action Button
          • Graphical Panel Controls: Bargraph
          • Graphical Panel Controls: Knob
          • Graphical Panel Controls: Grid
          • Graphical Panel Controls: Numeric Entry
          • Graphical Panel Controls: Graph
          • Graphical Panel Controls: Text Entry
          • Graphical Panel Controls: Graphical Display
          • Graphical Panel Controls: Drop Down List
          • Graphical Panel Controls: Message History
          • Graphical Panel Controls: Flash Control
          • Graphical Panel Controls: Radio Button
          • Graphical Panel Controls: Bitmap Button
          • Graphical Panel Controls: Panel Button
          • Graphical Panel Controls: Hex Edit
        • Graphical Panels: Add or Delete a Tool
        • Graphical Panels: Tool Properties
        • Graphical Panels: Move a Tool
        • Graphical Panels: Resize a Tool
        • Graphical Panels: Format (Align or Resize) a Tool Group
        • Graphical Panels: Add or Delete Panels
        • Graphical Panels: Select and Work With Panels
        • Graphical Panels: Panel Properties
        • Graphical Panels: Lock Panels
        • Floating Panels
      • Logging
      • MEP (XCP/CCP) - Memory Edit Protocol
        • MEP Setup
          • MEP Setup - Properties
          • MEP Setup - Import / Export
          • MEP Setup - DAQ Tables
          • MEP Setup - Security
          • MEP Setup - Memory / Hex / S19
        • MEP Value Editor
        • MEP Curve Editor
        • MEP Map Editor
        • Data Acquisition with CCP/XCP
      • Data Analysis
        • Data Analysis: Main Menus and Toolbar
        • Data Analysis: Zoom Toolbar
        • Data Analysis: X-Axis Input Toolbar and Dialog
        • Data Analysis: Plotter Setup Toolbar
      • Data Analysis: Tool Dialog
        • Data Analysis: Calculated Channels
      • Data Analysis: Plotter Area
        • Data Analysis: Plotter Options
        • Data Analysis: Advanced Plotting Methods
      • Data Analysis: Channel Value Pane
      • Data Analysis: Output Bar
      • GPS Maps
      • Video
    • Main Menu: Embedded Tools
      • DPS Archive Viewer
      • CAN Terminal
      • Intrepid ECU Flasher: Definitions
      • J1939 Address Manager
      • J1939 DTC Monitor
      • BitSmash
    • Main Menu: GMLAN
      • Virtual Networks
      • GM CGI Bus
    • Main Menu: Scripting and Automation
      • Function Blocks
        • Function Blocks Toolbar
        • Function Block List
        • Function Block Start Tab
        • Function Blocks Types
          • Script Type Function Block
          • Script Type Function Block: Script Toolbar
          • Script Type Function Block: Commands
            • Script Type Function Block Command: Clear History
            • Script Type Function Block Command: Clear Stats
            • Script Type Function Block Command: Comment
            • Script Type Function Block Command: CoreMini Action
            • Script Type Function Block Command: DAQ Action
            • Script Type Function Block Command: Diag Job Action
            • Script Type Function Block Command: Function Block Action
            • Script Type Function Block Commands: If, Else, Else If, End If
            • Script Type Function Block Command: Jump If
            • Script Type Function Block Command: Jump To
            • Script Type Function Block Command: Load Message Data
            • Script Type Function Block Command: Log Data
            • Script Type Function Block Commands: Start Loop and End Loop
            • Script Type Function Block Command: Pause
            • Script Type Function Block Command: Read Data
            • Script Type Function Block Command: Set Value
            • Script Type Function Block Command: Set Value If
            • Script Type Function Block Command: Show Panel
            • Script Type Function Block Command: Sleep
            • Script Type Function Block Command: Stop
            • Script Type Function Block Command: Test DTC
            • Script Type Function Block Command: Text API
            • Script Type Function Block Command: Transmit
            • Script Type Function Block Command: Wait For
            • Script Type Function Block Command: Wait Until
          • Script Type Function Block: Resetting the Present Flag
          • Script Type Function Block: Debugging Tools
          • Capture Type Function Block
            • Capture Type Function Block: Filter Tab
            • Capture Type Function Block: Stop and Trigger Tab
            • Capture Type Function Block: Storage Tab
            • Capture Type Function Block: Data Tab
          • Playback Type Function Block
          • Function Blocks Hotkeys
      • C Code Interface
        • Working with the C Code Interface
        • C Code Interface: Functions and Events
          • Functions and Events: Message Objects
          • Functions and Events: Application Signals
          • Functions and Events: Timers
          • Functions and Events: Common Functions and Events
          • Functions and Events: Graphical Panels
          • Functions and Events: Diagnostic Jobs
          • Functions and Events: Function Blocks
          • Functions and Events: Text API
          • Functions and Events: Network Indexes and Statistics
        • C Code Interface: Object Names, Debugging, and Common Mistakes
        • C Code Interface: Advanced Topics
        • C Code Interface: CAPL Conversion
      • Application Signals
        • Application Signals: Save and Restore
      • Text API Terminal
    • Main Menu: Run
    • Main Menu: Tools
      • Utilities: CoreMini Console
        • Utilities: CoreMini Control
        • Utilities: CoreMini Partitions
        • Utilities: CoreMini Advanced Settings
      • Utilities: Extract / Export
        • Utilities: Extract from SD Card
        • Utilities: Export VSB to Other Formats
        • Utilities: Export VSB Convert VSB (with VSDB) to Other Formats V using Command Prompt in Windows
        • Utilities: Export VSB to CSV format using DataExtract.exe
      • Tools: Problem Log
      • Utilities: File Conversions
        • VSB Editor
      • Tools: Utilities
        • Utilities: VS3EXE Generator
        • Utilities: Hardware Acceleration
        • Tools: Performance
        • Tools: Language
      • PLASMA / ION Setup
      • Tools: Options
        • Options: Spy Networks Tab
          • Spy Networks Tab: J1850 VPW Mode
        • Options: Performance Settings
        • Options: Multimedia
          • Multimedia: Joystick Setup
        • Options: Text API Options
        • Options: License System
          • License Upgrade Eligibility
        • Options: GPS Setup
        • Options: Data Directories
        • Options: Regional Settings
    • Main Menu: Help
      • Contact Information - Intrepid Control Systems, Inc.
      • Vehicle Spy Website
  • Shared Features in Vehicle Spy
    • Shared Features: Calculated Signal Editor
      • Shared Features: Calculated Analog or Digital Signals
      • Shared Features: Calculated Text Signals
    • Shared Features: DTC Database
    • Shared Features: Expression Builder
    • Shared Features: Predefined Function Keys
    • Shared Features: Starting with a Selected View
    • Shared Features: Widgets
  • Vehicle Network Interface Hardware
    • Vehicle Network Interface Hardware: neoVI FIRE
      • General Purpose IO
    • Vehicle Network Interface Hardware: neoVI RED
    • Vehicle Network Interface Hardware: neoVI Blue
      • General Purpose IO
    • Vehicle Network Interface Hardware: ValueCAN
    • Getting Started with neoECU
      • neoECU Requirements
      • neoECU 10
        • neoECU 10: IO Map
        • neoECU 10: Loading Scripts Over CAN
        • neoECU 10: Power Up and Buttons
        • neoECU 10: Examples
      • neoECU 20
        • neoECU 20: Configuration
        • neoECU 20: IO Map
        • neoECU 20: Loading Scripts Over USB
        • neoECU 20: Examples
      • neoECU Firmware Updates
      • neoECU Sleep Mode
    • Vehicle Spy Text API
      • Vehicle Spy Text API: ECU Object
      • Vehicle Spy Text API: Labview Interface
    • Vehicle Spy VSB file Spec
  • Application Notes
    • Application Note: CoreMini Partition Logging
      • Logging - Part 1: General Setup
      • Logging - Part 2: Function Block Setup
      • Logging - Part 3: Sending the Script to the Hardware
      • Logging - Part 4: Conclusion
    • Application Note: VehicleScape Standalone Logging
      • Application Note: VehicleScape Standalone Logging - Part 1: Message Collection Options
      • Application Note: VehicleScape Standalone Logging - Part 2: Collection and Restart Options
      • Application Note: VehicleScape Standalone Logging - Part 3: Reporting Options, Power Management and
      • Application Note: VehicleScape Standalone Logging - Part 4: neoVI MOTE Setup
    • Application Note: XCP Driver Example
      • Application Note: XCP Driver Example - Part 1: Process Overview
      • Application Note: XCP Driver Example - Part 2: Example XCP Driver
      • Application Note: XCP Driver Example - Part 3: ECU Simulation and Porting XCP Driver
    • Application Note: neoVI Logging neoECU DAQ
      • Application Note: neoVI Logging neoECU DAQ - Part 1: neoECU Setup
      • Application Note: neoVI Logging neoECU DAQ - Part 2: VehicleScape DAQ
      • Application Note: neoVI Logging neoECU DAQ - Part 3: Review Data
    • Application Note: Using the neoVI MOTE
      • Application Note: Using the neoVI MOTE - Part 1: Messages
      • Application Note: Using the neoVI MOTE - Part 2: Display on Screen
      • Application Note: Using the neoVI MOTE - Part 3: Using the Speaker
      • Application Note: Using the neoVI MOTE - Part 4: Home Screen and Conclusion
    • Application Note: Gateway Builder Tutorial
      • Tutorial - Gateway Builder - Part 1 - Intro
      • Tutorial - Gateway Builder - Part 2 - Gateway Builder Overview
      • Tutorial - Gateway Builder - Part 3 - Add Messages to Gateway Builder
      • Tutorial - Gateway Builder - Part 4 - Gateway Input Actions
      • Tutorial - Gateway Builder - Part 5 - Output Messages, Signals, and Triggers
    • Application Note: Dynamically Manipulating Application Signal Arrays
      • Application Note: Dynamically Manipulating Application Signal Arrays
      • Application Note: Dynamically Manipulating Application Signal Arrays
      • Application Note: Dynamically Manipulating Application Signal Arrays
      • Application Note: Dynamically Manipulating Application Signal Arrays
    • PHY Dashboard
    • Sample Replay Files
  • Contact Us
    • Contact Information - Intrepid Control Systems, Inc.
Powered by GitBook
LogoLogo

Applications

  • Cybersecurity
  • Data Logging
  • Simulate ECU Functions
  • Diagnostics, Testing and Validation

Products

  • Vehicle Network Adapters
  • Data Loggers
  • Software
  • Automotive Ethernet Tools

Support

  • Support Resources
  • Contact Support
  • Class Schedule & Registration
  • Training Video Library

Company

  • About
  • News
  • Events
  • Contact Us

Copyright © 2024 | All Rights Reserved

On this page
  • File Specification
  • Version Specification
  • NetWork ID
  • Example
Edit on GitHub
  1. Vehicle Network Interface Hardware

Vehicle Spy VSB file Spec

PreviousVehicle Spy Text API: Labview InterfaceNextApplication Notes

File Specification

Description
Length in Bytes
Notes

Text Identifier

6

single byte char array with text "icsbin"used to identify file type.

File Version

4

single byte char array indicate version.

Version Section

Variable (see below)

This data structure is determinant the File Version

Version Specification

Version 0x101

This format is no longer created. to see Network ID's

Description
Length in Bytes
Notes

Length of Vs3 File

4

int value indicating the length of the next section (the vs3 file). A zero indicates no vs3 file is present.

Vs3 file

variable (see above)

vs3 file used to save this binary file. This vs3 file is later used to decode the binary data into usable information.

Length of text comment

4

int indicating the length of the text header comment of the saved file. SINCE THE COMMENT IS UNICODE THEREFORE HIS IS THE LENGTH IN CHARACTERS - NOT BYTES.

Text comment

2 bytes per character (see above for number of characters)

Unicode text comment.

Size of Buffer of Messages

4

sizeof(VSBSpyMessage) multiplied by Number of messages saved to the file

Current Buffer Pointer

4

int value which is the pointer to the most recent buffer item +1. (only needed if Number of All time messages > Original buffer size)

Original Buffer Size

4

int value which is the size of the buffer memory originally allocated by this buffer

Number of All time messages

4

this indicates how many messages were received by this buffer (this number will indicate overflows)

Buffer of Messages

variable (see Size of Buffer of Messages)

VSBSpyMessage structures

Start Time of Collection

struct icsspyMsgTime

this is a comparison value between the system time stamp and the neoVI time stamp.

Version 0x102

Description
Length in Bytes
Notes

Length of EDP Section

4

int value indicating the length of the next section (the EDP). A zero indicates no EDP section file is present.

variable (see above)

used to save the extra data bytes for networks such as Ethernet, Flexray, and CANFD

Buffer of Messages

variable (see Size of Buffer of Messages)

VSBSpyMessage structures

Start Time of Collection

struct icsspyMsgTime

this is a comparison value between the system time stamp and the neoVI time stamp.

Version 0x103

Description
Length in Bytes
Notes

Length of EDP Section

4

int value indicating the length of the next section (the EDP). A zero indicates no EDP section is present.

variable (see above)

used to save the extra data bytes for networks such as Ethernet, Flexray, and CANFD

Length of text comment

4

int indicating the length of the text header comment of the saved file. SINCE THE COMMENT IS UNICODE THEREFORE HIS IS THE LENGTH IN CHARACTERS - NOT BYTES.

Text comment

2 bytes per character (see above for number of characters)

Unicode text comment.

Size of Buffer of Messages

4

sizeof(VSBSpyMessage) multiplied by Number of messages saved to the file

Current Buffer Pointer

4

int value which is the pointer to the most recent buffer item +1. (only needed if Number of All time messages > Original buffer size)

Original Buffer Size

4

int value which is the size of the buffer memory originally allocated by this buffer

Number of All time messages

4

this indicates how many messages were received by this buffer (this number will indicate overflows)

Buffer of Messages

variable (see Size of Buffer of Messages)

VSBSpyMessage structures

Start Time of Collection

struct icsspyMsgTime

this is a comparison value between the system time stamp and the neoVI time stamp.

EDP section

Version 0x104

This format is created by the Loggers and VSpy Stream to Disk.

Description
Length in Bytes
Notes

Buffer of Messages

VSBSpyMessage structures

VSBSpyMessage structures

EDP

variable (see previous message's ExtraDataPtr)

used to save the extra data bytes for networks such as Ethernet, Flexray, and CANFD

......

variable

Buffer of Message and EDP continue to repeat until Start Time of Collection. If you are reading the VSB file, simple continue to read until Buffer of Message size read not equal sizeof(VSBSpyMessage)

Start Time of Collection

struct icsspyMsgTime

this is a comparison value between the system time stamp and the neoVI time stamp.

NetWork ID

version 0x101

Description
Value

HSCAN

0

MSCAN

1

SWCAN

2

LSFTCAN

5

DEVICE

8

HSCAN2

9

HSCAN3

10

LIN2

11

LIN3

12

LIN4

13

version 0x102 , 0x103, 0x104

Description
Value

DEVICE

0

HSCAN

1

MSCAN

2

SWCAN

3

LSFTCAN

4

J1708

6

JVPW

8

ISO

9

ISO2

14

LIN

16

ISO3

41

HSCAN2

42

HSCAN3

44

ISO4

47

LIN2

48

LIN3

49

LIN4

50

LIN5

84

MOST

51

CGI

53

HSCAN4

61

HSCAN5

62

SWCAN2

68

ETHERNET_DAQ

69

FLEXRAY1A

80

FLEXRAY1B

81

FLEXRAY2A

82

FLEXRAY2B

83

FLEXRAY

85

MOST25

90

MOST50

91

ETHERNET

93

GMFSA

94

TCP

95

HSCAN6

96

HSCAN7

97

LIN6

98

LSFTCAN2

99

OP_ETHERNET1

17

OP_ETHERNET2

18

OP_ETHERNET3

19

OP_ETHERNET4

45

OP_ETHERNET5

46

OP_ETHERNET6

73

OP_ETHERNET7

75

OP_ETHERNET8

76

OP_ETHERNET9

77

OP_ETHERNET10

78

OP_ETHERNET11

79

OP_ETHERNET12

87

Example

Reading File Specification

bool Messages::Read(char * sFileName)
{
    unsigned long numEDP = 0;

    m_pFile = fopen(sFileName, "rb");
    if (m_pFile)
    {
        fSead( 0, SEEK_END);
        int length = ftell(m_pFile); //identify length of File 
        fSead( 0, SEEK_SET);

        char id[6];
        if (!fRead((char * )&id, 6) || memcmp(id, "icsbin", 6) != 0) //check for icsbin in the first 6 bytes to identify if it a VSB file
        {
            printf("Invalid VSB file\n");
            return false;
        }
        unsigned int fileversion;

      
        if (!fRead((char *)&fileversion, 4)){ //VSB has 4 versions 101 is no longer used 
            printf("Read Error\n");
            return false;
        }
        else if (fileversion == 0x102)//this is created by the extractor
        {
            int EDPSize = ReadEDPSelction(); //the extra data section contains extra data which is different for each message type
            if (EDPSize == 0)
                fSead( VSB_HEADERSIZE, SEEK_SET);
            unsigned long numofmessages = ((length - (EDPSize + SIZEOFEDPSIZE)) - VSB_HEADERSIZE) / sizeof(icsSpyMessage); //calculate number of messages in file; the plus 4
            m_nMessages =  numofmessages; // set number of messages in file
            if (numofmessages){
                if(!ReadMessage(numofmessages, fileversion)){ //read messages
                    printf("file was not read correctly \n");
                    return false;
                }
                
        }
        else if (fileversion == 0x103)//this is created by VSPY
        {
            ReadEDPSelction(); //read EDP
            unsigned long numofmessages = Read103Header(); //read 103 header
            m_nMessages = numofmessages; //set number of messages in file
            if (numofmessages){
                if(!ReadMessage(numofmessages, fileversion)){ //read messages
                    printf("file was not read correctly \n");
                    return false;
                }
            }
        }
        else if (fileversion == 0x104){//this is created by various hardware and VSPY for logging 
            if(!Read104()){ // 104 has a very different structure compared to the other file types
                printf("file was not read correctly \n");
                return false;
            }
        }
        else{
            printf("%s is an unsupported VSB version!\n", sFileName);
            return false;
        }
        fclose(m_pFile);
    }
    else
    {
        printf("Could not open %s to read!\n", sFileName);
        return false;
    }

    return true;
}

Reading EDP Section

int Messages::ReadEDPSelction()
{
    unsigned long  edpsize;	
    bool bFixTimeStamp = false;

    if (fRead((char *)&edpsize, SIZEOFEDPSIZE) && edpsize > 0)//read size of edp section
    {
		unsigned long tempEDPSize = edpsize;
        static const char* EDP_SECTION = "EDP_SECTION"; 
		char obItem [EDPSECTIONSTRINGSIZE];  

        // check if there's an EDP_SECTION in here
        if (fRead(obItem, EDPSECTIONSTRINGSIZE) && tempEDPSize >= EDPSECTIONSTRINGSIZE && strcmp(obItem, EDP_SECTION) == 0)//verify edp section
        {
			// the following lines of code is a bad idea for large files. but since it is an simple example I wanted to simplify the code normality you would want to use some sort of file stream. 

			tempEDPSize -= EDPSECTIONSTRINGSIZE;
			m_pEDPSection = new char[tempEDPSize];             
            
			
			if (!fRead(m_pEDPSection, tempEDPSize)){ //load edp section into memory
				printf("invalid file read\n");
				return 0;
			}

			char * edpPtr = m_pEDPSection;			
            while (tempEDPSize > 0)//parse edp section
            {
                int edpLen = *(int*)edpPtr;
                m_edps.push_back(std::pair<char*, int>(edpPtr + sizeof(int), edpLen));//each node in this vector pertains to a different message (this will make more sense when you look at Read Message )
                tempEDPSize -= sizeof(int);
                edpPtr += edpLen +sizeof(edpLen);			
                tempEDPSize -= edpLen;
            }
            return edpsize;
        }
    }
    return 0;
}

Reading 0x103 File Info

unsigned long Messages::Read103Header()
{
    unsigned long theNumOfMsgs;
    size_t msgslength, currbuffptr, numalltime, commentlength, origbuffsize;

    fRead((char *)&commentlength, 4); //check if there is a comment
    if (commentlength > 0)
        fSead( (long)commentlength * 2, SEEK_CUR); // skip comment (comment written in wchar_t)
    fRead((char *)&msgslength, 4);//size of message section 
    fRead((char *)&origbuffsize, 4); //original size of buffer
    fRead((char *)&currbuffptr, 4);  // current buffer postion 
    fRead((char *)&numalltime, 4); // number of message all time

    theNumOfMsgs = msgslength / sizeof(VSBSpyMessage);    // number of messages

    return theNumOfMsgs;
}

Reading 0x102 and 0x103 Messages

bool Messages::ReadMessage(unsigned long theNumOfMsgs, unsigned int fileversion)
{
    VSBSpyMessage * pMessageRead = new VSBSpyMessage();
	m_pMessages = new icsSpyMessage[theNumOfMsgs];
    bool firstMsg = true;
    SpyMsgTime timeStampRead;
    SpyMsgTime FirstMsgTime;

	for(unsigned int i = 0; i < theNumOfMsgs; i++){//read one message at a time
		if(!fRead((char *)pMessageRead, sizeof(VSBSpyMessage))){//read message
			delete pMessageRead;
			delete m_pMessages;
			m_pMessages = NULL;
			theNumOfMsgs = 0;
			return false;
		}

		if (firstMsg) {//record the start time of the first message
			FirstMsgTime.HardwareTimeStampID = m_pMessages[0].TimeStampHardwareID;
			FirstMsgTime.HardwareTime1 = m_pMessages[0].TimeHardware;
			FirstMsgTime.HardwareTime2 = m_pMessages[0].TimeHardware2;
			FirstMsgTime.SystemTimeStampID = m_pMessages[0].TimeStampSystemID;
			FirstMsgTime.SystemTime1 = m_pMessages[0].TimeSystem;
			FirstMsgTime.SystemTime2 = m_pMessages[0].TimeSystem2;
			firstMsg = false;
		}

		VSBMessageToNormal(&m_pMessages[i], pMessageRead);// convert structure 
		
		bool clear = true;
		if (pMessageRead->ExtraDataPtrEnabled && pMessageRead->iExtraDataPtr) // check for edp section
		{
			if (pMessageRead->iExtraDataPtr >= 1 && pMessageRead->iExtraDataPtr <= m_edps.size())
			{
				int iEDPIndex = pMessageRead->iExtraDataPtr - 1;// identify index in the m_edps vector we made in the ReadEDPSelction function
				int payloadLength = m_edps[iEDPIndex].second; 
				m_pMessages[i].pExtraDataPtr = new pExtraDataPtrHandler(); //using pExtraDataPtrHandler to simply make  to identify length of edp section
				((pExtraDataPtrHandler *)(m_pMessages[i].pExtraDataPtr))->pExtraDataPtr = m_edps[iEDPIndex].first;
				((pExtraDataPtrHandler *)(m_pMessages[i].pExtraDataPtr))->length = payloadLength;
				clear = false;
			}
		}
		if (clear)
		{
			m_pMessages[i].ColorID = 0; //reset values
		    m_pMessages[i].pExtraDataPtr = 0;  //reset values
		}
		if (fileversion == 0x102)//all 102s implicitly have bit 7 high. since we're converting to 103 we need to force it
			m_pMessages[i].TimeStampHardwareID |= 0x80;	
	}
  
    if (!fRead((char *)&timeStampRead, sizeof(timeStampRead))) //check if start logging time was recorded
        timeStampRead = FirstMsgTime; // if start logging time was not record simply set it to first message time
	m_startTimeStamp = timeStampRead;
	delete pMessageRead;
    return true;

}

Reading 0x104

bool Messages::Read104()  // 104 don't have a edp section they instead put the extra data after that message 
{
    unsigned long EDPLength = 0, Edpsize = 0, numOfMessages = 0;

	bool firstMsg = true;
    SpyMsgTime timeStampRead;
    SpyMsgTime FirstMsgTime;

    VSBSpyMessage *pMessage = new VSBSpyMessage();

	while (fRead((char *)pMessage, sizeof(VSBSpyMessage))) // read messages to identify number of message and edp size
    {
		 numOfMessages++;
		 if (pMessage->ExtraDataPtrEnabled && pMessage->iExtraDataPtr > 0)// as you can see we are using extraDataptr to identify the size of the edp section for that message
         {
			Edpsize +=  pMessage->iExtraDataPtr; 
            // The EDP is the length of the extra data following the message, skip it
			fSead((unsigned int)pMessage->iExtraDataPtr, SEEK_CUR); 
         }
	}	

	fSead( VSB_HEADERSIZE, SEEK_SET); //go back to the start
	//from here on out it is very similar to 103 and 102 but the location of the edp section is different 
	
	m_pMessages = new icsSpyMessage[numOfMessages];

    for (unsigned int i = 0; i < numOfMessages; i++)
    {
		if (!fRead((char *)pMessage, sizeof(VSBSpyMessage)))
            break; //error

		if (firstMsg) {
			FirstMsgTime.HardwareTimeStampID = pMessage[0].TimeStampHardwareID;
			FirstMsgTime.HardwareTime1 = pMessage[0].TimeHardware;
			FirstMsgTime.HardwareTime2 = pMessage[0].TimeHardware2;
			FirstMsgTime.SystemTimeStampID = pMessage[0].TimeStampSystemID;
			FirstMsgTime.SystemTime1 = pMessage[0].TimeSystem;
			FirstMsgTime.SystemTime2 = pMessage[0].TimeSystem2;
			firstMsg = false;
		}

        bool clear = true;

		VSBMessageToNormal(&m_pMessages[i], pMessage);

        if (pMessage->ExtraDataPtrEnabled &&  pMessage->iExtraDataPtr >= 1 ) {
            EDPLength = pMessage->iExtraDataPtr;
			char * pEDP = new char[EDPLength];
			if(!fRead(pEDP, EDPLength))
				return false; //error
			m_pMessages[i].pExtraDataPtr = new pExtraDataPtrHandler();
			((pExtraDataPtrHandler *)(m_pMessages[i].pExtraDataPtr))->pExtraDataPtr = (void *)pEDP;
			((pExtraDataPtrHandler *)(m_pMessages[i].pExtraDataPtr))->length = EDPLength;
            clear = false;
        }

        if (clear) {
            EDPLength = 0;
            m_pMessages[i].ColorID = 0;
			m_pMessages[i].pExtraDataPtr = 0;
        }
    }
		
    if (!fRead((char *)&timeStampRead, sizeof(timeStampRead)))
        timeStampRead = FirstMsgTime;
	m_startTimeStamp = timeStampRead;
    m_nMessages = numOfMessages;
    return true;
}

This format is created by the extractor. to see Network ID's

This format is created using VSpy. to see Network ID's

Used by version 0x102 and 0x103. The ExtraDataPtr -1 of each message is a index to the EDP in EDP section. to see Network ID's

Below is a C++ example of how to open a .vsb file (v102 & v103 & 104) and display the network messages (Ethernet, CANFD, and CAN) with some other useful information You can view the full or Download the full project from the links provided.

C++ code
Click
Click
Click
Click
EDP Section
EDP Section