WO2020150956A1 - Data processing method for orbit model electronic control simulation system, and decoder framework - Google Patents

Data processing method for orbit model electronic control simulation system, and decoder framework Download PDF

Info

Publication number
WO2020150956A1
WO2020150956A1 PCT/CN2019/072947 CN2019072947W WO2020150956A1 WO 2020150956 A1 WO2020150956 A1 WO 2020150956A1 CN 2019072947 W CN2019072947 W CN 2019072947W WO 2020150956 A1 WO2020150956 A1 WO 2020150956A1
Authority
WO
WIPO (PCT)
Prior art keywords
decoder
module
file
user
data
Prior art date
Application number
PCT/CN2019/072947
Other languages
French (fr)
Chinese (zh)
Inventor
刘伯锋
Original Assignee
成都戴瑞斯智控科技有限公司
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 成都戴瑞斯智控科技有限公司 filed Critical 成都戴瑞斯智控科技有限公司
Priority to PCT/CN2019/072947 priority Critical patent/WO2020150956A1/en
Publication of WO2020150956A1 publication Critical patent/WO2020150956A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/654Updates using techniques specially adapted for alterable solid state memories, e.g. for EEPROM or flash memories

Definitions

  • the invention belongs to the field of track model simulation electric control systems, and specifically refers to a data processing method and decoder architecture of a track model electric control simulation system.
  • the data transmission method of the above-mentioned manufacturer data is a custom-encoded carrier transmission.
  • the data packet is stored in the memory in the form of a data block.
  • the data packet requires special software to edit various functions such as logical relationships, data links, and operating parameters. After the compilation is complete, the data packet is generated, and the data packet is written into the decoder through a dedicated hardware burner to be used.
  • the main disadvantages of this technology are:
  • a writer must be used to write the data packet into the decoder.
  • the current track model electronic control system industry has the above-mentioned defects, making it extremely difficult for users of the track model to edit and reconstruct the parameters of the electronic control simulation system.
  • the manufacturer matches the software with the burner. Most of the products of each manufacturer cannot be compatible and universal. If you need to implement advanced functions based on control, you can only purchase the entire set of equipment from the same manufacturer. Because the inherent data transmission method relies on carrier transmission, users need to purchase a writer when programming data, and the data transmission rate is much lower than that of directly transmitting data through the upper computer.
  • the current orbital model industry when products of different manufacturers are used jointly, their basic control is based on the DCC standard protocol formulated by NMRA, so they can be universal. However, products of different manufacturers have subtleties in implementing the NMRA standard. Therefore, users can only choose a complete set of equipment from the same manufacturer when they need advanced control functions. The low writing rate further increases the user's time cost.
  • the purpose of the present invention is to overcome the above-mentioned problems and provide a data processing method and decoder architecture of a track model electronic control simulation system, which increases the functionality of the decoder and reduces the editing, reconstruction and parameters of the track model electronic control simulation system.
  • the difficulty of data entry greatly improves the efficiency of data processing, reduces the difficulty of user data entry, and realizes a two-way communication method based on wired and wireless channels. It also greatly reduces the cost of data processing in the electronic control simulation system. Better promote the promotion and popularization of the orbit model.
  • a data processing method of a track model electric control simulation system mainly includes the following steps:
  • the firmware in step (1) includes an audio processing module, an instruction analysis module, a removable storage module, a motor drive module, a specific light effect module, a signal input and output processing module, and a user profile analysis module.
  • the first logical structure of the audio processing module is:
  • the decoder preloads the user configuration file and associates the sound effect file in the link data file
  • step (6) Judge the number of loop calls required for the sound effect file. If the number of loops is limited, then go to step (7) after the loop is completed, if the number of loops is unlimited, then go to step (6);
  • the second logical structure of the audio processing module is: the decoder preloads the user configuration file and associates the sound effect file in the link data file, and then triggers the decoder according to the user start signal, and the decoder sequentially calls the preset N linked The sound effect file, and N is greater than 0, the specific value of N is set in the user configuration file;
  • the third logical structure of the audio processing module is: the decoder pre-loads the user configuration file and associates the sound effect files in the link data file, and then triggers the decoder according to the user start signal and sequentially links and calls the preset M linked After the call is completed, return to the beginning to call the preset M linked sound effect files again in sequence, and M is greater than 0, the specific value of M can be set in the user configuration file by the user according to the needs;
  • the specific logical structure of the audio processing module is any one or a combination of any two or a combination of three of the above three logical structures of the audio processing module;
  • the decoder preloads the motor parameters in the user configuration file
  • the decoder sends a drive signal to the motor to drive the motor according to the user's operation signal or sensor signal and based on the motor parameters;
  • the decoder receives the feedback parameters of the motor in real time and regulates the speed of the motor in real time through the parameters to keep the speed constant;
  • the decoder pre-loads the specific lighting configuration parameters in the user configuration file
  • the decoder sends out lighting control instructions according to the user's operation signal or sensor signal and based on the lighting configuration parameters;
  • the decoder judges whether the light control instruction needs to be changed according to the user's operation signal or the sensor signal, if it does not need to be changed, it returns to step (3), if it needs to be changed, it goes to step (5);
  • the decoder sends out a new light control instruction based on the user's operation signal or sensor signal and based on the light configuration parameters, and returns to step (4);
  • the function of the removable storage module is to enable the host computer to directly perform read and write operations on the memory of the decoder or the memory connected with the decoder through a storage socket;
  • the user configuration file parsing module is used to parse the field information in the user configuration file, and according to the field information, make each module in the decoder link with the corresponding data file, and preload the items in the user configuration file after linking. parameter;
  • the signal input and output processing module can realize the functions of digital signal input and output, analog signal input and output, and real-time two-way data communication through the decoder.
  • the data files described in step (2) include sound effect files and device files.
  • the user configuration file described in step (3) includes the location of the data file, the logical correspondence of the data file, and configuration parameters.
  • step (4) The transmission method described in step (4) is that the upper computer uses a wired or wireless direct connection method to record the data file and the user configuration file into the memory of the decoder.
  • a decoder framework for a track model electronic control simulation system including a processor, a storage structure connected to the processor, a two-way data interface connected to the processor for two-way data transmission, and a device connected to the processor.
  • the light drive module used to control special lighting effects, the audio module used to process audio files, and the motor drive module used to drive the motor. At the same time, it is connected to the light drive module, audio module, motor drive module and processor for data
  • the storage structure is a memory or a storage structure connected to the processor through a storage socket.
  • a protection module and a power maintenance module are also connected to the processor; the protection module is a functional circuit that detects faults and activates the protection function, and the power maintenance module is a module that can automatically switch power supply lines.
  • the two-way data interface uses a wired connection or a wireless connection based on a wireless transmission module to directly communicate with the host computer.
  • the present invention has the following advantages and beneficial effects:
  • the present invention enables the decoder to be directly read and written by the host computer through the built-in firmware, which is simple and easy to use, and has extremely high compatibility. It can be connected to the host computer for high-speed data entry and fast data editing. It improves the input speed and editing efficiency, and does not require dedicated hardware burning equipment, reducing economic costs.
  • the present invention simplifies and refines the complex logic relationship through research, research and development, and solidifies it in the storage structure of the decoder in the form of firmware, without the need to construct or edit the complex logic relationship through the upper computer, and greatly reduces the track model The difficulty of parameter editing and reconstruction of electronic control simulation system.
  • the present invention uses a user configuration file with a human-computer interaction function.
  • the user configuration file can be directly edited on the host computer in a way that humans can understand, so that the user does not need to use the special editing software for the track model to generate the data packet file.
  • the decoder can associate with the data file and complete the call of the data file through the user configuration file.
  • the user can also customize the logical relationship in the user configuration file according to their own needs, so as to realize the specific functions required by the user. It greatly improves the flexibility and functionality of users, and reduces the difficulty for users to edit system parameters.
  • the decoder of the present invention adopts a new architecture, which makes the firmware function more comprehensive, and allows the user to edit the user configuration file on the mobile smart device at any time, which further improves the convenience of editing the user configuration file.
  • the present invention relies on the new decoder architecture, which can easily and quickly complete the transmission of files and data, that is, it can be connected to the two-way data port of the decoder through the general data interface of the host computer, thereby realizing control instructions and data
  • the transmission makes the decoder not only compatible with the original track-based control method, but also can be controlled in other ways through a two-way interface.
  • the present invention greatly enriches the functionality of the internal modules of the decoder, further increases the function and use effect of the decoder, better promotes the development of enterprises and industries, and more closely meets the needs of users.
  • the decoder of the present invention has both data transmission and data processing functions, that is, the external removable storage device can be directly read and written by the host computer through the decoder, or the decoder itself can directly read and write and read and write through its storage socket Other types of storage media connected to it.
  • Fig. 1 is a block diagram of the decoder structure of the present invention.
  • a data processing method of a track model electric control simulation system mainly includes the following steps:
  • the firmware includes audio processing module, instruction analysis module, removable storage module, motor drive module, specific lighting effect module, signal input and output processing module, and user profile analysis module.
  • the first logical structure of the audio processing module is:
  • the decoder preloads the user configuration file and associates the sound effect file in the link data file
  • step (6) Judge the number of loop calls required for the sound effect file. If the number of loops is limited, then go to step (7) after the loop is completed, if the number of loops is unlimited, then go to step (6);
  • the second logical structure of the audio processing module is: the decoder preloads the user configuration file and associates the sound effect file in the link data file, and then triggers the decoder according to the user start signal, and the decoder sequentially calls the preset N linked The sound effect file, and N is greater than 0, the specific value of N is set in the user configuration file;
  • the third logical structure of the audio processing module is: the decoder pre-loads the user configuration file and associates the sound effect files in the link data file, and then triggers the decoder according to the user start signal and sequentially links and calls the preset M linked After the call is completed, return to the beginning to call the preset M linked sound effect files again in sequence, and M is greater than 0, the specific value of M can be set in the user configuration file by the user according to the needs;
  • the specific logical structure of the audio processing module is any one or a combination of any two or a combination of three of the above three logical structures of the audio processing module;
  • the specific logical structure of the motor drive module is:
  • the decoder preloads the motor parameters in the user configuration file
  • the decoder sends a drive signal to the motor to drive the motor according to the user's operation signal or sensor signal and based on the motor parameters;
  • the decoder receives the feedback parameters of the motor in real time and regulates the speed of the motor in real time through the parameters to keep the speed constant;
  • the decoder pre-loads the specific lighting configuration parameters in the user configuration file
  • the decoder sends out lighting control instructions according to the user's operation signal or sensor signal and based on the lighting configuration parameters;
  • the decoder judges whether the light control instruction needs to be changed according to the user's operation signal or the sensor signal, if it does not need to be changed, it returns to step (3), if it needs to be changed, it goes to step (5);
  • the decoder sends out a new light control instruction based on the user's operation signal or sensor signal and based on the light configuration parameters, and returns to step (4);
  • the function of the removable storage module is to enable the host computer to directly perform read and write operations on the memory of the decoder or the memory connected with the decoder through a storage socket;
  • the user configuration file parsing module is used to parse the field information in the user configuration file, and according to the field information, make each module in the decoder link with the corresponding data file, and preload the items in the user configuration file after linking. parameter;
  • the signal input and output processing module can realize the functions of digital signal input and output, analog signal input and output, and real-time two-way data communication through the decoder
  • the data files include sound effect files and device files.
  • the sound effect files are standardized audio files based on the computer file system, such as wav files, WMA files, MP3 files, and so on.
  • a device file is a file used to describe the working condition, configuration, and associated information of the device with external devices.
  • the user configuration file contains the location of the data file, the logical correspondence of the data file, and configuration parameters.
  • the user profile can achieve a customized effect, that is, the same or different modules can be combined and called individually or multiple times according to the user's needs.
  • the transmission mode is that the upper computer uses a wired or wireless direct connection to record the data file and the user configuration file into the memory of the decoder.
  • the user obtains the firmware file from the manufacturer and transfers the firmware file to the decoder, and the decoder will automatically update the firmware after booting.
  • the firmware file is a data file or data file used to upgrade or downgrade or replace the firmware in the decoder as required.
  • the user can obtain it by downloading.
  • the firmware that has been solidified in the decoder can be upgraded, Downgrade or adjust, thereby further improving the functionality of the product.
  • a decoder architecture of a track model electronic control simulation system includes a processor, a storage structure connected to the processor, a two-way data interface connected to the processor, and lights connected to the processor respectively
  • the interface unit is an interface that conforms to the DCC standard formulated by NMRA, including mtc21 interface, plux22 interface, plux16 interface, and plux8 interface.
  • the DCC standard based on NMRA also has different size standards for decoders of different scale models.
  • the existing manufacturers’ processors mainly use The processor is based on the 51 architecture or the avr architecture.
  • the processor of this application is based on any one of ARM, AVR, DSP, FPGA or X86.
  • the processor based on the 51 and avr architecture is currently the largest The main frequency can only reach 40Mhz and 16Mhz respectively, and the ARM architecture processor can easily reach the operating frequency above 80Mhz, so the computing performance of the ARM architecture processor is far better than the previous two architecture processors; avr Processors of the architecture and 51 architecture all use pipeline operation instructions.
  • the processors of the ARM architecture use a better three-stage pipeline structure to increase the speed of the processor instruction flow, and the processors of DSP, FPGA and X86 architecture are even more effective. Better than ARM architecture processors. Therefore, the processor used in this application has stronger logic and data processing capabilities, which can further improve the performance of the decoder.
  • the two-way data interface can realize two-way data transmission and debugging functions.
  • the functionality of the decoder is increased, so that the decoder has real-time data two-way transmission and a custom control method that is not based on the DCC communication protocol formulated by NMRA.
  • the present application provides a two-way data interface to realize the two-way communication of real-time data without having to be in a specific mode.
  • the instruction analysis module greatly improves the accuracy and security of data extraction, and further improves the reliability of instruction analysis and the protection capability of the system.
  • the audio module includes audio processing units and audio Amplification module.
  • Existing products can only read data blocks compiled by software, and cannot use processor resources to parse audio files and perform other operations.
  • this application can be analyzed through the audio module For example, audio files in wav, mp3, WMA, and flac formats can be output through dac, filtering, frequency division, and multi-channel independent output to further improve the simulation effect of sound quality. Compared with traditional audio output methods, it is extremely It greatly improves the authenticity of the sound effect, and further improves the simulation degree of the product.
  • the aforementioned audio file is a standard host computer file format.
  • the original product cannot directly parse the audio file, and can only read the data block through the address for processing, while the audio file is a complete file containing the data header, data body and data tail. Structure, so the traditional decoder can not parse the audio file; and the audio file is based on the file format of the computer system or smart device system standard, and is stored in the computer file system in the memory, which has strong compatibility and versatility.
  • the DCC standard based on NMRA also has different size standards for decoders of different scale models.
  • the existing light drive modules all use pwm
  • the light driving module of the present application is driven by an adjustable constant current source. Because the constant current source has the characteristics of stable current, it can prolong the service life of the device.
  • the two-way data interface is directly connected to the host computer through the data line or wireless transmission module, and the data transmission can be completed through the two-way data interface, which is more compatible with data transmission and storage. There is no need to use a dedicated burner to burn the data, which not only reduces the equipment cost required for data entry, but also improves the data entry speed.
  • the function of the signal input and output module is to amplify and filter the input or output signal.
  • the sensor can collect various operating data of the track model, such as voltage, current, acceleration, and vehicle speed, and feedback parameters to the processor through the interface unit, and the processor will complete the control of the related equipment according to the parameters.
  • the sensor can also complete the transmission of parameters through the two-way data interface.
  • the use of the two-way data interface for signal feedback to the processor expands the data acquisition interface, so that the processor can receive more signals, thereby further improving the processor The precision of control.
  • the sensor can only complete the feedback of parameter information through the interface unit, and its transmission channel is single, which greatly limits the amount of signal transmission, which in turn leads to the degree of simulation of processor control in the prior art Poor problem.
  • the execution module can be directly connected to the processor through an interface unit or a two-way data interface, and can control the response action of the actuator according to the logic structure or the processor's own judgment and processing and the instructions issued, such as headlights, taillights, carriage lights, transmitters Cigarette etc.
  • the decoder can issue corresponding instructions in time based on the sensor feedback signal. For example, when the rail model car enters the station, the headlights and taillights change the luminous intensity or flashing frequency, or automatically turn on the car lights when the outside light becomes dark. For example, when imitating the speed increase, the smoke generator exhausts smoke according to the engine speed.
  • the motor control function of the circuit board in the decoder can only be completed by setting the BEMF module. Operational testing and feedback.
  • this application provides a two-way interface by improving the processor, which can not only complete the detection and feedback of the motor operation by setting the BEMF module, but also connect the user's external speed sensor with the two-way data interface or interface unit to obtain More reliable motor operating parameters make the speed control effect more stable.
  • the storage structure is a memory or a storage structure connected to a processor through a storage socket; the storage structure is an SD card, a tf card, a CF card, etc.
  • the storage structure selects integrated nand flash or nor flash or connects to the storage structure for storage by setting a storage socket connected to the processor.
  • the specific storage structure can be selected according to the actual needs of users, which further improves the adaptability of the product .
  • the memory can also be a storage device that is switched with a processor through a dedicated chip, such as a micro hard disk.
  • the processor is also connected with a protection module and a power maintenance module;
  • the protection module is a functional circuit that detects faults and activates the protection function, and the power maintenance module is a module that can automatically switch power supply lines.
  • the traditional rail model car is powered by a laid track or a simulated catenary.
  • the decoder will restart due to power failure, which in turn makes the vehicle Loss of control and loss of power, the control of the vehicle can only be restored after the decoder restarts, which will greatly reduce the simulation effect of the rail model car, and frequent restarts of the decoder will more easily cause the decoder to be damaged.
  • the power maintenance module can automatically switch the power supply line when the contact between the wheel and the track is poor, and switch the rail power supply mode to other power supply modes, such as large capacitor power supply, battery power supply, etc.; and switch again when the rail power supply is restored Returning to the rail power supply mode can ensure that the decoder will not restart due to power failure, thereby ensuring the stability of the decoder, and further improving the simulation effect of the rail model car.
  • the protection module completes protection through fault detection.
  • This functional circuit can detect various parameters, such as whether the power consumption of a component exceeds the allowable value, whether the motor is blocked, etc.
  • the detected parameter exceeds the preset value
  • the corresponding signal is fed back to the processor, and the processor automatically performs a protection shutdown operation after receiving the signal feedback.
  • the user can eliminate the fault and restart the device after power-on, eliminating the time cost of the user’s mail repair and the time, manpower and material cost of the manufacturer’s repair.
  • the two-way data interface uses a wired connection or a wireless connection based on a wireless transmission module to directly communicate with an upper computer.
  • the host computer can be a computer, a tablet computer, a smart phone, a control handle, a control platform, etc.
  • the data transmission to a rail model car in the prior art is completed by a two-wire carrier wave method.
  • the transmission can be carried out either through traditional tracks, or through a two-way data interface in a wired or wireless manner.
  • the two-way data interface uses a wired connection or a wireless connection based on a wireless transmission module to directly communicate with an upper computer.
  • the host computer can be a computer, a tablet computer, a smart phone, a control handle that sends instruction information to the processor, a control platform and other control equipment.
  • the data transmission to the rail model car is completed by a two-wire carrier wave.
  • the data transmission of the track model car in this application can be carried out through the traditional track, or through the two-way data interface in a wired or wireless manner.
  • the present invention can be implemented well.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Selective Calling Equipment (AREA)

Abstract

Disclosed is a data processing method for an orbit model electronic control simulation system, comprising the steps: (1) fixing firmware in a decoder; and (2) creating a data file on an upper computer according to regulations of the firmware. Also disclosed a decoder framework of the orbit model electronic control simulation system, comprising a processor, a storage structure, a bidirectional data interface, a light driving module, a signal input/output module, an audio module, a motor driving module, an interface unit, etc.. By means of the data processing method for the orbit model electronic control simulation system and the decoder framework provided in the present invention, the functionality of the decoder is increased, difficulties in parameter editing and reconstruction and data entry of the orbit model electronic control simulation system are reduced, the data processing efficiency is greatly improved, the user data entry difficulty is reduced, a bidirectional communication method based on wired and wireless channels is realized, data processing costs of the electronic control simulation system are greatly reduced, and promotion and popularization of an orbit model are better promoted.

Description

一种轨道模型电控仿真系统的数据处理方法及解码器架构Data processing method and decoder architecture of track model electric control simulation system 技术领域Technical field
本发明属于轨道模型仿真电控系统领域,具体是指一种轨道模型电控仿真系统的数据处理方法及解码器架构。The invention belongs to the field of track model simulation electric control systems, and specifically refers to a data processing method and decoder architecture of a track model electric control simulation system.
背景技术Background technique
在轨道模型领域中,主要制造商掌控了行业内95%以上的用户群体。因为某些原因,主要制造商难以对现有的轨道模型进行改进,进而导致了行业内的技术停滞。上述制造商数的据传输方式为自定义编码载波传输,数据包以数据块形式存放于存储器中,该数据包需要通过专用软件才能进行逻辑关系、数据链接以及运行参数等各项功能的编辑,编译完成后生成数据包,并通过专用硬件烧录器将数据包写入解码器中才能进行使用。该技术的缺陷主要为:In the field of rail models, major manufacturers control more than 95% of the user groups in the industry. For some reasons, it is difficult for major manufacturers to improve the existing orbital model, which has led to a technological stagnation in the industry. The data transmission method of the above-mentioned manufacturer data is a custom-encoded carrier transmission. The data packet is stored in the memory in the form of a data block. The data packet requires special software to edit various functions such as logical relationships, data links, and operating parameters. After the compilation is complete, the data packet is generated, and the data packet is written into the decoder through a dedicated hardware burner to be used. The main disadvantages of this technology are:
一、传统解码器不具备人机交互能力,数据块无法被人类理解,也无法进行有效编辑。1. Traditional decoders do not have human-computer interaction capabilities, and data blocks cannot be understood by humans and cannot be effectively edited.
二、必须使用烧录器才能将数据包写入解码器中。2. A writer must be used to write the data packet into the decoder.
三、必须使用特定软件才能完成相关数据的编辑,且该软件的使用难度较高,需要用户花费大量的时间进行学习才能完成对软件中逻辑关系的编写、数据文件的链接以及参数的设定等,从而加大了控制系统配置的难度。3. Specific software must be used to complete the editing of related data, and the software is difficult to use, requiring users to spend a lot of time learning to complete the compilation of logical relationships in the software, the linking of data files, and the setting of parameters, etc. , Thereby increasing the difficulty of control system configuration.
四、不同制造商的烧录器、解码器以及上位机中的专用编辑软件独立配套,因各个制造商执行的写入标准不一致,导致其无法通用,不利于行业的正常发展。4. The burners, decoders and special editing software in the upper computer of different manufacturers are independently matched. Due to the inconsistent writing standards implemented by various manufacturers, they cannot be used universally, which is not conducive to the normal development of the industry.
五、用户对相关资料参数进行修改后都需要进行软件的编译、数据录入以及反复的测试实验,从而进一步提高了用户的时间成本,而因为写入速度过慢,则进一步加大的时间成本的投入。5. After the user modifies the relevant data parameters, software compilation, data entry and repeated testing and experimentation are required, which further increases the user's time cost, and because the writing speed is too slow, the time cost is further increased Invest.
综上所述,目前轨道模型电控系统行业存在上述缺陷,使得轨道模型的用户编辑和重建电控仿真系统参数的难度极高。制造商将软件与烧录器匹配,各个制造商的大部分产品无法进行兼容通用,如果需要实现基于控制的高级功能 则只能购买同一厂家的整套设备。由于固有的数据传输方式依托于载波传输,用户在烧写数据的时候需要购置烧录器,并且在数据传输速率上也比现如今直接通过上位机传输数据低的多。目前的轨道模型行业中,不同制造商的产品在联合使用时,由于其基本控制都是基于NMRA制定的DCC标准协议故能进行通用,但是由于不同的制造商的产品在执行NMRA的标准时有细微的区别之处,所以导致用户在需要高级控制功能时只能选同一厂家的整套设备,写入速率低下还进一步提高了用户的时间成本。In summary, the current track model electronic control system industry has the above-mentioned defects, making it extremely difficult for users of the track model to edit and reconstruct the parameters of the electronic control simulation system. The manufacturer matches the software with the burner. Most of the products of each manufacturer cannot be compatible and universal. If you need to implement advanced functions based on control, you can only purchase the entire set of equipment from the same manufacturer. Because the inherent data transmission method relies on carrier transmission, users need to purchase a writer when programming data, and the data transmission rate is much lower than that of directly transmitting data through the upper computer. In the current orbital model industry, when products of different manufacturers are used jointly, their basic control is based on the DCC standard protocol formulated by NMRA, so they can be universal. However, products of different manufacturers have subtleties in implementing the NMRA standard. Therefore, users can only choose a complete set of equipment from the same manufacturer when they need advanced control functions. The low writing rate further increases the user's time cost.
发明内容Summary of the invention
本发明的目的在于克服上述问题,提供一种轨道模型电控仿真系统的数据处理方法及解码器架构,增加了解码器的功能性,降低了轨道模型电控仿真系统的参数的编辑、重建和数据录入难度,极大的提高了数据处理的效率,降低了用户数据录入的难度,并实现了基于有线和无线信道的双向通信方法,还极大的降低了电控仿真系统数据处理的成本,更好的促进了轨道模型的推广与普及。The purpose of the present invention is to overcome the above-mentioned problems and provide a data processing method and decoder architecture of a track model electronic control simulation system, which increases the functionality of the decoder and reduces the editing, reconstruction and parameters of the track model electronic control simulation system. The difficulty of data entry greatly improves the efficiency of data processing, reduces the difficulty of user data entry, and realizes a two-way communication method based on wired and wireless channels. It also greatly reduces the cost of data processing in the electronic control simulation system. Better promote the promotion and popularization of the orbit model.
本发明的目的通过下述技术方案实现:The purpose of the present invention is achieved through the following technical solutions:
一种轨道模型电控仿真系统的数据处理方法,主要包括以下步骤:A data processing method of a track model electric control simulation system mainly includes the following steps:
(1)将固件固化在解码器中;(1) Solidify the firmware in the decoder;
(2)根据固件的规定在上位机创建数据文件;(2) Create data files on the host computer according to the firmware regulations;
(3)根据数据文件的属性以固件的逻辑关系为依据创建文本格式的用户配置文件;(3) Create a user configuration file in text format based on the attributes of the data file and the logical relationship of the firmware;
(4)使用上位机将数据文件与用户配置文件传输至解码器中并使得固件根据用户配置文件与数据文件建立关联。(4) Use the host computer to transfer the data file and the user configuration file to the decoder and make the firmware establish an association with the data file according to the user configuration file.
步骤(1)中的固件包括音频处理模块、指令解析模块、可移动存储模块、电机驱动模块、特定灯效模块、信号输入输出处理模块以及用户配置文件解析模块。The firmware in step (1) includes an audio processing module, an instruction analysis module, a removable storage module, a motor drive module, a specific light effect module, a signal input and output processing module, and a user profile analysis module.
进一步的,所述音频处理模块的第一种逻辑结构为:Further, the first logical structure of the audio processing module is:
(一)解码器预加载用户配置文件并关联链接数据文件中的音效文件;(1) The decoder preloads the user configuration file and associates the sound effect file in the link data file;
(二)用户开始信号进入解码器并触发开始指令;(2) The user start signal enters the decoder and triggers the start instruction;
(三)解码器调用已链接的音效文件;(3) The decoder calls the linked audio file;
(四)判断链接的音效文件是否需要循环调用,若需要循环调用则进入步骤(五),否则进入步骤(七);(4) Determine whether the linked sound effect file needs to be called cyclically, if cyclic calling is needed, go to step (5), otherwise go to step (7);
(五)判断音效文件所需循环调用的次数,若循环次数为有限次则在循环完成后进入步骤(七),若循环次数为无限次则进入步骤(六);(5) Judge the number of loop calls required for the sound effect file. If the number of loops is limited, then go to step (7) after the loop is completed, if the number of loops is unlimited, then go to step (6);
(六)判断是否有用户控制信号进入,若无用户控制信号进入则保持循环调用音效文件,若有用户控制信号进入则进入步骤(七);(6) Determine whether there is a user control signal entering, if there is no user control signal entering, keep calling the sound effect file in a loop, if there is a user control signal entering, proceed to step (7);
(七)判断是否需要进行新的音效文件调用,若需要则返回步骤(三),若不需要则停止;(7) Determine whether it is necessary to call a new sound effect file, if necessary, return to step (3), if not, stop;
所述音频处理模块的第二种逻辑结构为:解码器预加载用户配置文件并关联链接数据文件中的音效文件,然后根据用户开始信号触发解码器,解码器依次调用预设的N个已链接的音效文件,且N大于0,N的具体数值在用户配置文件中设定;The second logical structure of the audio processing module is: the decoder preloads the user configuration file and associates the sound effect file in the link data file, and then triggers the decoder according to the user start signal, and the decoder sequentially calls the preset N linked The sound effect file, and N is greater than 0, the specific value of N is set in the user configuration file;
所述音频处理模块的第三种逻辑结构为:解码器预加载用户配置文件并关联链接数据文件中的音效文件,然后根据用户开始信号触发解码器并依次链接并调用预设的M个已链接的音效文件,并在调用完毕后返回开头再次依次调用预设的M个已链接的音效文件,且M大于0,M的具体数值可通过用户根据需要自行在用户配置文件中设置;The third logical structure of the audio processing module is: the decoder pre-loads the user configuration file and associates the sound effect files in the link data file, and then triggers the decoder according to the user start signal and sequentially links and calls the preset M linked After the call is completed, return to the beginning to call the preset M linked sound effect files again in sequence, and M is greater than 0, the specific value of M can be set in the user configuration file by the user according to the needs;
所述音频处理模块的具体逻辑结构为上述三种音频处理模块的逻辑结构中的任意一种或任意两种的组合或三种的组合;The specific logical structure of the audio processing module is any one or a combination of any two or a combination of three of the above three logical structures of the audio processing module;
电机驱动逻辑框架的具体逻辑结构为:The specific logic structure of the motor drive logic framework is:
(一)解码器预加载用户配置文件中的电机参数;(1) The decoder preloads the motor parameters in the user configuration file;
(二)用户的操作信号或传感器信号作为开始信号进入解码器并触发开始指令;(2) The user's operation signal or sensor signal enters the decoder as the start signal and triggers the start instruction;
(三)解码器根据用户的操作信号或传感器信号并以电机参数为依据对电机发送驱动信号以驱动电机;(3) The decoder sends a drive signal to the motor to drive the motor according to the user's operation signal or sensor signal and based on the motor parameters;
(四)在电机运行时解码器实时接收电机的反馈参数并通过该参数实时调控电机的转速以保持转速的恒定;(4) When the motor is running, the decoder receives the feedback parameters of the motor in real time and regulates the speed of the motor in real time through the parameters to keep the speed constant;
特定灯效逻辑框架的具体逻辑结构为:The specific logical structure of the specific lighting effect logical framework is:
(一)解码器预加载用户配置文件中特定的灯光配置参数;(1) The decoder pre-loads the specific lighting configuration parameters in the user configuration file;
(二)用户操作信号或传感器信号作为开始信号进入解码器并触发开始指令;(2) The user operation signal or sensor signal enters the decoder as the start signal and triggers the start instruction;
(三)解码器根据用户的操作信号或传感器信号并以灯光配置参数为依据向外发送灯光控制指令;(3) The decoder sends out lighting control instructions according to the user's operation signal or sensor signal and based on the lighting configuration parameters;
(四)解码器根据用户操作信号或者传感器信号判断是否需要改变灯光控制指令,若不需改变则返回步骤(三),若需要改变则进入步骤(五);(4) The decoder judges whether the light control instruction needs to be changed according to the user's operation signal or the sensor signal, if it does not need to be changed, it returns to step (3), if it needs to be changed, it goes to step (5);
(五)解码器根据用户的操作信号或传感器信号并以灯光配置参数为依据向外发送新的灯光控制指令,并返回步骤(四);(5) The decoder sends out a new light control instruction based on the user's operation signal or sensor signal and based on the light configuration parameters, and returns to step (4);
所述可移动存储模块的作用是使上位机能够对解码器的存储器或通过存储插口与解码器相连接的存储器直接进行读写操作;The function of the removable storage module is to enable the host computer to directly perform read and write operations on the memory of the decoder or the memory connected with the decoder through a storage socket;
所述用户配置文件解析模块用于解析用户配置文件中的字段信息,并根据字段信息使得解码器内部的各个模块分别和相应的数据文件链接,并在链接后预加载用户配置文件中的各项参数;The user configuration file parsing module is used to parse the field information in the user configuration file, and according to the field information, make each module in the decoder link with the corresponding data file, and preload the items in the user configuration file after linking. parameter;
所述信号输入输出处理模块通过解码器能实现数字信号输入与输出、模拟信号输入与输出以及实时双向数据通信的功能。The signal input and output processing module can realize the functions of digital signal input and output, analog signal input and output, and real-time two-way data communication through the decoder.
步骤(2)中所述的数据文件包括音效文件和设备文件。The data files described in step (2) include sound effect files and device files.
步骤(3)中所述的用户配置文件包含数据文件位置、数据文件的逻辑对应关系以及配置参数。The user configuration file described in step (3) includes the location of the data file, the logical correspondence of the data file, and configuration parameters.
步骤(4)中所述的传输方式为上位机使用有线或无线直接连接的方式将数据文件与用户配置文件录入解码器的存储器中。The transmission method described in step (4) is that the upper computer uses a wired or wireless direct connection method to record the data file and the user configuration file into the memory of the decoder.
一种轨道模型电控仿真系统的解码器构架,包括处理器,与处理器相连接的存储结构,与处理器相连接的用于双向传输数据的双向数据接口,分别与处理器相连接的用于控制特殊灯效的灯光驱动模块、用于处理音频文件的音频模 块和用于驱动电机的电机驱动模块,同时与灯光驱动模块、音频模块、电机驱动模块以及处理器相连接的用于进行数据交换的接口单元,设置在接口单元与处理器之间的用于处理信号的信号输入输出模块,与接口单元相连接的用于提取解析信号的指令解析模块,以及与处理器相连接的用于监测和反馈电机运行情况的BEMF模块或外置的转速传感器。A decoder framework for a track model electronic control simulation system, including a processor, a storage structure connected to the processor, a two-way data interface connected to the processor for two-way data transmission, and a device connected to the processor. The light drive module used to control special lighting effects, the audio module used to process audio files, and the motor drive module used to drive the motor. At the same time, it is connected to the light drive module, audio module, motor drive module and processor for data The exchanged interface unit, a signal input/output module for processing signals, which is connected to the interface unit and used for extracting and analyzing signals, and a signal input and output module connected to the interface unit for extracting and analyzing signals, and the The BEMF module or an external speed sensor that monitors and feeds back the running status of the motor.
作为优选,所述存储结构为存储器或通过存储插口与处理器相连接的存储结构。Preferably, the storage structure is a memory or a storage structure connected to the processor through a storage socket.
进一步的,所述处理器上还连接有保护模块和动力维护模块;所述保护模块为拥有检测故障并激活保护功能的功能电路,所述动力维护模块为能够自动切换供电线路的模块。Further, a protection module and a power maintenance module are also connected to the processor; the protection module is a functional circuit that detects faults and activates the protection function, and the power maintenance module is a module that can automatically switch power supply lines.
作为优选,所述双向数据接口使用有线连接或基于无线传输模块的无线连接与上位机进行直接通信。Preferably, the two-way data interface uses a wired connection or a wireless connection based on a wireless transmission module to directly communicate with the host computer.
本发明与现有技术相比,具有以下优点及有益效果:Compared with the prior art, the present invention has the following advantages and beneficial effects:
(1)本发明通过内置固件使得解码器能够被上位机直接读写,简单易用,有极高的兼容性,接入上位机即可进行高速的数据录入以及快速的数据编辑,极大的提高了录入速度与编辑效率,并且不需要专用的硬件烧录设备,降低了经济成本。(1) The present invention enables the decoder to be directly read and written by the host computer through the built-in firmware, which is simple and easy to use, and has extremely high compatibility. It can be connected to the host computer for high-speed data entry and fast data editing. It improves the input speed and editing efficiency, and does not require dedicated hardware burning equipment, reducing economic costs.
(2)本发明通过研究、研发、简化并提炼了复杂的逻辑关系,并以固件形式固化在解码器的存储结构内,无需通过上位机构建或编辑复杂的逻辑关系,并大大降低了轨道模型电控仿真系统参数编辑、重构的难度。(2) The present invention simplifies and refines the complex logic relationship through research, research and development, and solidifies it in the storage structure of the decoder in the form of firmware, without the need to construct or edit the complex logic relationship through the upper computer, and greatly reduces the track model The difficulty of parameter editing and reconstruction of electronic control simulation system.
(3)本发明使用了具有人机交互功能的用户配置文件,该用户配置文件能够在上位机上使用人类能够理解的方式直接编辑该配置文件,使得用户不必使用轨道模型专用编辑软件生成数据包文件,解码器通过该用户配置文件能够与数据文件进行关联并完成对数据文件的调用,同时用户还可以按照自己的需求在用户配置文件中自定逻辑关系,从而实现用户需要的特定的功能,极大的提高了用户使用的灵活性与功能性,降低了用户编辑系统参数的难度。(3) The present invention uses a user configuration file with a human-computer interaction function. The user configuration file can be directly edited on the host computer in a way that humans can understand, so that the user does not need to use the special editing software for the track model to generate the data packet file. , The decoder can associate with the data file and complete the call of the data file through the user configuration file. At the same time, the user can also customize the logical relationship in the user configuration file according to their own needs, so as to realize the specific functions required by the user. It greatly improves the flexibility and functionality of users, and reduces the difficulty for users to edit system parameters.
(4)本发明的解码器采用了新的架构,使得固件功能更加全面,并使得用 户可以在移动智能设备上随时编辑用户配置文件,进一步提高了编辑用户配置文件的便捷性。(4) The decoder of the present invention adopts a new architecture, which makes the firmware function more comprehensive, and allows the user to edit the user configuration file on the mobile smart device at any time, which further improves the convenience of editing the user configuration file.
(5)本发明依托于新的解码器架构,可以很方便快捷的完成文件和数据的传输,即可以通过上位机的通用数据接口与解码器的双向数据口相连接,从而实现控制指令和数据的传输,使解码器既可以兼容原来的基于轨道的控制方式,也可以通过双向接口实现其他方式的控制。(5) The present invention relies on the new decoder architecture, which can easily and quickly complete the transmission of files and data, that is, it can be connected to the two-way data port of the decoder through the general data interface of the host computer, thereby realizing control instructions and data The transmission makes the decoder not only compatible with the original track-based control method, but also can be controlled in other ways through a two-way interface.
(6)本发明极大的丰富了解码器内部模块的功能性,进一步增加了解码器的功能与使用效果,更好的促进了企业与行业的发展,同时更加贴合了用户的需求。(6) The present invention greatly enriches the functionality of the internal modules of the decoder, further increases the function and use effect of the decoder, better promotes the development of enterprises and industries, and more closely meets the needs of users.
(7)本发明的解码器同时具备数据传输和数据处理功能,即外部的可移动存储设备通过该解码器能被上位机直接读写,或者该解码器自身通过其存储插口能直接读写与之相连接的其他类型的存储介质。(7) The decoder of the present invention has both data transmission and data processing functions, that is, the external removable storage device can be directly read and written by the host computer through the decoder, or the decoder itself can directly read and write and read and write through its storage socket Other types of storage media connected to it.
附图说明Description of the drawings
图1为本发明的解码器架构框图。Fig. 1 is a block diagram of the decoder structure of the present invention.
具体实施方式detailed description
下面结合实施例对本发明作进一步的详细说明,但本发明的实施方式不限于此。The present invention will be further described in detail below in conjunction with examples, but the implementation of the present invention is not limited thereto.
实施例1Example 1
一种轨道模型电控仿真系统的数据处理方法,主要包括以下步骤:A data processing method of a track model electric control simulation system mainly includes the following steps:
(1)将固件固化在解码器中;(1) Solidify the firmware in the decoder;
固件包括音频处理模块、指令解析模块、可移动存储模块、电机驱动模块、特定灯效模块、信号输入输出处理模块以及用户配置文件解析模块。The firmware includes audio processing module, instruction analysis module, removable storage module, motor drive module, specific lighting effect module, signal input and output processing module, and user profile analysis module.
其中所述音频处理模块的第一种逻辑结构为:The first logical structure of the audio processing module is:
(一)解码器预加载用户配置文件并关联链接数据文件中的音效文件;(1) The decoder preloads the user configuration file and associates the sound effect file in the link data file;
(二)用户开始信号进入解码器并触发开始指令;(2) The user start signal enters the decoder and triggers the start instruction;
(三)解码器调用已链接的音效文件;(3) The decoder calls the linked audio file;
(四)判断链接的音效文件是否需要循环调用,若需要循环调用则进入步 骤(五),否则进入步骤(七);(4) Determine whether the linked sound effect file needs to be called cyclically, if cyclic calling is needed, go to step (5), otherwise go to step (7);
(五)判断音效文件所需循环调用的次数,若循环次数为有限次则在循环完成后进入步骤(七),若循环次数为无限次则进入步骤(六);(5) Judge the number of loop calls required for the sound effect file. If the number of loops is limited, then go to step (7) after the loop is completed, if the number of loops is unlimited, then go to step (6);
(六)判断是否有用户控制信号进入,若无用户控制信号进入则保持循环调用音效文件,若有用户控制信号进入则进入步骤(七);(6) Determine whether there is a user control signal entering, if there is no user control signal entering, keep calling the sound effect file in a loop, if there is a user control signal entering, proceed to step (7);
(七)判断是否需要进行新的音效文件调用,若需要则返回步骤(三),若不需要则停止;(7) Determine whether it is necessary to call a new sound effect file, if necessary, return to step (3), if not, stop;
所述音频处理模块的第二种逻辑结构为:解码器预加载用户配置文件并关联链接数据文件中的音效文件,然后根据用户开始信号触发解码器,解码器依次调用预设的N个已链接的音效文件,且N大于0,N的具体数值在用户配置文件中设定;The second logical structure of the audio processing module is: the decoder preloads the user configuration file and associates the sound effect file in the link data file, and then triggers the decoder according to the user start signal, and the decoder sequentially calls the preset N linked The sound effect file, and N is greater than 0, the specific value of N is set in the user configuration file;
所述音频处理模块的第三种逻辑结构为:解码器预加载用户配置文件并关联链接数据文件中的音效文件,然后根据用户开始信号触发解码器并依次链接并调用预设的M个已链接的音效文件,并在调用完毕后返回开头再次依次调用预设的M个已链接的音效文件,且M大于0,M的具体数值可通过用户根据需要自行在用户配置文件中设置;The third logical structure of the audio processing module is: the decoder pre-loads the user configuration file and associates the sound effect files in the link data file, and then triggers the decoder according to the user start signal and sequentially links and calls the preset M linked After the call is completed, return to the beginning to call the preset M linked sound effect files again in sequence, and M is greater than 0, the specific value of M can be set in the user configuration file by the user according to the needs;
所述音频处理模块的具体逻辑结构为上述三种音频处理模块的逻辑结构中的任意一种或任意两种的组合或三种的组合;The specific logical structure of the audio processing module is any one or a combination of any two or a combination of three of the above three logical structures of the audio processing module;
电机驱动模块的具体逻辑结构为:The specific logical structure of the motor drive module is:
(一)解码器预加载用户配置文件中的电机参数;(1) The decoder preloads the motor parameters in the user configuration file;
(二)用户的操作信号或传感器信号作为开始信号进入解码器并触发开始指令;(2) The user's operation signal or sensor signal enters the decoder as the start signal and triggers the start instruction;
(三)解码器根据用户的操作信号或传感器信号并以电机参数为依据对电机发送驱动信号以驱动电机;(3) The decoder sends a drive signal to the motor to drive the motor according to the user's operation signal or sensor signal and based on the motor parameters;
(四)在电机运行时解码器实时接收电机的反馈参数并通过该参数实时调控电机的转速以保持转速的恒定;(4) When the motor is running, the decoder receives the feedback parameters of the motor in real time and regulates the speed of the motor in real time through the parameters to keep the speed constant;
特定灯效模块的具体逻辑结构为:The specific logical structure of a specific lighting effect module is:
(一)解码器预加载用户配置文件中特定的灯光配置参数;(1) The decoder pre-loads the specific lighting configuration parameters in the user configuration file;
(二)用户操作信号或传感器信号作为开始信号进入解码器并触发开始指令;(2) The user operation signal or sensor signal enters the decoder as the start signal and triggers the start instruction;
(三)解码器根据用户的操作信号或传感器信号并以灯光配置参数为依据向外发送灯光控制指令;(3) The decoder sends out lighting control instructions according to the user's operation signal or sensor signal and based on the lighting configuration parameters;
(四)解码器根据用户操作信号或者传感器信号判断是否需要改变灯光控制指令,若不需改变则返回步骤(三),若需要改变则进入步骤(五);(4) The decoder judges whether the light control instruction needs to be changed according to the user's operation signal or the sensor signal, if it does not need to be changed, it returns to step (3), if it needs to be changed, it goes to step (5);
(五)解码器根据用户的操作信号或传感器信号并以灯光配置参数为依据向外发送新的灯光控制指令,并返回步骤(四);(5) The decoder sends out a new light control instruction based on the user's operation signal or sensor signal and based on the light configuration parameters, and returns to step (4);
所述可移动存储模块的作用是使上位机能够对解码器的存储器或通过存储插口与解码器相连接的存储器直接进行读写操作;The function of the removable storage module is to enable the host computer to directly perform read and write operations on the memory of the decoder or the memory connected with the decoder through a storage socket;
所述用户配置文件解析模块用于解析用户配置文件中的字段信息,并根据字段信息使得解码器内部的各个模块分别和相应的数据文件链接,并在链接后预加载用户配置文件中的各项参数;The user configuration file parsing module is used to parse the field information in the user configuration file, and according to the field information, make each module in the decoder link with the corresponding data file, and preload the items in the user configuration file after linking. parameter;
所述信号输入输出处理模块通过解码器能实现数字信号输入与输出、模拟信号输入与输出以及实时双向数据通信的功能The signal input and output processing module can realize the functions of digital signal input and output, analog signal input and output, and real-time two-way data communication through the decoder
(2)根据固件的规定在上位机创建数据文件;(2) Create data files on the host computer according to the firmware regulations;
所述的数据文件包括音效文件和设备文件等。The data files include sound effect files and device files.
其中,音效文件是基于计算机文件系统的标准化音频文件,例如wav文件、WMA文件、MP3文件等。Among them, the sound effect files are standardized audio files based on the computer file system, such as wav files, WMA files, MP3 files, and so on.
设备文件是用于描述设备的工况、配置以及与外部设备的关联信息的文件。A device file is a file used to describe the working condition, configuration, and associated information of the device with external devices.
(3)根据数据文件的属性以固件的逻辑关系为依据创建文本格式的用户配置文件;(3) Create a user configuration file in text format based on the attributes of the data file and the logical relationship of the firmware;
用户配置文件包含数据文件位置、数据文件的逻辑对应关系以及配置参数。The user configuration file contains the location of the data file, the logical correspondence of the data file, and configuration parameters.
通过该用户配置文件可以达到自定义的效果,即可以根据用户的需求单独或者多次对相同或不同的模块进行组合调用。The user profile can achieve a customized effect, that is, the same or different modules can be combined and called individually or multiple times according to the user's needs.
(4)使用上位机将数据文件与用户配置文件传输至解码器中并使得固件根 据用户配置文件与数据文件建立关联。(4) Use the host computer to transfer the data file and user configuration file to the decoder and make the firmware associate with the data file based on the user configuration file.
传输方式为上位机使用有线或无线直接连接的方式将数据文件与用户配置文件录入解码器的存储器中。The transmission mode is that the upper computer uses a wired or wireless direct connection to record the data file and the user configuration file into the memory of the decoder.
在需要对固件进行调整、升级或者降级时,用户在制造商处获取固件文件,并将固件文件传输至解码器中,解码器在开机后将会自动对固件进行更新。When the firmware needs to be adjusted, upgraded or downgraded, the user obtains the firmware file from the manufacturer and transfers the firmware file to the decoder, and the decoder will automatically update the firmware after booting.
固件文件是用于升级或降级或根据需求替换解码器内固件的资料文件或数据文件,用户可以通过下载的方式得到,依托于该固件文件,可以对已经固化在解码器中的固件进行升级、降级或者调整,从而进一步提高了产品的功能性。The firmware file is a data file or data file used to upgrade or downgrade or replace the firmware in the decoder as required. The user can obtain it by downloading. Depending on the firmware file, the firmware that has been solidified in the decoder can be upgraded, Downgrade or adjust, thereby further improving the functionality of the product.
实施例2Example 2
如图1所示,一种轨道模型电控仿真系统的解码器构架,包括处理器,与处理器相连接的存储结构,与处理器相连接的双向数据接口,分别与处理器相连接的灯光驱动模块、音频模块和电机驱动模块,同时与灯光驱动模块、音频模块、电机驱动模块以及处理器相连接的接口单元,设置在接口单元与处理器之间的信号输入输出模块,与接口单元相连接的指令解析模块,以及与处理器相连接的BEMF模块或外置的转速传感器。As shown in Figure 1, a decoder architecture of a track model electronic control simulation system includes a processor, a storage structure connected to the processor, a two-way data interface connected to the processor, and lights connected to the processor respectively The driver module, audio module and motor driver module, the interface unit connected to the light driver module, audio module, motor driver module and the processor at the same time, the signal input and output module arranged between the interface unit and the processor, and the interface unit The connected instruction parsing module, and the BEMF module or external speed sensor connected to the processor.
接口单元为符合NMRA制定的DCC标准的接口,包括mtc21接口、plux22接口、plux16接口以及plux8接口等。The interface unit is an interface that conforms to the DCC standard formulated by NMRA, including mtc21 interface, plux22 interface, plux16 interface, and plux8 interface.
在轨道模型行业内对不同比例的模型有严格的尺寸要求,基于NMRA制定的DCC标准对不同比例模型的解码器也有着不同的尺寸标准,在ho比例下,现有制造商的处理器主要采用的是基于51架构或者avr架构的处理器,本申请的处理器则采用基于ARM、AVR、DSP、FPGA或X86中的任意一种架构的处理器,基于51和avr架构的处理器目前最大的主频只能分别达到40Mhz和16Mhz,而ARM架构的处理器可以很轻易的达到80Mhz以上的运行主频,故ARM架构的处理器的运算性能远远优于前面两种架构的处理器;avr和51架构的处理器都是采用的流水线操作指令,ARM架构的处理器则是采用更优的三级流水线结构来增加处理器指令流的速度,而DSP和FPGA以及X86架构的处理器更是优于ARM架构的处理器。因此,本申请采用的处理器具有更强的逻辑和 数据处理能力,进而可以很好的提高解码器的性能。In the rail model industry, there are strict size requirements for models of different scales. The DCC standard based on NMRA also has different size standards for decoders of different scale models. Under the ho scale, the existing manufacturers’ processors mainly use The processor is based on the 51 architecture or the avr architecture. The processor of this application is based on any one of ARM, AVR, DSP, FPGA or X86. The processor based on the 51 and avr architecture is currently the largest The main frequency can only reach 40Mhz and 16Mhz respectively, and the ARM architecture processor can easily reach the operating frequency above 80Mhz, so the computing performance of the ARM architecture processor is far better than the previous two architecture processors; avr Processors of the architecture and 51 architecture all use pipeline operation instructions. The processors of the ARM architecture use a better three-stage pipeline structure to increase the speed of the processor instruction flow, and the processors of DSP, FPGA and X86 architecture are even more effective. Better than ARM architecture processors. Therefore, the processor used in this application has stronger logic and data processing capabilities, which can further improve the performance of the decoder.
双向数据接口能够实现数据双向传输和调试功能,通过设置双向数据接口增加了解码器的功能性,使得解码器具有实时数据双向传输和不基于NMRA制定的DCC通讯协议的自定义控制方式。与现有技术中的单向或特定模式传输数据的方式相比,本申请设置双向数据接口不必在特定模式下即可实现实时数据的双向通信。The two-way data interface can realize two-way data transmission and debugging functions. By setting the two-way data interface, the functionality of the decoder is increased, so that the decoder has real-time data two-way transmission and a custom control method that is not based on the DCC communication protocol formulated by NMRA. Compared with the one-way or specific mode data transmission method in the prior art, the present application provides a two-way data interface to realize the two-way communication of real-time data without having to be in a specific mode.
指令解析模块极大的提高了数据提取的精准性和安全性,进一步提高了指令解析的可靠性和系统的保护能力。The instruction analysis module greatly improves the accuracy and security of data extraction, and further improves the reliability of instruction analysis and the protection capability of the system.
在轨道模型行业内对不同比例的模型有严格的尺寸要求,基于NMRA制定的DCC标准对不同比例模型的解码器也有着不同的尺寸标准,在ho比例下,音频模块又包括音频处理单元和音频放大模块,现有的产品只能读取经过软件编译后的数据块,而无法利用处理器的资源来兼顾解析音频文件及执行其他操作,而本申请由于处理架构的改变,能够通过音频模块解析例如wav、mp3、WMA以及flac格式的音频文件,而在输出时可以通过dac、滤波、分频和多声道独立输出的方式进一步提高音效质量的仿真效果,与传统音频输出方式相比,极大的提高了音效的真实性,进而提高了产品的仿真度。前述的音频文件是标准上位机文件格式,原有的产品不能直接解析音频文件,只能通过地址读取数据块从而进行处理,而音频文件则是包含数据头、数据体和数据尾的完整文件结构,所以传统解码器是无法解析该音频文件;而音频文件是基于计算机系统或智能设备系统标准的文件格式,并存放在存储器中的计算机文件系统中,具有很强的兼容性和通用性。In the track model industry, there are strict size requirements for models of different scales. The DCC standard based on NMRA also has different size standards for decoders of different scale models. In the ho scale, the audio module includes audio processing units and audio Amplification module. Existing products can only read data blocks compiled by software, and cannot use processor resources to parse audio files and perform other operations. However, due to changes in the processing architecture, this application can be analyzed through the audio module For example, audio files in wav, mp3, WMA, and flac formats can be output through dac, filtering, frequency division, and multi-channel independent output to further improve the simulation effect of sound quality. Compared with traditional audio output methods, it is extremely It greatly improves the authenticity of the sound effect, and further improves the simulation degree of the product. The aforementioned audio file is a standard host computer file format. The original product cannot directly parse the audio file, and can only read the data block through the address for processing, while the audio file is a complete file containing the data header, data body and data tail. Structure, so the traditional decoder can not parse the audio file; and the audio file is based on the file format of the computer system or smart device system standard, and is stored in the computer file system in the memory, which has strong compatibility and versatility.
在轨道模型行业内对不同比例的模型有严格的尺寸要求,基于NMRA制定的DCC标准对不同比例模型的解码器也有着不同的尺寸标准,在ho比例下,现有的灯光驱动模块均使用pwm形式,而本申请的灯光驱动模块则采用可调恒流源的方式进行驱动,因为恒流源拥有使用电流稳定的特点,所以很好的延长了设备的使用寿命。In the track model industry, there are strict size requirements for models of different scales. The DCC standard based on NMRA also has different size standards for decoders of different scale models. Under the ho scale, the existing light drive modules all use pwm However, the light driving module of the present application is driven by an adjustable constant current source. Because the constant current source has the characteristics of stable current, it can prolong the service life of the device.
双向数据接口直接通过数据线或无线传输模块与上位机直接连接,通过双 向数据接口便可以完成数据的传输,其对数据的传输、存储的兼容性更强。无需通过专用烧录器对数据进行烧录,不仅降低了数据录入时所需的设备成本,还能很好的提高了数据的录入速度。The two-way data interface is directly connected to the host computer through the data line or wireless transmission module, and the data transmission can be completed through the two-way data interface, which is more compatible with data transmission and storage. There is no need to use a dedicated burner to burn the data, which not only reduces the equipment cost required for data entry, but also improves the data entry speed.
信号输入输出模块的作用是对输入或输出的信号进行放大、滤波等处理。The function of the signal input and output module is to amplify and filter the input or output signal.
由于固有的数据烧录方式依托于载波传输,所以在对于数据的录入难以兼容现如今的主流上位机的直接接口,导致用户在录入数据的时候需要购置烧录器,在操作难度上也比本申请的通过上位机直接传输数据复杂的多。Because the inherent data burning method relies on carrier wave transmission, it is difficult for data input to be compatible with the direct interface of today’s mainstream upper computer, which leads to the need for users to purchase a burner when inputting data, which is also more difficult in operation. It is much more complicated to apply for direct data transmission through the host computer.
传感器能够采集轨道模型的各项运行数据,如电压、电流、加速度以及车速等,并通过接口单元对处理器进行参数的反馈,处理器将会根据参数完成对相关设备的控制。另外,传感器也可以通过双向数据接口完成参数的传输,利用双向数据接口对处理器进行信号反馈的方式扩大了数据采集接口,从而使得处理器能够接收到更多的信号,进而进一步提高了处理器控制的精准性。而相对的,在现有技术中,传感器仅能通过接口单元完成参数信息的反馈,其传输通道单一,极大的限制了信号的传输量,进而导致了现有技术中处理器控制的仿真度较差的问题。The sensor can collect various operating data of the track model, such as voltage, current, acceleration, and vehicle speed, and feedback parameters to the processor through the interface unit, and the processor will complete the control of the related equipment according to the parameters. In addition, the sensor can also complete the transmission of parameters through the two-way data interface. The use of the two-way data interface for signal feedback to the processor expands the data acquisition interface, so that the processor can receive more signals, thereby further improving the processor The precision of control. On the contrary, in the prior art, the sensor can only complete the feedback of parameter information through the interface unit, and its transmission channel is single, which greatly limits the amount of signal transmission, which in turn leads to the degree of simulation of processor control in the prior art Poor problem.
执行模块可以通过接口单元或双向数据接口直接与处理器相连接,且能根据逻辑结构或处理器自行判断处理并发出的指令控制执行器响应动作的模块,如头灯、尾灯、车厢灯、发烟器等。解码器能够及时的根据传感器反馈的信号而下达相应的指令,比如在轨道模型车进站时头灯与尾灯改变发光的强度或者闪烁频率,又如在外界光线变暗时自动开启车厢灯,再如在模仿提速时发烟器根据发动机转速排烟。The execution module can be directly connected to the processor through an interface unit or a two-way data interface, and can control the response action of the actuator according to the logic structure or the processor's own judgment and processing and the instructions issued, such as headlights, taillights, carriage lights, transmitters Cigarette etc. The decoder can issue corresponding instructions in time based on the sensor feedback signal. For example, when the rail model car enters the station, the headlights and taillights change the luminous intensity or flashing frequency, or automatically turn on the car lights when the outside light becomes dark. For example, when imitating the speed increase, the smoke generator exhausts smoke according to the engine speed.
按照NMRA组织的标准,在不同比例的轨道模型中对解码器尺寸有严格规定,所以对于某些小比例的轨道模型,其解码器中电路板的电机控制功能仅能通过设置BEMF模块来完成对电机运行的检测与反馈。而本申请通过改进处理器,提供了一个双向接口,不仅能够通过设置BEMF模块来完成对电机运行的检测与反馈,还能通过用户外置转速传感器与双向数据接口或接口单元连接,以此获得更加可靠的电机运行参数,使速度控制效果更加稳定。According to the standards of the NMRA organization, there are strict regulations on the size of the decoder in different scale track models. Therefore, for some small-scale track models, the motor control function of the circuit board in the decoder can only be completed by setting the BEMF module. Operational testing and feedback. However, this application provides a two-way interface by improving the processor, which can not only complete the detection and feedback of the motor operation by setting the BEMF module, but also connect the user's external speed sensor with the two-way data interface or interface unit to obtain More reliable motor operating parameters make the speed control effect more stable.
所述存储结构为存储器或通过存储插口与处理器相连接的存储结构;所述存储结构为sd卡、tf卡、CF卡等。The storage structure is a memory or a storage structure connected to a processor through a storage socket; the storage structure is an SD card, a tf card, a CF card, etc.
存储结构选择集成的nand flash或nor flash或者通过设置与处理器相连接的存储插口来接入存储结构来进行存储,具体的存储结构可以根据用户的实际需求进行选择,进一步提高了产品的适应性。The storage structure selects integrated nand flash or nor flash or connects to the storage structure for storage by setting a storage socket connected to the processor. The specific storage structure can be selected according to the actual needs of users, which further improves the adaptability of the product .
该存储器还可以为通过专用芯片与处理器转接的存储装置,如微型硬盘。The memory can also be a storage device that is switched with a processor through a dedicated chip, such as a micro hard disk.
所述处理器上还连接有保护模块和动力维护模块;所述保护模块为拥有检测故障并激活保护功能的功能电路,所述动力维护模块为能够自动切换供电线路的模块。The processor is also connected with a protection module and a power maintenance module; the protection module is a functional circuit that detects faults and activates the protection function, and the power maintenance module is a module that can automatically switch power supply lines.
传统的轨道模型车的供电是通过铺设的轨道或者是仿真接触网,在车轮与轨道之间,受电弓与接触网之间的接触不良时则会因为断电导致解码器重启,进而使得车辆失去控制且丧失动力,在解码器重启完成后才能恢复对车辆的控制,如此将会极大的降低轨道模型车的仿真效果,而解码器频繁的重启则更容易导致解码器损坏。采用动力维护模块则能够在车轮与轨道之间的接触不良的时候自动切换供电线路,将轨道供电模式切换为其他供电模式,如大电容供电、电池供电等模式;而在轨道供电恢复时再次切换回轨道供电模式,如此便能很好的保证解码器不会因断电而重启,从而确保了解码器的运行稳定性,进一步提高了轨道模型车的仿真效果。The traditional rail model car is powered by a laid track or a simulated catenary. When the contact between the wheel and the track, or between the pantograph and the catenary is poor, the decoder will restart due to power failure, which in turn makes the vehicle Loss of control and loss of power, the control of the vehicle can only be restored after the decoder restarts, which will greatly reduce the simulation effect of the rail model car, and frequent restarts of the decoder will more easily cause the decoder to be damaged. The power maintenance module can automatically switch the power supply line when the contact between the wheel and the track is poor, and switch the rail power supply mode to other power supply modes, such as large capacitor power supply, battery power supply, etc.; and switch again when the rail power supply is restored Returning to the rail power supply mode can ensure that the decoder will not restart due to power failure, thereby ensuring the stability of the decoder, and further improving the simulation effect of the rail model car.
保护模块是通过故障检测来完成保护的,该功能电路能够检测各项参数,如某部件的功耗是否超过允许值,电机是否堵转等。在检测的参数超过预设值时则将相应的信号反馈给处理器,处理器在接收到信号反馈后自动进行保护停机操作。当断电保护操作后,用户排除故障,上电重启就可以重新运行设备,免去了用户邮寄维修的时间成本以及厂商的维修的时间、人力和物力成本。The protection module completes protection through fault detection. This functional circuit can detect various parameters, such as whether the power consumption of a component exceeds the allowable value, whether the motor is blocked, etc. When the detected parameter exceeds the preset value, the corresponding signal is fed back to the processor, and the processor automatically performs a protection shutdown operation after receiving the signal feedback. After the power-off protection operation, the user can eliminate the fault and restart the device after power-on, eliminating the time cost of the user’s mail repair and the time, manpower and material cost of the manufacturer’s repair.
所述双向数据接口使用有线连接或基于无线传输模块的无线连接与上位机进行直接通信。上位机可以为计算机、平板电脑、智能手机、操控手柄以及操控平台等,现有技术中对轨道模型车的数据传输是通过双线制的载波方式完成的,而本申请对轨道模型车的数据传输即可以通过传统的轨道进行,也可以通 过有线或无线的方式由双向数据接口进行数据的传输。The two-way data interface uses a wired connection or a wireless connection based on a wireless transmission module to directly communicate with an upper computer. The host computer can be a computer, a tablet computer, a smart phone, a control handle, a control platform, etc. The data transmission to a rail model car in the prior art is completed by a two-wire carrier wave method. The transmission can be carried out either through traditional tracks, or through a two-way data interface in a wired or wireless manner.
所述双向数据接口使用有线连接或基于无线传输模块的无线连接与上位机进行直接通信。该上位机可以为计算机、平板电脑、智能手机、向处理器发送指令信息的操控手柄、操控平台等控制设备,现有技术中对轨道模型车的数据传输是通过双线制的载波方式完成的,而本申请对轨道模型车的数据传输即可以通过传统的轨道进行,也可以通过有线或无线的方式由双向数据接口进行数据的传输。The two-way data interface uses a wired connection or a wireless connection based on a wireless transmission module to directly communicate with an upper computer. The host computer can be a computer, a tablet computer, a smart phone, a control handle that sends instruction information to the processor, a control platform and other control equipment. In the prior art, the data transmission to the rail model car is completed by a two-wire carrier wave. However, the data transmission of the track model car in this application can be carried out through the traditional track, or through the two-way data interface in a wired or wireless manner.
综上所述,便可很好的实现本发明。In summary, the present invention can be implemented well.

