Research Article

Collecting Big Data from Automotive ECUs beyond the CAN Bandwidth for Fault Visualization

Algorithm 3

Algorithm of the transfer agent.
Input:
   RP - Data request packet from data collector
    - Operation cycle of system main task
    - The time required for sending one CAN message
    - The size of data that can be stored in one CAN message
   OCC - CAN bus occupancy of the existing operation
Output:
   CIP - Cascading information packet to data collector
   DP - Data transfer packet to data collector
()   procedure SENDDATASEGMENTS
()   begin
()     Frame
()     StartAddress
()     EndAddress
()    
()    
()     CALCULATESEGMENTS()
()    while do
()     while do
(11)      Frame
(12)      Offset
(13)      Base ← the address corresponding to offset
(14)      DP .data 6 bytes of successive data starting from
              the address of DP.Base
(15)      Send CIP and DP to the data collector
(16)      
(17)     end while
(18)    ,
(19)   end while
(20)  end
(21)  end procedure