In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces what the JavaScript integration function of ViCANdo is like, the content is very detailed, interested friends can refer to, hope to be helpful to you.
Hello, Hello! Seeing that the epidemic situation in China is getting better and better, however, we should not take it lightly. I also hope that one day we can communicate with each other face-to-face and smart driving-related technologies, which will add bricks to the road of our country to become a powerful automobile country.
JavaScript
JavaScript is a function-first lightweight, interpretive or just-in-time programming language. Unlike C, C++ and other languages that need to be compiled and then executed, JavaScript is interpreted and executed line by line in the process of running the program.
And different from C, C++ and other languages, JavaScript is actually a scripting language for non-programmers, of course, JavaScript also has very rich features.
ViCANdo-JavaScript
ViCANdo can be extended through custom scripts. The script component is written in JavaScript, and the script can be started on demand or by a trigger configured as a startup script.
The reason for using JavaScript instead of other custom languages is precisely because ViCANdo essentially wants to build a platform that is as easy to use as possible, so that users can learn about the use of JavaScript or the QML language we mentioned earlier from a wide range of resources.
Example: JS script file Hello.js loaded in ViCANdo. In Hello.js, the Hello_inc.js file is called.
In addition to the general functions of JavaScript, we also provide a series of resource access methods for ViCANdo projects in the application environment of ViCANdo.
The following is a brief introduction to some of the objects used in ViCANdo. Readers who pay attention to details can contact us and we will provide detailed JavaScript script user manuals and related demo programs.
Global object
When using ViCANdo, we will create a Project, and the resources under the Project can be called by the JS script.
Global function
Project object
Based on different application scenarios, under each ViCANdo project, we will add a series of Source and presenter, and add trigger and dbc files.
Source is the data we need to access, such as CAN, lin, Flexray, camera and so on.
Presenter is a series of display interfaces that we added to the project.
Example: send an extended frame message through the CAN bus interface in the ViCANdo project.
Timer object
In bus-related applications, timers are often used, through which we can achieve periodic transmission of messages, timing processing of responses and other operations.
Class Timer ()
Start JavaScript_function with a timer.
File operation
In the JavaScript script of ViCANdo, we can also easily read and write files, so that we can customize the record of some information.
Example: create a TXT file and write data
Example: read data from a TXT file
Support for CAN bus operation
Example: send a message through Source [0]
Example: operate after receiving CAN message
Support for J1939 protocol
Example: sending multi-frame messages through SAE J1939 protocol
Support for lin bus
Example: create a master-slave node network for Lin
"through ViCANdo's JavaScript script extension, application engineers can easily and quickly create automated script applications to improve productivity. More JavaScript resources available will not be introduced here one by one. Welcome to leave a message!"
Colored egg
Now ViCANdo supports the interception of the collected data at any location, and the data of a single scenario can be intercepted from the original data based on application requirements.
On the basis of the data interception function, Jingwei Hengrun customizes a special data interception module according to the actual application needs of customers, which supports automatic or manual scene data interception.
Customized scene capture interface
These are only a small part of the functions of ViCANdo tools, and ViCANdo is the front-end component of Jingwei Hengrun's intelligent driving development and test platform solution, in which we are still powerful back-end data analysis and processing, cloud data monitoring, big data analysis and other modules. The whole scheme can not only meet the application of small bicycles, but also for a large number of fleet-level applications. With a view to providing customers in the automotive industry with relevant solutions that can cope with the future development of intelligent driving.
About how the JavaScript integration function of ViCANdo is shared here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.