Claims (10)

  1. 一种轨道模型电控仿真系统的数据处理方法,其特征在于:主要包括以下步骤:A data processing method for a track model electric control simulation system is characterized in that it mainly includes the following steps:
    (1)将固件固化在解码器中;(1) Solidify the firmware in the decoder;
    (2)根据固件的规定在上位机创建数据文件;(2) Create data files on the host computer according to the firmware regulations;
    (3)根据数据文件的属性以固件的逻辑关系为依据创建文本格式的用户配置文件;(3) Create a user configuration file in text format based on the attributes of the data file and the logical relationship of the firmware;
    (4)使用上位机将数据文件与用户配置文件传输至解码器中并使固件根据用户配置文件与数据文件建立关联。(4) Use the host computer to transfer the data file and the user configuration file to the decoder and make the firmware associate the user configuration file with the data file.
  2. 根据权利要求1所述的一种轨道模型电控仿真系统的数据处理方法,其特征在于:步骤(1)中的固件包括音频处理模块、指令解析模块、可移动存储模块、电机驱动模块、特定灯效模块、信号输入输出处理模块以及用户配置文件解析模块。The data processing method of a track model electronic control simulation system according to claim 1, wherein the firmware in step (1) includes an audio processing module, an instruction analysis module, a removable storage module, a motor drive module, and a specific Lighting effect module, signal input and output processing module, and user profile analysis module.
  3. 根据权利要求2所述的一种轨道模型电控仿真系统的数据处理方法,其特征在于:所述音频处理模块的第一种逻辑结构为:The data processing method of a track model electronic control simulation system according to claim 2, wherein the first logical structure of the audio processing module is:
    (一)解码器预加载用户配置文件并关联链接数据文件中的音效文件;(1) The decoder preloads the user configuration file and associates the sound effect file in the link data file;
    (二)用户开始信号进入解码器并触发开始指令;(2) The user start signal enters the decoder and triggers the start instruction;
    (三)解码器调用已链接的音效文件;(3) The decoder calls the linked audio file;
    (四)判断链接的音效文件是否需要循环调用,若需要循环调用则进入步骤(五),否则进入步骤(七);(4) Determine whether the linked sound effect file needs to be called cyclically, if cyclic calling is needed, go to step (5), otherwise go to step (7);
    (五)判断音效文件所需循环调用的次数,若循环次数为有限次则在循环完成后进入步骤(七),若循环次数为无限次则进入步骤(六);(5) Judge the number of loop calls required for the sound effect file. If the number of loops is limited, then go to step (7) after the loop is completed, if the number of loops is unlimited, then go to step (6);
    (六)判断是否有用户控制信号进入,若无用户控制信号进入则保持循环调用音效文件,若有用户控制信号进入则进入步骤(七);(6) Determine whether there is a user control signal entering, if there is no user control signal entering, keep calling the sound effect file in a loop, if there is a user control signal entering, proceed to step (7);
    (七)判断是否需要进行新的音效文件调用,若需要则返回步骤(三),若不需要则停止;(7) Determine whether it is necessary to call a new sound effect file, if necessary, return to step (3), if not, stop;
    所述音频处理模块的第二种逻辑结构为:解码器预加载用户配置文件并关联链接数据文件中的音效文件,然后根据用户开始信号触发解码器,解码器依 次调用预设的N个已链接的音效文件,且N大于0,N的具体数值在用户配置文件中设定;The second logical structure of the audio processing module is: the decoder preloads the user configuration file and associates the sound effect file in the link data file, and then triggers the decoder according to the user start signal, and the decoder sequentially calls the preset N linked The sound effect file, and N is greater than 0, the specific value of N is set in the user configuration file;
    所述音频处理模块的第三种逻辑结构为:解码器预加载用户配置文件并关联链接数据文件中的音效文件,然后根据用户开始信号触发解码器并依次链接并调用预设的M个已链接的音效文件,并在调用完毕后返回开头再次依次调用预设的M个已链接的音效文件,且M大于0,M的具体数值可通过用户根据需要自行在用户配置文件中设置;The third logical structure of the audio processing module is: the decoder pre-loads the user configuration file and associates the sound effect files in the link data file, and then triggers the decoder according to the user start signal and sequentially links and calls the preset M linked After the call is completed, return to the beginning to call the preset M linked sound effect files again in sequence, and M is greater than 0, the specific value of M can be set in the user configuration file by the user according to the needs;
    所述音频处理模块的具体逻辑结构为上述三种音频处理模块的逻辑结构中的任意一种或任意两种的组合或三种的组合;The specific logical structure of the audio processing module is any one or a combination of any two or a combination of three of the above three logical structures of the audio processing module;
    所述电机驱动模块的具体逻辑结构为:The specific logical structure of the motor drive module is:
    (一)解码器预加载用户配置文件中的电机参数;(1) The decoder preloads the motor parameters in the user configuration file;
    (二)用户的操作信号或传感器信号作为开始信号进入解码器并触发开始指令;(2) The user's operation signal or sensor signal enters the decoder as the start signal and triggers the start instruction;
    (三)解码器根据用户的操作信号或传感器信号并以电机参数为依据对电机发送驱动信号以驱动电机;(3) The decoder sends a drive signal to the motor to drive the motor according to the user's operation signal or sensor signal and based on the motor parameters;
    (四)在电机运行时解码器实时接收电机的反馈参数并通过该参数实时调控电机的转速以保持转速的恒定;(4) When the motor is running, the decoder receives the feedback parameters of the motor in real time and regulates the speed of the motor in real time through the parameters to keep the speed constant;
    所述特定灯效模块的具体逻辑结构为:The specific logical structure of the specific lighting effect module is:
    (一)解码器预加载用户配置文件中特定的灯光配置参数;(1) The decoder pre-loads the specific lighting configuration parameters in the user configuration file;
    (二)用户操作信号或传感器信号作为开始信号进入解码器并触发开始指令;(2) The user operation signal or sensor signal enters the decoder as the start signal and triggers the start instruction;
    (三)解码器根据用户的操作信号或传感器信号并以灯光配置参数为依据向外发送灯光控制指令;(3) The decoder sends out lighting control instructions according to the user's operation signal or sensor signal and based on the lighting configuration parameters;
    (四)解码器根据用户操作信号或者传感器信号判断是否需要改变灯光控制指令,若不需改变则返回步骤(三),若需要改变则进入步骤(五);(4) The decoder judges whether the light control instruction needs to be changed according to the user's operation signal or the sensor signal, if it does not need to be changed, it returns to step (3), if it needs to be changed, it goes to step (5);
    (五)解码器根据用户的操作信号或传感器信号并以灯光配置参数为依据向外发送新的灯光控制指令,并返回步骤(四);(5) The decoder sends out a new light control instruction based on the user's operation signal or sensor signal and based on the light configuration parameters, and returns to step (4);
    所述可移动存储模块的作用是使上位机能够对解码器的存储器或通过存储插口与解码器相连接的存储器直接进行读写操作;The function of the removable storage module is to enable the host computer to directly perform read and write operations on the memory of the decoder or the memory connected with the decoder through a storage socket;
    所述用户配置文件解析模块用于解析用户配置文件中的字段信息,并根据字段信息使得解码器内部的各个模块分别和相应的数据文件链接,并在链接后预加载用户配置文件中的各项参数;The user configuration file parsing module is used to parse the field information in the user configuration file, and according to the field information, make each module in the decoder link with the corresponding data file, and preload the items in the user configuration file after linking. parameter;
    所述信号输入输出处理模块通过解码器能实现数字信号输入与输出、模拟信号输入与输出以及实时双向数据通信的功能。The signal input and output processing module can realize the functions of digital signal input and output, analog signal input and output, and real-time two-way data communication through the decoder.
  4. 根据权利要求3所述的一种轨道模型电控仿真系统的数据处理方法,其特征在于:步骤(2)中所述的数据文件包括音效文件和设备文件。A data processing method for a track model electronic control simulation system according to claim 3, wherein the data file in step (2) includes a sound effect file and a device file.
  5. 根据权利要求4所述的一种轨道模型电控仿真系统的数据处理方法,其特征在于:步骤(3)中所述的用户配置文件包含数据文件位置、数据文件的逻辑对应关系以及配置参数。A data processing method for a track model electronic control simulation system according to claim 4, wherein the user configuration file in step (3) includes the location of the data file, the logical correspondence relationship of the data file, and configuration parameters.
  6. 根据权利要求5所述的一种轨道模型电控仿真系统的数据处理方法,其特征在于:步骤(4)中所述的传输方式为上位机使用有线或无线直接连接的方式将数据文件与用户配置文件录入解码器的存储器中。The data processing method of a track model electronic control simulation system according to claim 5, characterized in that: the transmission mode in step (4) is that the upper computer uses a wired or wireless direct connection to connect the data file to the user The configuration file is recorded in the memory of the decoder.
  7. 基于权利要求1-6任意一项所述的一种轨道模型电控仿真系统的解码器构架,其特征在于:包括处理器,与处理器相连接的存储结构,与处理器相连接的用于双向传输数据的双向数据接口,分别与处理器相连接的用于控制特殊灯效的灯光驱动模块、用于处理音频文件的音频模块和用于驱动电机的电机驱动模块,同时与灯光驱动模块、音频模块、电机驱动模块以及处理器相连接的用于进行数据交换的接口单元,设置在接口单元与处理器之间的用于处理信号的信号输入输出模块,与接口单元相连接的用于提取解析信号的指令解析模块,以及与处理器相连接的用于监测和反馈电机运行情况的BEMF模块或外置的转速传感器。The decoder framework of a track model electronic control simulation system based on any one of claims 1-6, characterized in that it comprises a processor, a storage structure connected to the processor, and a storage structure connected to the processor for The two-way data interface for two-way data transmission, respectively connected to the processor to control the light drive module for special lighting effects, the audio module used to process audio files and the motor drive module used to drive the motor, and the light drive module, The audio module, the motor drive module, and the interface unit for data exchange connected to the processor, the signal input and output module for processing signals arranged between the interface unit and the processor, and the interface unit connected to the interface unit for extraction An instruction analysis module for analyzing signals, and a BEMF module or an external speed sensor connected to the processor for monitoring and feedback of the motor's operation.
  8. 根据权利要求7所述的一种轨道模型电控仿真系统的解码器构架,其特征在于:所述存储结构为存储器或通过存储插口与处理器相连接的存储结构。The decoder framework of a track model electronic control simulation system according to claim 7, wherein the storage structure is a memory or a storage structure connected to a processor through a storage socket.
  9. 根据权利要求8所述的一种轨道模型电控仿真系统的解码器构架,其特 征在于:所述处理器上还连接有保护模块和动力维护模块;所述保护模块为拥有检测故障并激活保护功能的功能电路,所述动力维护模块为能够自动切换供电线路的模块。The decoder framework of a track model electronic control simulation system according to claim 8, wherein the processor is also connected with a protection module and a power maintenance module; the protection module is capable of detecting faults and activating protection Functional functional circuit, the power maintenance module is a module that can automatically switch power supply lines.
  10. 根据权利要求9所述的一种轨道模型电控仿真系统的解码器构架,其特征在于:所述双向数据接口使用有线连接或基于无线传输模块的无线连接与上位机进行直接通信。The decoder framework of a track model electronic control simulation system according to claim 9, wherein the two-way data interface uses a wired connection or a wireless connection based on a wireless transmission module to directly communicate with an upper computer.
