CN109254762A - A kind of open-drive device software platform - Google Patents

A kind of open-drive device software platform Download PDF

Info

Publication number
CN109254762A
CN109254762A CN201810964028.5A CN201810964028A CN109254762A CN 109254762 A CN109254762 A CN 109254762A CN 201810964028 A CN201810964028 A CN 201810964028A CN 109254762 A CN109254762 A CN 109254762A
Authority
CN
China
Prior art keywords
space
application
party
burning
variable
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810964028.5A
Other languages
Chinese (zh)
Other versions
CN109254762B (en
Inventor
樊胜利
王军干
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen City Merbecke Drive Technology Co Ltd
Original Assignee
Shenzhen City Merbecke Drive Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen City Merbecke Drive Technology Co Ltd filed Critical Shenzhen City Merbecke Drive Technology Co Ltd
Priority to CN201810964028.5A priority Critical patent/CN109254762B/en
Publication of CN109254762A publication Critical patent/CN109254762A/en
Application granted granted Critical
Publication of CN109254762B publication Critical patent/CN109254762B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a kind of open-drive device software platforms, including extension application space, expanded application interface, basic function program module, bottom core driving algoritic module, wherein the extension application space is divided into multiple spaces;The extension application of third party's exploitation is placed in the storage sector in extension application space, and variable is placed on the corresponding area RAM;First time burning standardization program executes burning by expanded application interface using third-party extension application by the burning of chip manufacturer, second of burning.The beneficial effects of the present invention are: eliminating the upper computer equipments such as PLC, reduces cost, saves the time, third party user can make products application more extensive.

Description

A kind of open-drive device software platform
Technical field
The present invention relates to the open-drive devices of the plateform system field of application software and drive software, especially driver Software platform.
Background technique
As shown in Figure 1, all kinds of drive products (such as frequency converter, AC servo driver) etc., not to third party User provides second development interface and program, the variable space.For third party user encounter need special function when, Zhi Nengtong It crosses host computer (such as all kinds of computers, embedded board, PLC etc.) and realizes process control procedure, or the exploitation of commission driver producer is specially Use program.
(1) since all kinds of driver applications are very extensive, various applications require also very the differentiation of driver functions It is more, it all transfers to driver manufacturer to go to develop various special machines, will need to be equipped with many application and development engineerings for manufacturer Teacher, personnel's Meteorological are very big;
(2) exploitation of special machine needs very familiar to field application, and manufacturer applied software development engineer just contacts this Be also when a little industrial applications it is very strange, the entire development cycle may be longer, in some instances it may even be possible to the function and reality for finally realizing out Border requires not being inconsistent;
(3) host computer procedures such as all kinds of PLC, touch screen are purchased by third party to develop, by communication and driver into Row is controlled and is interacted, and increases great amount of cost, and the real-time of communication cannot be guaranteed, and has office in the occasion for needing requirement of real-time high It is sex-limited.
Summary of the invention
The invention of the driver software system is to realize each quasi-driver, such as frequency converter, servo-driver product are answered With the plateform system of software and drive software.Meanwhile on this software platform, provides third party user's implementation secondary development and connect Mouth, the program space and the variable space realize various dedicated expansion functions, are by following skill so as to third party user's secondary development What art scheme was realized.
A kind of open-drive device software platform, including extension application space, expanded application interface, basic function journey Sequence module, bottom core drive algoritic module, wherein
The extension application space is divided into multiple spaces;
The extension application of third party's exploitation is placed in the storage sector in extension application space, and variable is placed on The corresponding area RAM;
For first time burning standardization program by the burning of chip manufacturer, second of burning is logical using third-party extension application It crosses expanded application interface and executes burning.
Further, the core driving memory sectors in the extension application space and standard application memory Sector and third party application interface are researched and developed by driver manufacturer to be customized, and driver manufacturer provides standard according to specific agreement The extension application of the interface of application program and third party application interaction, third party's exploitation is placed on respective stored sector Interior, variable is placed on the corresponding area RAM.
Further, each module is provided by dividing to MCU on piece FLASH and RAM under existing MCU scheme Program's memory space and the space ram space Flash divide, and the program space is divided into 3 parts: bottom kernel driver space, Standard drive application space and third party's secondary development application space.
Further, the space Flash divides, and ram space is equally also divided into three parts: bottom kernel driver variable Space, the standard drive application program variable space;And third party's secondary development application program variable space.
Further, replication tool can in burning third party application hex file or Bin file automatic unlocking and Encryption chip again.
The beneficial effects of the present invention are: eliminating the upper computer equipments such as PLC, reduces cost, saves the time, third party user Products application can be made more extensive.
Detailed description of the invention
Fig. 1 is traditional mode and open software platform contrast schematic diagram.
Fig. 2 is open software platform structure chart.
Fig. 3 is memory space address distribution and divides schematic diagram by functional module.
Fig. 4 is extension application call flow chart.
Fig. 5 is that standard application passes to extension application side variable interaction schematic diagram.
Fig. 6 is that extension application passes to standard application side variable interaction schematic diagram.
Fig. 7 is burning program flow chart.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
As shown in Fig. 2, open-drive device software platform, including extension application space, expanded application interface, basis Function program, bottom core drive algorithm, wherein
The extension application space is divided into multiple spaces;
The extension application of third party's exploitation is placed in the storage sector in extension application space, and variable is placed on The corresponding area RAM;
When burning, burning is executed by expanded application interface, first time burning standardization program is dedicated by chip manufacturer Replication tool burning, second of burning use the application program replication tool of third party user
As shown in Fig. 2, core driving memory sectors and standard application memory sectors and third party application Interface by driver manufacturer research and develop customize, i.e., in figure expanded application interface 2., basic function program module 3., bottom core driving 4. part is customized algoritic module by the research and development of driver manufacturer.Driver manufacturer according to specific agreement provide standard application and The extension application of the interface of third party application interaction, third party's exploitation is placed in respective stored sector, and variable is put It sets in the corresponding area RAM, facilitates third party user's secondary development.Can by under existing MCU scheme by MCU on piece FLASH and RAM are divided, and are provided the program's memory space and ram space of each module, can also be realized by custom chip Corresponding function.
In case study on implementation, used chip Flash and RAM memory space address are distributed and divide by functional module, such as Shown in Fig. 3.
The division in the space 1.Flash and ram space.
The program space is divided into 3 parts:
1. .Sector F, Sector G and Sector H are as bottom kernel driver space;
2. .Sector C, Sector D and Sector E are as standard drive application space;
3. .SectorA and SectorB is as third party's secondary development application space.
Ram space is equally also divided into 3 parts:
1. .L3SARAM (Length=0x1000) is used as the bottom kernel driver variable space;
2. .L0, L1 and L2SARAM are as the standard drive application program variable space;
3. .M0 and M1SARAM is as third party's secondary development application program variable space.
2. extension application interface is realized, as shown in Figure 5:
(1) routine call, call flow of the extension application in standard application is as shown, be stored in third Square secondary development application space SectorA is executed extension application " ExFuneIf ", is expanded in SectorB and is applied journey Sequence returns.
(2) variable interaction
Standard application side variable information passes to expanded application functioning side implementation, as shown in Figure 5.
It, will by chip configuration file and pre-processing instruction #pragma DATA_SECTION (ExtFPI, " .BS2EXT ") Pointer variable address is distributed to specified address:
(Uint16*) ExtFPI.Var1 pointer variable address: 0x040 (accounts for 2 spaces word);
(Uint16*) ExtFPI.Var2 pointer variable address: 0x042 (accounts for 2 spaces word);
……
(Uint16*) ExtFPI.Var32 pointer variable address: 0x07E (accounts for 2 spaces word).
Due to having appointed address space in advance, standard application side macrodefinition:
#define Bs2dExPorts(i)(0x040+(i<<1))
By initialization function Bs2ExtPrtInit (), assignment is distinguished in the address of interaction variable by standard application side To the pointer member in the structural body of extension application side, pointer has been directed toward the address of variable of interaction, and third equation only needs The content for the address for wanting reading pointer variable to be directed toward can obtain the information that standard application side is sent to extension application.
Extension application side variable information passes to standard application side implementation, as shown in Figure 6.
Extension application side passes through chip configuration file and pre-processing instruction
#pragma CODE_SECTION (Ex2BsVar, " .EX2BS "),
The address of variable that extension application side passes to standard application side is placed on specified address:
&ExFunVar1 is placed on 0x3E8004 (accounting for 2 spaces word);
&ExFunVar2 is placed on 0x3E8006 (accounting for 2 spaces word);
……
&ExFunVar32 is placed on 0x3E80042 (accounting for 2 spaces word)
Due to having appointed address space in advance, in standard application side macrodefinition
#define Ex2BsPorts (i) (0x03E8004+ (i < < 1)),
Due to appoint in advance 0x03E8004 storage Shi &ExFunVar1,0x03E8006 storage be & ExFunVar2, and so on, by initialization function Ex2BsPrtInit (), extension application side will be sent to mark The address of variable of quasi- application program side is assigned to the pointer variable of standard application side, and standard application side is by pointer The variant content that the transmission of extension application side can be obtained, under two independent Development Engineerings, two burnings finally generating Region is specified in file, distribution burning, realizes that data accurately interact according to the address appointed.
As shown in fig. 7, program development and burning process: burning program is divided into two parts, producer's first time burning standardization program Pass through chip vendor specific replication tool burning.In order to facilitate third party application burning, additionally develop for third party Application program replication tool.Burning process is as shown in Figure 7.Producer's replication tool concrete principle is not belonging to the invention scope, no longer Make excessive explanation.Replication tool can in burning third party application hex file or Bin file automatic unlocking and again plus Close chip, other people are no longer easy to crack and plagiarize, and implement to protect to intellectual property.
In conjunction with above three step, the second development interface of third party user is realized.Facilitate user in standard drive Differentiation function is developed and realized on product.
The beneficial effects of the present invention are:
(1) is realized by special function, eliminates the upper computer equipments such as PLC by second development interface by third party user, Reduce cost.The various times are saved simultaneously, can more meet the various demands of client in time.
It (2), only need to be for standardized product, the various special machines realized by producer, only in stock for agent Producer is needed to provide replication tool and recordable paper.Stock amount is saved, the pressure for also just saving fund is stagnant.
(3) for driver manufacturer, a large amount of personal expenditures are saved, have the third party user of certain technological development strength It is exactly best applications Developmental Engineer, keeps products application more extensive, the sales volume of the product is greatly improved.

Claims (5)

1. a kind of open-drive device software platform, which is characterized in that including extension application space, expanded application interface, Basic function program module, bottom core drive algoritic module, wherein
The extension application space is divided into multiple spaces;
The extension application of third party's exploitation is placed in the storage sector in extension application space, and variable is placed on accordingly The area RAM;
First time burning standardization program passes through expansion using third-party extension application by the burning of chip manufacturer, second of burning It opens up application interface and executes burning.
2. open-drive device software platform according to claim 1, which is characterized in that the extension application space Core driving memory sectors and standard application memory sectors and third party application interface by driver manufacturer Research and development customization, driver manufacturer provide the interface of standard application and third party application interaction according to specific agreement, The extension application of third party's exploitation is placed in respective stored sector, and variable is placed on the corresponding area RAM.
3. open-drive device software platform according to claim 1, which is characterized in that pass through under existing MCU scheme MCU on piece FLASH and RAM are divided, the program's memory space and the space ram space Flash for providing each module divide, will The program space is divided into 3 parts: bottom kernel driver space, standard drive application space and third party's secondary development Application space.
4. open-drive device software platform according to claim 3, which is characterized in that the space Flash divides, by RAM Space is equally also divided into three parts: the bottom kernel driver variable space, the standard drive application program variable space;And the Tripartite's secondary development application program variable space.
5. open-drive device software platform according to claim 1, which is characterized in that replication tool can be in burning Automatic unlocking and encryption chip again when tripartite's application program hex file or Bin file.
CN201810964028.5A 2018-08-23 2018-08-23 Open driver software platform Active CN109254762B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810964028.5A CN109254762B (en) 2018-08-23 2018-08-23 Open driver software platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810964028.5A CN109254762B (en) 2018-08-23 2018-08-23 Open driver software platform

Publications (2)

Publication Number Publication Date
CN109254762A true CN109254762A (en) 2019-01-22
CN109254762B CN109254762B (en) 2022-12-20

Family

ID=65049532

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810964028.5A Active CN109254762B (en) 2018-08-23 2018-08-23 Open driver software platform

Country Status (1)

Country Link
CN (1) CN109254762B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109669732A (en) * 2019-02-14 2019-04-23 深圳力维智联技术有限公司 A kind of drive load method for extending out function system and extending out functional hardware
CN111142972A (en) * 2019-12-27 2020-05-12 京东数字科技控股有限公司 Method, apparatus, system, and medium for extending functions of application program

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050165979A1 (en) * 2004-01-22 2005-07-28 Canon Kabushiki Kaisha Peripheral device control method, control program, and apparatus therefor
CN102541579A (en) * 2010-12-17 2012-07-04 沈阳新邮通信设备有限公司 Method for dynamically loading application program of embedded system
CN104679556A (en) * 2015-02-06 2015-06-03 深圳市硅格半导体有限公司 Application program burning method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050165979A1 (en) * 2004-01-22 2005-07-28 Canon Kabushiki Kaisha Peripheral device control method, control program, and apparatus therefor
CN102541579A (en) * 2010-12-17 2012-07-04 沈阳新邮通信设备有限公司 Method for dynamically loading application program of embedded system
CN104679556A (en) * 2015-02-06 2015-06-03 深圳市硅格半导体有限公司 Application program burning method and system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109669732A (en) * 2019-02-14 2019-04-23 深圳力维智联技术有限公司 A kind of drive load method for extending out function system and extending out functional hardware
CN109669732B (en) * 2019-02-14 2024-05-17 深圳力维智联技术有限公司 External expansion function system and drive loading method of external expansion function hardware
CN111142972A (en) * 2019-12-27 2020-05-12 京东数字科技控股有限公司 Method, apparatus, system, and medium for extending functions of application program
CN111142972B (en) * 2019-12-27 2021-10-01 京东数字科技控股有限公司 Method, apparatus, system, and medium for extending functions of application program

Also Published As

Publication number Publication date
CN109254762B (en) 2022-12-20

Similar Documents

Publication Publication Date Title
CN109254762A (en) A kind of open-drive device software platform
Davis HIPO (hierarchy plus input-process-output)
RU2004131538A (en) METHOD AND SYSTEM FOR MANAGEMENT OF BUSINESS ENTERPRISE PROCESS
CN102955460A (en) Control system of numerical control system master station over input/output (IO) terminal slave station
CN103823467A (en) Control method of industrial robot demonstration planner with motion planning function
CN103870412A (en) Address bit remapping scheme to reduce access granularity of dram accesses
CN113176903B (en) Software integration method and system for Simulink model applied to different automobile controller platforms
CN106775607A (en) A kind of method that ICD is automatically generated header file data-interface
CN106502676A (en) A kind of method that is changed based on simulink models to uml model
US20220255987A1 (en) Method for linking objects of a control program of a control unit of an automation system, and development environment
US7225084B2 (en) Measuring device for a process technology
JP6175844B2 (en) Screen definition device for operation panel
JP4679874B2 (en) Memory card system
CN106547555A (en) A kind of Test driver method based on Scrum Agile Software Developments
JP4345545B2 (en) Simulation device
EP1804166A2 (en) Memory device and information processing apparatus
CN108563621A (en) A kind of PDF report form generation methods, device, equipment and storage medium
WO2023203604A1 (en) Simulation program, simulation device, and control method
CN103870392B (en) Flash memory operating method and device based on embedded system
JP3049945B2 (en) Program generation system
Byrne et al. An Advanced Scientific Graphing Calculator
CN116661750A (en) Method and device for generating front-end project source code based on schma
Al-Khalili Design and Construction of a Multi-Computer Interface and the Sharing of Peripheral Facilities
DE112013004631T5 (en) LSl and LSl manufacturing process
CN103699728A (en) Method and device for establishing finite element contact pair

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant