Skip to playerSkip to main content
  • 2天前
文字稿
00:00ECAN101 is a sophisticated intelligent protocol conversion product.
00:05It has one built-in CANBUS interface and one RS-485 interface,
00:09which can achieve bidirectional data conversion between CAN and RS-485,
00:14supporting multiple data conversion modes.
00:16With its compact size and easy installation,
00:19it is a reliable assistant for engineering applications,
00:22project debugging, and product development.
00:24This tutorial will comprehensively explain the physical connection
00:28and operation modes of this product,
00:30helping you quickly get started with ECAN101.
00:33The software used in the tutorial can be downloaded from the product's related resources.
00:38Before using the product,
00:40we can refer to the product manual to learn more about the product.
00:43Let's start by understanding the product's connections.
00:46According to the product manual,
00:48connect the CAN-L and CAN-H lines of the bus to the L and H interfaces of
00:53the product, respectively.
00:54Here, we will use the U01 to simulate the CAN bus.
00:59In actual use,
01:00please confirm the high and low data lines of the CAN bus
01:03and connect them to the H and L interfaces of the product, respectively.
01:07Next, connect the A and B interfaces of the RS-485 converter
01:11to the A and B interfaces of the product, respectively.
01:14Finally, connect the power supply.
01:17Please note that this product supports DC power supply of 828 voltage.
01:20Please make sure that the voltage of the power supply you use
01:24is within the safe range of the product to avoid damaging it.
01:27With that, the product is now connected.
01:29After powering on, observe whether the PWR indicator lights up.
01:34If it does, it indicates successful startup.
01:37After successfully connecting to the CAN bus and starting the product,
01:40connect the RS-485 converter to the computer
01:43and open the product's configuration software.
01:46First, in the Serial Port Settings section of the configuration software,
01:50set the connection parameters of the product's serial port.
01:53The default baud rate, data bits, parity bits,
01:56and stop bits of the product are 115200, 8, N, 1, respectively.
02:03Fill in these parameters in the configuration software.
02:06If you forget the baud rate parameters,
02:08the product supports baud rate search function.
02:10Click baud rate search and a prompt to confirm the serial port will appear.
02:14Make sure to select the correct serial port and click Yes after restarting the device.
02:20Then, the configuration software will automatically search for available baud rates.
02:24After successfully searching for the baud rate,
02:27enter the corresponding parameters in the configuration software and open the serial port.
02:32Then click Connect Device and the configuration software
02:35will automatically retrieve the product's configuration information.
02:38When the configuration software successfully retrieves the product's configuration information,
02:43it indicates a successful connection.
02:45The product's configuration is done using AT commands,
02:48and a configuration software is also provided for easier configuration.
02:53Next, let's try using AT commands to retrieve the product's information to simulate actual usage.
02:58Here, we need to use a serial port tool, any serial port tool will do.
03:03Fill in the configuration information of the product's serial port in the serial port tool,
03:07The default baud rate, data bits, parity bits, and stop bits are 1152008N1.
03:15After confirming the parameters are correct, open the serial port.
03:19First, we need to enter the AT command mode.
03:22Send the plus plus plus command and then within 3 seconds, send the AT command.
03:27When the return data shows AT mode, it means that we have successfully entered the AT command mode.
03:32Note that do not add a new line character when sending plus plus plus plus,
03:36but a new line character is required when sending AT.
03:40Next, we can use the AT command to configure the product.
03:43Here, we will take querying the CAN bus configuration as an example.
03:48Sending the AT plus CAN command can view the current CAN bus configuration of the product.
03:52As you can see, the current CAN bus frame type, frame ID, and baud rate are NDTF 0,
03:58100k.
03:59We can try modifying the baud rate of the CAN bus by sending the command in the format of
04:04AT plus CAN equals baud rate, frame ID, frame type.
04:08Also, a new line character needs to be sent.
04:11After modifying, requery the CAN bus parameters, and you will find that they have changed,
04:16indicating that the new CAN bus parameters have been successfully configured.
04:20So far, we have finished introducing the method of configuring using AT commands.
04:24Configuring with AT commands has a higher threshold and is not conducive to the initial use of the
04:29product. In comparison, the configuration software is simple and easy to use, which
04:34can quickly help us configure the product. Next, let's understand how to use the configuration
04:39software. After successfully connecting to the product, you can start configuring the
04:43product's parameters. At the top of the configuration software, there are five buttons
04:48for basic control of the product, connect device, exit configuration, restore factory settings,
04:54restart device, and write configuration. On the left side of the configuration software,
04:59you can see the serial port parameter settings box. Here, you can configure the parameters of
05:05the product's serial port, such as baud rate, stop bits, and parity bits. To the right of the
05:10serial port parameter settings box is the CAN bus settings. Among them, can baud rate,
05:16frame category, and frame ID need to be configured according to the connected CAN bus.
05:21Below the serial port parameter settings box, you can set the direction of protocol conversion.
05:27You can choose between one-way conversion or bi-directional conversion of UART and CAN data,
05:32depending on the actual situation. Then, there is the setting of conversion parameters.
05:37Here, you can configure the conversion mode. The product supports trans, TPRIL,
05:43PROTOL, MODBUS, and USER. After setting different conversion modes, you can configure
05:48the corresponding parameters in transparent mode parameters, custom protocol parameters,
05:53and transparent with identifier parameters, below. Next, you can see the device filtering
05:59settings to the right of the conversion parameters. Here, you can set the filtering
06:04method according to the actual usage. The product can be configured to receive all data,
06:08receive only extended frames, receive only standard frames, or use user-defined modes.
06:14The custom mode can be customized according to the user's actual needs.
06:18Finally, the rightmost part of the configuration software is the FLOG window.
06:22Here, you can see all the information sent and received by the configuration software.
06:27After completing the configuration, click write configuration and then restart device to make
06:33the configuration take effect. So far, we have finished introducing the product's configuration.
06:38You can now configure and use the product according to your actual situation.
06:42If you have any questions, you can refer to the product manual for more information about
06:47product configuration. EKN-101 converter supports 5 operating modes. All conversion modes are derived
06:53from the transparent mode. You can explore the use of various conversion modes on your own.
06:58In this tutorial, we will demonstrate the simulation using the transparent mode.
07:02You will need to use the U01 device to simulate the CAN bus in actual use and use the
07:08configuration software for configuration. Are you ready? Let's start the simulation demonstration.
07:13After successfully connecting to the product, you can start configuring the parameters.
07:18First, assume that the product needs to work in an environment with a baud rate of 9600.
07:24Set the corresponding parameters in the serial port parameters. After setting the serial port
07:29parameters, continue to set the CAN bus parameters. Similarly, configure them according to the actual
07:35situation. Assume that the baud rate of the CAN bus is 150k and keep the other parameters
07:41unchanged.
07:42Next, let's try setting the conversion direction to one way, which means only can data can be converted
07:48to the serial port. The product can only read data from the CAN bus. When configuring the working mode
07:53of
07:54the product, we will keep the default transparent mode. Finally, set the filtering according to your needs.
07:59Here, allow all data to pass through. After completing all the settings, double check if the parameters
08:05are correct. After confirming, click Write configuration, wait for a moment, and then restart
08:10the product to make the configuration take effect. Next, open a serial port debugging tool and observe
08:17whether data can be collected. Fill in the parameters you just set in the serial port tool
08:21and click Open after confirming they are correct. Then, about the use of U01, you can refer to the
08:27relevant
08:27tutorial. We will not go into detail here. Just open the CAN channel and simulate actual use.
08:33Now, we can start sending data. First, use the U01 configuration software to send data and observe
08:40whether the serial port tool can receive the data. Then, use the serial port tool to send any data and
08:46observe whether the U01 configuration software can receive it. At this point, it can be observed that when
08:51sending data through the serial port, the U01 configuration software cannot receive the message.
08:57This is because the initially set protocol conversion only converts CAN to the serial port and cannot
09:02convert the serial port to CAN data. Therefore, we return to the product's configuration software and
09:08change the protocol conversion to, both way. After the setting is completed, use the serial port tool and
09:14U01 debugging software to send data separately and observe whether they can receive the messages.
09:19It can be seen that bi-directional data conversion has been successfully achieved. So far,
09:24the process of simulating communication is complete. You can explore more on your own.
09:29For more details, please refer to the product manual. Thank you for watching, and thank you.
评论

推荐视频