PCT/CN2019/072947 2019-01-24 2019-01-24 Data processing method for orbit model electronic control simulation system, and decoder framework WO2020150956A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/072947 WO2020150956A1 (en) 2019-01-24 2019-01-24 Data processing method for orbit model electronic control simulation system, and decoder framework

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/072947 WO2020150956A1 (en) 2019-01-24 2019-01-24 Data processing method for orbit model electronic control simulation system, and decoder framework

Publications (1)

Publication Number Publication Date
WO2020150956A1 true WO2020150956A1 (en) 2020-07-30

Family

ID=71736541

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/072947 WO2020150956A1 (en) 2019-01-24 2019-01-24 Data processing method for orbit model electronic control simulation system, and decoder framework

Country Status (1)

Country Link
WO (1) WO2020150956A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN85100485A (en) * 1985-04-01 1985-11-10 江丽华 Scientific magnetic toy magic tray
CN204932846U (en) * 2015-05-18 2016-01-06 优扬(天津)动漫文化传媒有限公司 Electric toy train
CN205073668U (en) * 2015-09-09 2016-03-09 北京视友科技有限责任公司 Toy train of brain electric control
CN106964164A (en) * 2017-04-26 2017-07-21 国动物联网技术(上海)有限公司 A kind of wireless children's remote-controlled toy vehicles of LoRa

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN85100485A (en) * 1985-04-01 1985-11-10 江丽华 Scientific magnetic toy magic tray
CN204932846U (en) * 2015-05-18 2016-01-06 优扬(天津)动漫文化传媒有限公司 Electric toy train
CN205073668U (en) * 2015-09-09 2016-03-09 北京视友科技有限责任公司 Toy train of brain electric control
CN106964164A (en) * 2017-04-26 2017-07-21 国动物联网技术(上海)有限公司 A kind of wireless children's remote-controlled toy vehicles of LoRa

