{"id":6500,"date":"2022-11-21T14:19:12","date_gmt":"2022-11-21T06:19:12","guid":{"rendered":"https:\/\/www.tosunai.com\/?p=6500"},"modified":"2024-04-23T15:28:26","modified_gmt":"2024-04-23T07:28:26","slug":"tsmaster-quick-start-2-message-playback","status":"publish","type":"post","link":"https:\/\/www.tosunai.com\/en\/tsmaster-quick-start-2-message-playback\/","title":{"rendered":"Application Notes | TSMaster Quick Start (2) - Message Playback"},"content":{"rendered":"
Offline playback is also commonly known as viewing recorded messages. Offline playback fully simulates the process of receiving a message, and the user can go to the Trace window to view the message log directly. Again, all properties of the Trace window, such as filtering, are active.<\/p>
1. Basic steps for offline playback 2. Adding playback files<\/strong><\/p> 1) Add from the playback window<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t 2) Directly drag and drop to add 3. Selection of message ranges 1. Online playback configuration<\/strong><\/p> The online playback, also commonly known as the \"data recharge bus\", provides the following configuration interface in order to provide the user with as much flexibility as possible:<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t The configuration screen, as above, contains the following main configuration parameters:<\/p> 1) Whether or not to automatically start online playback<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t AutoStart.<\/strong>Playback of messages is automatically initiated as soon as the device is connected. 2) Output count selection<\/p><\/section>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t Default:<\/strong>TimeStamp As Log File: Message playback based on the timestamp in the log file.<\/p> Step.\u00a0<\/strong>Pause after one message is sent: requires the user to click to send only one frame of the message in the Log file at a time.<\/p> Animated:<\/strong>Apply delay after one message is sent: instead of rushing the timestamp of the Log itself, the user sets a message event interval and plays back the message according to this interval. As shown below:<\/p><\/section>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t Immediately:<\/strong>Direct send the first message: After the user selects a message for playback, it starts playing back the message immediately.<\/p> As Log File.<\/strong>\u00a0Send the first message on its timestamp: The timestamp of the root Log file determines when to start playing the message. For example, if the timestamp of the first message in the log file is 15s, then after connecting to the device, it will wait until 15s have passed before starting to play back the message.<\/p> Delayed:<\/strong>send the first message after timeout: the user artificially configures a delay time. When the connected device passes, it starts to play back the message after the delayed set time interval. As shown below:<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t Let the user set the shortcut to start\/pause playback as shown above: start playback when the user presses the S key on the keyboard; pause playback when the user presses the P key on the keyboard.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t Send Tx messages.\u00a0<\/strong>Playback contains messages sent in the direction of 7) Playback channel selection<\/p> In order to provide users with as much flexibility as possible, TSMaster's playback module provides mapping of playback channels. It is mainly designed to solve the following application scenarios:<\/p> 1. The physical channel is already connected, but you want to switch the channel flexibly, as shown in the following figure:<\/p><\/section>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t Source Channel:<\/strong>The data channel in the Log file. 1. Automatic playback of blocked messages<\/strong><\/p> According to the previous introduction, the automatic playback of messages provides a mechanism for selecting the channel, selecting the playback RX, TX, etc. However, users often need to selectively play back some of the messages or selectively block some of the messages. However, users often need to selectively playback part of the message, or selectively block part of the message. Because the number of playback messages may be very large, therefore, the ID-based playback filtering is not included in the online playback module at present. However, through TSMaster's C Script tool, users can also block the online playback of messages based on ID.<\/p> \u27a2 Basic idea: \u27a2 Operational steps are explained in detail: 1. Blf file (file name with spaces) cannot be loaded<\/strong><\/p> When loading blf into the TSMaster Playback (Offline\/Online) module, a load error occurs and the system message is shown below:<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t Reason:<\/span>The blf file name must not have a space in the middle. As shown in the above figure, change the filename to TSMaster.blf and it will be loaded successfully as shown below:<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t 2. Wants to play back messages according to the time of capture 3. Why the bus playback button is grayed out (not enabled) 4. Why does the TSMaster send messages to the bus as soon as it connects to the device? First, enter the online playback configuration interface by following the steps below:<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t If you select do not auto start, the message will not be played automatically when the device is connected.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t 5. Failed to play back the prompt channel error<\/strong><\/p> In online playback, the message plays for a while and then prompts playback failure and channel error, the error situation is shown below:<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t Trigger Reason:<\/span>Channel mapping error.<\/p> The data channel in the Log message is not correctly mapped to the channel of the CAN tool. For example, in the error reported above, the data channel 2 is used in the log file, and the data channel 2 is mapped to the channel 2 of the CAN tool in TSMaster, but in fact, there is no CAN channel 2 configured in TSMaster, so the transmission fails. For specific channel mapping, please refer to the previous section: Online Playback Configuration->Playback Channel Selection.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t 6. Online playback of direct error frames 7. Online playback is stuck 8. Why did the playback data not match the tripartite tools? Cause analysis: Solution: Tips:<\/span> 9. CAN channel ready, software online playback failed Cause analysis: Solution: overview Preface TSMaster's data playback supports the blf format by default (support for other formats will be added in the future). If you need to [...]<\/p>","protected":false},"author":11,"featured_media":6504,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ocean_post_layout":"","ocean_both_sidebars_style":"","ocean_both_sidebars_content_width":0,"ocean_both_sidebars_sidebars_width":0,"ocean_sidebar":"","ocean_second_sidebar":"","ocean_disable_margins":"enable","ocean_add_body_class":"","ocean_shortcode_before_top_bar":"","ocean_shortcode_after_top_bar":"","ocean_shortcode_before_header":"","ocean_shortcode_after_header":"","ocean_has_shortcode":"","ocean_shortcode_after_title":"","ocean_shortcode_before_footer_widgets":"","ocean_shortcode_after_footer_widgets":"","ocean_shortcode_before_footer_bottom":"","ocean_shortcode_after_footer_bottom":"","ocean_display_top_bar":"default","ocean_display_header":"default","ocean_header_style":"","ocean_center_header_left_menu":"","ocean_custom_header_template":"","ocean_custom_logo":0,"ocean_custom_retina_logo":0,"ocean_custom_logo_max_width":0,"ocean_custom_logo_tablet_max_width":0,"ocean_custom_logo_mobile_max_width":0,"ocean_custom_logo_max_height":0,"ocean_custom_logo_tablet_max_height":0,"ocean_custom_logo_mobile_max_height":0,"ocean_header_custom_menu":"","ocean_menu_typo_font_family":"","ocean_menu_typo_font_subset":"","ocean_menu_typo_font_size":0,"ocean_menu_typo_font_size_tablet":0,"ocean_menu_typo_font_size_mobile":0,"ocean_menu_typo_font_size_unit":"px","ocean_menu_typo_font_weight":"","ocean_menu_typo_font_weight_tablet":"","ocean_menu_typo_font_weight_mobile":"","ocean_menu_typo_transform":"","ocean_menu_typo_transform_tablet":"","ocean_menu_typo_transform_mobile":"","ocean_menu_typo_line_height":0,"ocean_menu_typo_line_height_tablet":0,"ocean_menu_typo_line_height_mobile":0,"ocean_menu_typo_line_height_unit":"","ocean_menu_typo_spacing":0,"ocean_menu_typo_spacing_tablet":0,"ocean_menu_typo_spacing_mobile":0,"ocean_menu_typo_spacing_unit":"","ocean_menu_link_color":"","ocean_menu_link_color_hover":"","ocean_menu_link_color_active":"","ocean_menu_link_background":"","ocean_menu_link_hover_background":"","ocean_menu_link_active_background":"","ocean_menu_social_links_bg":"","ocean_menu_social_hover_links_bg":"","ocean_menu_social_links_color":"","ocean_menu_social_hover_links_color":"","ocean_disable_title":"default","ocean_disable_heading":"default","ocean_post_title":"","ocean_post_subheading":"","ocean_post_title_style":"","ocean_post_title_background_color":"","ocean_post_title_background":0,"ocean_post_title_bg_image_position":"","ocean_post_title_bg_image_attachment":"","ocean_post_title_bg_image_repeat":"","ocean_post_title_bg_image_size":"","ocean_post_title_height":0,"ocean_post_title_bg_overlay":0.5,"ocean_post_title_bg_overlay_color":"","ocean_disable_breadcrumbs":"default","ocean_breadcrumbs_color":"","ocean_breadcrumbs_separator_color":"","ocean_breadcrumbs_links_color":"","ocean_breadcrumbs_links_hover_color":"","ocean_display_footer_widgets":"default","ocean_display_footer_bottom":"default","ocean_custom_footer_template":"","ocean_post_oembed":"","ocean_post_self_hosted_media":"","ocean_post_video_embed":"","ocean_link_format":"","ocean_link_format_target":"self","ocean_quote_format":"","ocean_quote_format_link":"post","ocean_gallery_link_images":"on","ocean_gallery_id":[],"footnotes":""},"categories":[90],"tags":[261,131,263],"class_list":["post-6500","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software-tutorial","tag-trace","tag-tsmaster","tag-263","entry","has-media","owp-thumbs-layout-horizontal","owp-btn-normal","owp-tabs-layout-horizontal","has-no-thumbnails","has-product-nav"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.tosunai.com\/en\/wp-json\/wp\/v2\/posts\/6500","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tosunai.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tosunai.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tosunai.com\/en\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tosunai.com\/en\/wp-json\/wp\/v2\/comments?post=6500"}],"version-history":[{"count":0,"href":"https:\/\/www.tosunai.com\/en\/wp-json\/wp\/v2\/posts\/6500\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.tosunai.com\/en\/wp-json\/wp\/v2\/media\/6504"}],"wp:attachment":[{"href":"https:\/\/www.tosunai.com\/en\/wp-json\/wp\/v2\/media?parent=6500"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tosunai.com\/en\/wp-json\/wp\/v2\/categories?post=6500"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tosunai.com\/en\/wp-json\/wp\/v2\/tags?post=6500"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}
<\/strong>Select Bus Playback \u2192 Select Offline Playback \u2192 Select Playback File \u2192 Select Playback Time Range \u2192 Click Start Playback<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
Select a log file on the desktop, drag and drop it into the TSMaster software area, release the mouse, TSMaster will automatically play back the message, and at the same time add the message to the message playback management window.<\/p>
<\/strong>Since the Trace window presents up to 9999 frames of messages at a time on a single screen, you need to choose the range of messages wisely when analyzing the log files. In the new version, a scripting module will be added to the message playback module to provide more flexibility in analyzing message playback.<\/p><\/section>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t2. Online playback\n<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
Do not auto start: Do not start the message playback immediately after the device is connected, but start it by the user in the playback interface.<\/p>
\n3) Output mode selection\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
\n4) Start-up time mode selection\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
\n5) Start\/Pause Shortcut\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
Do not send Tx messages.\u00a0<\/strong>The return visit does not contain messages sent in the direction.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
Destination Channel:<\/strong>The data channel for the CAN tool in TSMaster.
The configuration shown above means that data on channels 1 and 2 in the log file is played back on channel 1 of the CAN tool, and data on channel 3 is played back on channel 2 of the CAN tool.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t3. Presentation of application cases<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
Sends messages with IDs that need to be masked to the virtual channel so that these messages are not actually put back onto the physical channel.<\/p>
1. In the TSMaster Hardware Configuration, add a channel and select it as a virtual channel as shown below:<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t4. Clearance of doubts<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
<\/strong>If you want to play back the message according to the collection timestamp, please select online playback. Offline playback is mainly used to view the messages, and the requirement is to play back as fast as possible. If you want to play back the message according to the captured time sequence, you can directly adopt the online playback method, the specific settings are shown in the chapter of online playback.<\/p>
<\/strong>In the BusReplay working state, it is not possible to playback the message records. You need to click the Stop button to stop the working state, and then BusReplay will become enabled, allowing users to add messages for playback.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
<\/strong>TSMaster provides the function of online data playback. In order to support the user's need to start playback after hooking up the bus, a function of automatic playback after connecting to the bus is added to the playback settings, as shown in the following figure:<\/p>
<\/strong>If the user plays back, the bus directly error frame. It is very likely that there are messages with the same ID in different data channels in the log file, but when playing back, these messages are played out on the same CAN bus through different channels, resulting in frame ID conflicts, causing error frames and thus preventing normal playback of the data.<\/p>
<\/strong>If the online playback is stuck, please check if you are using the virtual channel. Some computer platforms have some problems with virtual channel support, in this case, users try to avoid using virtual channel. Or plug in a physical channel for online playback of messages.<\/p>
<\/strong>Situation Description:
<\/span>By playing back the data online and monitoring the signal values, we found that there are signal values on the bus messages, such as the signal A value, that are not consistent with the A value parsed by a third-party monitoring tool (e.g., OE). For example, the A-value on TSMaster is 0.0, while the A-value analyzed by OE is 0.3.<\/p>
<\/span>After analyzing the blf file, it was found that the playback blf file contains data from two channels (Channel1 and Channel2).Messages with the same ID in both Channels (e.g. both contain signal A)<\/span>The value of the signal A parsed from channel 2 will be all 0s during playback, because the value of the message from channel 2 is all 0s.Causes the user to incorrectly compare the value in channel 2 with the value parsed by the third-party tool.<\/span><\/p>
<\/span>Since the signal value in channel 2 is not valid data, it is sufficient to block the playback of channel 2 during playback. As shown below:<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
Users who analyze the data signal if you find doubtful points, please note the channel of the message, time stamp, so that the data is comparable.<\/p>
<\/strong>Situation Description:<\/span>
The blf file is loaded and there are only channel 1 messages in the message, but the playback still fails with the following error:<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
<\/span>Inline playback is to reverse the recorded messages back to the physical bus. In this case, the messages recorded in the Blf file are fd messages, but the hardware is classic CAN, so online playback fails.<\/p>
<\/span>Replace the hardware that supports FDCAN, or if the hardware already supports it, set that hardware's operating mode to FDCAN mode. Then just replay it.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>","protected":false},"excerpt":{"rendered":"