Hands-on teaching to configure TSMaster software gateway, 3 minutes easy to get started!

Sharing | Hands-on guide to configure TSMaster Software Gateway, easy to start in 3 minutes!

With the rapid development of industrial automation and informatization, data interaction and communication between different systems need to be carried out efficiently and flexibly. However, different systems often use different communication protocols and message formats, resulting in compatibility problems in data transmission. Software gateways have emerged to realize flexible mapping and forwarding of messages through graphical interface configuration and zero-code development. This modular design not only reduces the development difficulty and cost, but also improves the scalability and maintainability of the system, which can meet the needs of complex and changing industrial scenarios, and provides strong support for system integration and data interaction. This paper focuses on two functions of the software gateway: the message forwarding function and the message forwarding function bypassing the pre-send event.

Keywords:Software Gateway, Message Forwarding, Injection Failure


Software Gateway Module is a GUI-based configuration, zero-code message mapping forwarding tool. It supports the creation of message forwarding lists, and can flexibly configure source and target channels to realize real-time message forwarding. At the same time, with the help of signal generator, it can also modify the target channel data and support multiple signaling modes. It is suitable for scenarios such as message fault injection and Rolling Counter signal change sending, providing efficient solutions for data interaction and testing.


Software gateways have typical applications in industrial automation. For example, in the production line of an automobile manufacturing plant, a software gateway can connect different devices and sensors to collect real-time production data and forward it to the monitoring system. At the same time, it can simulate fault data through the signal generator and inject it into the message forwarding process, which is used to test the fault response capability of the equipment. In addition, the software gateway can also add Rolling Counter signal changes sent to optimize the cooperative work between equipment, improve production efficiency and product quality.

汽车制造工厂的生产线

This article focuses on two features of the software gateway function:

1. Message forwarding function;
2. Message forwarding function to bypass pre-send events

3.1 Message forwarding function realization

3.1.1 Preparation of the engineering environment

▲ Requirement:
Forward the ID 0x64 message sent by channel 2, received by channel 1, out of channel 3, and then receive it through channel 4.

▲ File:
Example DBC file: CAN_FD_Powertrain.dbc.

▲ Software Gateway Module Location:
TSMaster - > Test - > Test Tools - > Software Gateway.

3.1.2 Message forwarding procedure
The procedure is as follows:

Step 1:In the message sending window, the user can add one or more frames of messages, support the direct addition of the original message, or select the message from the database to add, and can specify the corresponding channel of the message, as shown in Figure 1.

添加发送报文
Figure 1: Adding a Send Message

Step 2: In the added message, user can select one or more signals and set the type of signal generator for them, including Sine, Ramp Pulse, Value Range, Toggle, Random, Custom and System Variable. If no signal generator is set, the signal remains in the default state, i.e., “none”. This is shown in Figure 2.

添加发送报文
Figure 2: Adding a Send Message

Step 3: In the Software Gateway window, add messages with the same ID in the same way and activate the corresponding signals. If the signal generator is not set, the signal of the forwarded message remains unchanged; if the signal generator is set, the signal of the forwarded message will be sent according to the generator settings. At the same time, you need to set the source channel and destination channel of the message. For example, if the message with ID 0x64 in the message sending window is sent from channel 2 and received at channel 1, the source channel of the message in the software gateway is channel 1, and the destination channel can be set to channel 3 or channel 4. as shown in Figure 3.

添加发送报文
Figure 3: Adding a Send Message

3.1.3 Message forwarding realization effect

After a message has been sent, the Message Information window displays the messages that were sent normally and those that have been forwarded. For example, the Engspeed signal in the message with ID 0x64 is sent from channel 2 in value range form and received at channel 1. Subsequently, channel 3 forwards the message with ID 0x64 received at channel 1 in sinusoidal form, which is ultimately received at channel 4, thus realizing the desired effect. This is shown in Figures 4, 5 and 6.

软件网关原理图
Fig. 4: Software Gateway Schematic
报文转发后效果
Figure 5: Effect after message forwarding
信号波形展示
Fig. 6: Signal waveform display

3.2 Bypassing the pre-send event function
3.2.1 Bypassing Pre-Send Event Procedure

The procedure is as follows:

Step 1:After completing the message forwarding operation, further pre-send event of C applet is added for modifying the value of Engspeed signal in the message with ID 0x64 as shown in Figure 7.

添加预发送事件
Figure 7: Adding a pre-sent event

Step 2:Activate the Bypass Pre-Send event in the software gateway, as shown in Figure 8.

激活绕过预发送事件
Figure 8:Activation bypassing pre-sent events

3.2.2 Bypassing pre-sent events to achieve an effect

Before activating the bypass pre-transmit event, the Engspeed signal value is always the value set in the pre-transmit event of 10. After activating the bypass function, the graphical waveforms show that the Engspeed signal value in the message with ID 0x64 on channel 3 and channel 4 is restored to the value of the sinusoidal waveform set in the software gateway, which achieves the desired effect. As shown in Figure 9.

Bypassing pre-sent events to achieve an effect
Figure 9: Bypassing the pre-send event implementation effect

DBCDatabase CAN
CANController Area Network
CAN FDCAN with Flexible Data-Rate
IDIdentifier
Tip:
1. Software download:
Click on the software download link below to download and install directly, beta version is recommended:

2. Software upgrades:
You can check for upgrades to the latest version within the software, provided that your computer has an Internet connection.

Note: TOSUN Technical Support Email:support@tosunai.cnWe welcome inquiries! (Company and contact information must be indicated)

发表回复

en_USEnglish
×
×

产品入口: 产品添加到购物车