Similar Documents

Publication Publication Date Title
CN106909425A (en) A kind of DSP and FPGA system online upgrading method
CN107977212A (en) Support the high speed cd-rom recorder of multiple communication modes
WO2020150956A1 (en) Data processing method for orbit model electronic control simulation system, and decoder framework
CN202796079U (en) Portable program burner
CN104318638A (en) J1939 bus data recorder, component layout method and technological process
CN104253663A (en) Train full-featured digital-analog hybrid intelligent broadcast control box
CN103873983A (en) Design method for novel vehicle-mounted audio frequency system
CN204119245U (en) A kind of train global function numerical model analysis intelligent broadcast control box
CN201179350Y (en) Intelligent toy with synchronous action and sound
CN109814406B (en) Data processing method and decoder framework of track model electronic control simulation system
CN108549042B (en) NVME LED detection system and detection method
CN111175632A (en) Single board testing system based on python
CN201421561Y (en) Multi-data re-check calibrating system
CN111522572A (en) Online upgrading method and system for embedded software
CN204463096U (en) A kind of electric-controlled unit program download desk of automobile
CN203313471U (en) Lamp control apparatus
CN101051435A (en) Copying and detecting system for flat panel display product EDID
CN207481770U (en) Low power-consumption intelligent HUD systems based on T3 vehicles rule grade controller
CN115394328A (en) Realization system based on CAN bus interface voice playing module
CA2297622A1 (en) Semantic errors diagnostic operation for multi-agent system
CN206741252U (en) Dual processor sensor signal processing module
CN104253664B (en) A kind of broadcasting for train control box based on ethernet network
CN104375919B (en) A kind of 2.5 cun of hard disk flat push type data-detection apparatus in Seagate and detection method
CN105974438B (en) Vehicular Beidou/GPS positioning device outfield positioning accuracy test device
CN205003503U (en) PLC cooperative control device based on ARM embedded technology

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19911615

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19911615

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205N DATED 04/02/2022)

122 Ep: pct application non-entry in european phase

Ref document number: 19911615

Country of ref document: EP

Kind code of ref document: A1