Fast coding method, device and system
Patent Information
- Application Number
- CN202210934309.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-04
- Publication Date
- 2026-10-30
- Estimated Expiration
- 2042-08-04
AI Technical Summary
[0003]本申请实施例提供了一种快速写码方法、装置及系统,可以解决现有技术中控制多个写码器依次完成写码任务时写码效率不高,控制多个写码器共同写码时对该多个写码设备的管理困难、控制其写码时操作复杂的问题
[0012]在第一方面的一种可能的实现方式中,可以从数据库中根据所述至少一个码文件的标识信息获取所述至少一个码文件。
Smart Images

Figure CN115480778B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of communication technology, and in particular relates to a fast coding method, apparatus and system. Background Technology
[0002] With the popularization and development of various technological products, the phenomenon of data expansion has become increasingly serious. Therefore, improving data transmission speed and fast coding of optical modules have become new demands. Existing coding methods are inefficient when controlling multiple code writers to complete coding tasks sequentially, while managing multiple code writers simultaneously is difficult and the operation of controlling them to write is complex. Summary of the Invention
[0003] This application provides a fast coding method, apparatus, and system that can solve the problems of low coding efficiency when controlling multiple code writers to complete coding tasks sequentially, difficulty in managing multiple coding devices when controlling multiple code writers to write together, and complex operation when controlling them to write.
[0004] In a first aspect, embodiments of this application provide a fast coding method, including:
[0005] A plurality of code writers are connected, and the plurality of code writers are connected to a plurality of optical modules, wherein each code writer is connected to one optical module, and the code writer is used to write code files into the optical module to which the code writer is connected.
[0006] The multiple code writers are virtualized and stacked to obtain a virtualized code writer device. The virtualized code writer device includes multiple interfaces, and each of the multiple interfaces corresponds to one of the multiple code writers.
[0007] The virtualized coding device is controlled to write at least one code file into the optical module corresponding to each of the at least one code file, and the at least one optical module corresponding to the at least one code file belongs to the plurality of optical modules.
[0008] This application uses a virtualized stacking method to form a virtualized writing device by connecting multiple writers. By controlling this virtualized writing device, multiple writers can be controlled to write simultaneously, thereby improving writing efficiency and reducing the operational and control difficulties of writing with multiple writers at the same time.
[0009] In one possible implementation of the first aspect, the multiple programmers can be connected via Bluetooth.
[0010] In one possible implementation of the first aspect, before controlling the virtualized coding device to write at least one code file into the optical modules corresponding to the at least one code file, the correspondence between the plurality of interfaces, the plurality of coding devices, and the plurality of optical modules can be obtained.
[0011] In one possible implementation of the first aspect, when controlling the virtualized coding device to write at least one code file into the optical modules corresponding to the at least one code file, the at least one code file can be obtained. Then, based on the optical modules corresponding to the at least one code file, and the correspondence between the plurality of interfaces, the plurality of coding devices, and the plurality of optical modules, the interfaces and coding devices corresponding to the at least one code file are determined. Through the interfaces corresponding to the at least one code file, the corresponding code files are allocated to the coding devices corresponding to the at least one code file, and the coding devices corresponding to the at least one code file are controlled to write the corresponding code files into the corresponding optical modules.
[0012] In one possible implementation of the first aspect, the at least one code file can be obtained from a database based on the identification information of the at least one code file.
[0013] Optionally, the database is a cloud database.
[0014] The fast coding device of this application connects multiple coding machines via Bluetooth and stacks them in a virtualized manner to form a virtual coding device. Bluetooth enables simultaneous transmission of code files to multiple coding machines, and by controlling this virtualized coding device, multiple coding machines can be controlled simultaneously for coding, thereby improving coding efficiency and reducing the operational and control complexity of simultaneous coding with multiple coding devices.
[0015] Secondly, embodiments of this application provide a fast coding device, which connects to multiple coding machines, and the multiple coding machines are connected to multiple optical modules, wherein each coding machine is connected to one optical module, and the coding machine is used to write a code file into the optical module to which it is connected.
[0016] The fast coding device includes a processing unit, which is used for:
[0017] The multiple code writers are virtualized and stacked to obtain a virtualized code writer device. The virtualized code writer device includes multiple interfaces, and each of the multiple interfaces corresponds to one of the multiple code writers.
[0018] The virtualized coding device is controlled to write at least one code file into the optical module corresponding to each of the at least one code file, and the at least one optical module corresponding to the at least one code file belongs to the plurality of optical modules.
[0019] In one possible implementation of the second aspect, the fast coding device includes a Bluetooth module, and the fast coding device and the coder are connected via Bluetooth.
[0020] In one possible implementation of the second aspect, before the processing unit controls the virtualized coding device to write at least one code file into the optical modules corresponding to the at least one code file, the processing unit is further configured to: obtain the correspondence between the plurality of interfaces, the plurality of coding devices, and the plurality of optical modules.
[0021] In one possible implementation of the second aspect, when the processing unit controls the virtualized coding device to write at least one code file into the optical modules corresponding to the at least one code file, the processing unit is further configured to:
[0022] Obtain at least one code file;
[0023] Based on the optical modules corresponding to the at least one code file, and the correspondence between the multiple interfaces, the multiple code writers, and the multiple optical modules, determine the interfaces and code writers corresponding to the at least one code file.
[0024] Through the interfaces corresponding to the at least one code file, the corresponding code file is allocated to the corresponding code writer, and the corresponding code writer is controlled to write the corresponding code file to the corresponding optical module.
[0025] In one possible implementation of the second aspect, the processing unit is further configured to: obtain the identification information of the at least one code file, and obtain the at least one code file from the database based on the identification information of the at least one code file.
[0026] Alternatively, the database can be a cloud-based database.
[0027] Thirdly, embodiments of this application provide a fast coding system, including: a fast coding device, multiple coding programmers, and multiple optical modules;
[0028] The fast coding device is connected to the plurality of coding machines, and the plurality of coding machines are connected to the plurality of optical modules, wherein each coding machine is connected to one optical module, and the coding machine is used to write the code file into the optical module to which the coding machine is connected.
[0029] The fast coding device virtualizes and stacks the multiple coding units to obtain a virtual coding device. The virtual coding device includes multiple interfaces, and each of the multiple interfaces corresponds to one of the multiple coding units.
[0030] The fast coding device controls the virtualized coding device to write at least one code file into the optical modules corresponding to the at least one code file, and the at least one optical module corresponding to the at least one code file belongs to the plurality of optical modules.
[0031] Fourthly, embodiments of this application provide a terminal device, including: a memory and a processor, wherein the processor can be used to execute a program (instructions) stored in the memory to implement the method provided in the first aspect above.
[0032] Fifthly, embodiments of this application provide a computer-readable storage medium, including: a computer program stored thereon, which, when executed, can implement the method provided in the first aspect above.
[0033] Sixthly, embodiments of this application provide a computer program product that, when run on a terminal device, causes the terminal device to execute the fast coding method described in any one of the first aspects.
[0034] It is understood that the beneficial effects of the second to sixth aspects mentioned above can be found in the relevant descriptions in the first aspect mentioned above, and will not be repeated here.
[0035] The beneficial effects of this application embodiment compared with the prior art are as follows: This application uses a virtualization stacking method to form a virtualized writing device by connecting multiple code writers. By controlling this virtualized writing device, multiple code writers can be controlled to write code simultaneously, thereby improving the writing efficiency and reducing the operational and control difficulties of writing code simultaneously with multiple code writers. Attached Figure Description
[0036] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0037] Figure 1 This is a schematic diagram of the structure of a coding device in the prior art;
[0038] Figure 2 This is a schematic diagram of the structure of a coding device in the prior art;
[0039] Figure 3 This is a schematic block diagram of a coding system in the prior art;
[0040] Figure 4This is a schematic block diagram of a fast coding system provided in an embodiment of this application;
[0041] Figure 5 This is a flowchart illustrating a fast coding method provided in an embodiment of this application;
[0042] Figure 6 This is a flowchart illustrating a fast coding method provided in another embodiment of this application;
[0043] Figure 7 This is a schematic diagram of the user interface provided in an embodiment of this application;
[0044] Figure 8 This is a schematic diagram of the association mapping table provided in the embodiments of this application;
[0045] Figure 9 This is a schematic diagram of the structure of the fast coding device provided in the embodiments of this application;
[0046] Figure 10 This is a schematic diagram of the structure of the terminal device provided in the embodiments of this application. Detailed Implementation
[0047] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.
[0048] It should be understood that, when used in this application specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or a collection thereof.
[0049] It should also be understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.
[0050] As used in this application specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrase "if determined" or "if detected [the described condition or event]" may be interpreted, depending on the context, as meaning "once determined," "in response to determination," "once detected [the described condition or event]," or "in response to detection [the described condition or event]."
[0051] Furthermore, in the description of this application and the appended claims, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0052] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.
[0053] Figure 1 A schematic diagram of a coding device is shown. See also Figure 1 The device 100 includes a central processing unit (CPU) 110 and multiple code writing interfaces 120.
[0054] The central processing unit 110 is connected to multiple code writing interfaces 120 via a bus. The code writing device 100 can connect to multiple code writers through these multiple code writing interfaces 120, and the central processing unit 110 controls the code writers connected to the multiple code writer interfaces 120 to write code. Each code writing interface can connect to one code writer. However, the central processing unit can only execute one code writing task and control one code writer at a time. The next code writing task can only be performed after the current code writing task is completed, resulting in low code writing efficiency of the code writing device 100.
[0055] Figure 2 A schematic diagram of a coding device is shown. See also Figure 2 The device 200 includes multiple central processing units 210 and multiple code writing interfaces 220.
[0056] The coding device 200 can connect to multiple code writers through the multiple coding interfaces 220. Each central processing unit (CPU) is connected to one coding interface via a bus, and each coding interface can connect to one code writer. The coding device 200 can control the code writer connected to the coding interface corresponding to the CPU to perform coding operations.
[0057] Similarly, a single central processing unit (CPU) can only control one programmer to execute one writing task at a time. To control multiple programmers to write code simultaneously, multiple CPUs need to be controlled simultaneously. However, managing multiple CPUs simultaneously is very difficult and complex.
[0058] Figure 3 A schematic diagram of a coding system is shown. See also Figure 3 The system 300 includes multiple coding devices 310, which include multiple central processing units 311 and multiple coding interfaces 312.
[0059] Each of the plurality of writing devices 310 includes a central processing unit and a writing interface. One of the writing interfaces can be connected to a writer, and the writing device can control the writer connected to the writing interface to write code through the central processing unit.
[0060] The coding system 300 enables each coding device to control one code writer to perform one coding task. Therefore, the coding system 300 needs to manage multiple coding devices simultaneously to achieve simultaneous coding by multiple code writers. This makes the coding operation very complex and difficult.
[0061] In view of this, this application provides a fast coding method that uses virtualization to stack multiple connected coding machines to form a virtualized coding device. By controlling this virtualized coding device, multiple coding machines can be controlled simultaneously, thereby improving coding efficiency and reducing the operational and control difficulties of simultaneous coding with multiple coding devices.
[0062] The fast coding method provided in this application can be applied to terminal devices such as mobile phones, tablets, wearable devices, in-vehicle devices, augmented reality (AR) / virtual reality (VR) devices, laptops, ultra-mobile personal computers (UMPCs), netbooks, and personal digital assistants (PDAs). This application does not impose any restrictions on the specific type of terminal device.
[0063] Figure 4 A schematic block diagram of a fast coding system provided in this application is shown. See also Figure 4 The fast coding system 400 may include: a fast coding device 410, a virtualized coding device 420, multiple coding programmers 430, and multiple optical modules 440.
[0064] See Figure 4As shown in part (a), the fast coding device 410 is connected to multiple code writers 430 and can be used to acquire code files, send code files to the virtualized coding device 420, and control the multiple code writers 430 to write code files into the multiple optical modules 440 through multiple interfaces of the virtualized coding device 420.
[0065] The virtualized programmer device 420 is formed by stacking multiple virtualized programmers and may include multiple interfaces. See also Figure 4 As shown in section (b), each interface of the virtualized coding device corresponds to one code writer. The virtualized coding device 420 can be used to receive multiple code files sent by the fast coding device and distribute the multiple code files to the corresponding code writers.
[0066] Each code writer is connected to an optical module. These multiple code writers 430 can be used to obtain code files allocated by the virtualized code writing device 420 and write the code files into the connected optical module.
[0067] According to the fast coding system provided in this application, the fast coding device uses a virtualized stacking method to form a virtualized coding device by connecting multiple coding devices. By controlling this virtualized coding device, multiple coding devices can be controlled simultaneously to perform coding, thereby improving coding efficiency and reducing the operational and control difficulties of coding with multiple coding devices simultaneously.
[0068] Figure 5 A schematic flowchart of the fast coding method 500 provided in this application is shown. This method 500 can be executed by a fast coding device, which can be the terminal device described above, or a chip or module configured in the terminal device. The method 500 may include steps S501 to S503, which are described below.
[0069] S501 connects to multiple programmers.
[0070] In one example, the fast coding device can connect to multiple code writers, each of which is connected to an optical module. After receiving a code file, the code writer can write the code file to the connected optical module.
[0071] Optionally, a Bluetooth module can be installed on the fast coding device and the code writer, allowing the fast coding device to connect to multiple code writers via Bluetooth and transfer code files via Bluetooth.
[0072] For example, the fast coding device can scan the Bluetooth modules in the coder and display the codes of the multiple coder Bluetooth modules to the user. Accordingly, the user can select the coder to use by selecting the code of the coder Bluetooth module.
[0073] For example, see Figure 4 The multiple coders of the fast coding system 400 shown in (a) are coders 1 to coders 3, and the encoding of the Bluetooth module in coders 1 to coders 3 can be recorded as: 1, 2, 3.
[0074] Users can choose a programmer with Bluetooth module encoding 1, Bluetooth module encoding 2, or Bluetooth module encoding 3 to perform this programming task.
[0075] S502, the multiple code writers are virtualized and stacked to obtain a virtualized code writer device.
[0076] In one example, multiple connected programmers can be virtualized and stacked to form a virtualized programmer device. This virtualized programmer device can include multiple interfaces, the number of which is the same as the number of programmers connected to the fast programmer device, with each interface corresponding to one programmer.
[0077] For example, see Figure 4 The portion shown in (b) corresponds to three programmers connected to the fast coding device. The virtualized coding device may include three interfaces, for example, denoted as: Interface 1, Interface 2, and Interface 3. Interface 1 corresponds to the programmer with Bluetooth module encoding 1, Interface 2 corresponds to the programmer with Bluetooth module encoding 2, and Interface 3 corresponds to the programmer with Bluetooth module encoding 3.
[0078] S503, control the virtualized coding device to write at least one code file into the optical module corresponding to each of the at least one code file.
[0079] In one example, after obtaining the code file, the fast coding device can distribute the code file to the corresponding code writer through multiple interfaces of the virtualized coding device. The code writer then acquires the code file and writes it to the corresponding optical module.
[0080] According to the fast coding method provided in this application, the fast coding device uses a virtualized stacking method to form a virtualized coding device by connecting multiple coding devices. By controlling this virtualized coding device, multiple coding devices can be controlled simultaneously to perform coding, thereby improving coding efficiency and reducing the operational and control difficulties of coding with multiple coding devices simultaneously.
[0081] Figure 6 A schematic flowchart of the fast coding method 600 provided in this application is shown. Method 600 is a specific example of method 500. Method 600 may include steps S601 to S612, and each step is described below.
[0082] S601, a fast code writer, connects to multiple code writers.
[0083] S602, the fast coding device virtualizes and stacks the multiple code writers to obtain a virtualized coding device.
[0084] S601-S602 are the same as S501-S502. For details, please refer to the relevant descriptions in S501-S502. They will not be repeated here.
[0085] S603, the fast coding device obtains the correspondence between the multiple interfaces, the multiple coding machines, and the multiple optical modules.
[0086] In one example, before controlling the virtualized coding device to write at least one code file into the optical module corresponding to each of the at least one code file, the fast coding device can first obtain the correspondence between the multiple interfaces, multiple coding devices, and multiple optical modules.
[0087] Optionally, an association mapping table can be obtained based on the correspondence between the multiple interfaces, multiple code writers, and multiple optical modules. This association mapping table can be stored in local memory, a cache, or other databases, facilitating subsequent rapid access by the coding device to the association mapping table to establish the correspondence between the multiple interfaces, multiple code writers, and multiple optical modules.
[0088] S604, the virtualized coding device returns the correspondence between the multiple interfaces, the multiple coding machines, and the multiple optical modules.
[0089] S605, the fast code writing device obtains the code file identification information.
[0090] In one example, the fast coding device can display the identity information of the optical modules connected to multiple coders to the connected device. The user can select the code file to be written to the optical module based on the optical module's identity information and input the corresponding identification information of the code file into the fast coding device.
[0091] For example, the identification information of an optical module may include one or more of the following: optical module information, optical module number, optical module serial number (S / N), etc. The optical module information may include the optical module model, optical module manufacturer, etc.
[0092] For example, the identification information of the code file may include information such as the model of the optical module that the code file can be written to, and the code file number.
[0093] Correspondingly, the fast coding device can obtain the code file identification information.
[0094] Optionally, the fast coding device can obtain the correspondence between the code file and the optical module corresponding to the code file identification information at the same time as obtaining the code file identification information, and store the obtained correspondence between at least one code file and multiple optical modules into an association mapping table.
[0095] For example, in Figure 7 In the user interface diagram 700 shown, the fast coding device displays the identity information of the optical modules corresponding to the three connected coding devices to the user. Specifically, the optical module information corresponding to the coding device with Bluetooth module code 1 is SFP-10GLR-31, the corresponding optical module number is SFP optical module 7, and the corresponding optical module serial number (SerialN) is A1111111. Similarly, the fast coding device also displays the identity information of the optical modules corresponding to the coding devices with Bluetooth module code 2 and 3.
[0096] Users can Figure 7 The input module 710 in the user interface diagram 700 shows the identification information of the code file corresponding to the optical module.
[0097] For example, the user chooses to write code file 1 to the optical module with optical module information SFP-10GLR-31; write code file 2 to the optical module with optical module information SFP-20GLR-31; and write code file 3 to the optical module with optical module information CWDM-XFP-10G-10SP.
[0098] S606, the fast coding device uploads code file identification information.
[0099] In one example, the fast code writing device can retrieve the corresponding code file from the database based on the code file identification information.
[0100] Alternatively, the database can be local memory, a cache, or a cloud database.
[0101] For example, when the database is a cloud database, the fast coding device can upload the code file identification information to the cloud database, and then retrieve the code file corresponding to the code file identification information from the cloud database based on the code file identification information.
[0102] S607, Database return code file.
[0103] Accordingly, the cloud database can return the corresponding code file to the fast code writing device based on the code file identification information.
[0104] For example, the fast coding device can process the code file obtained from the cloud database according to the network interface protocol agreed with the cloud, and match the identity information of the optical module with the obtained code file one by one.
[0105] S608, the fast coding device determines the interface and coding device corresponding to the at least one code file based on the optical module corresponding to each of the at least one code file, and the correspondence between the multiple interfaces, the multiple coding devices and the multiple optical modules.
[0106] In one example, the fast coding device can call the correspondence between multiple interfaces, multiple coding machines and multiple optical modules stored in the association mapping table, as well as the correspondence between at least one code file and multiple optical modules, to determine the interface and coding machine corresponding to the at least one code file.
[0107] For example, such as Figure 8 As shown in the association mapping table, code file 1 corresponds to the coder for interface 1 and the Bluetooth module with encoding 1; code file 2 corresponds to the coder for interface 2 and the Bluetooth module with encoding 2; and code file 3 corresponds to the coder for interface 3 and the Bluetooth module with encoding 3.
[0108] S609, the fast coding device sends the at least one code file to the virtualized coding device.
[0109] Accordingly, the virtualized writing device receives the code file sent by the fast writing device.
[0110] S610, the virtualized code writing device allocates the corresponding code file to the corresponding code writer of the at least one code file through the interface corresponding to each of the at least one code file.
[0111] In one example, the fast coding device can control the virtualized coding device to allocate the corresponding code file to the corresponding code writer through the interface corresponding to at least one code file.
[0112] Optionally, the fast coding device can control the virtualized coding device to allocate the corresponding code file to the corresponding code writer according to the correspondence included in the association mapping table in the above example.
[0113] S611, the code writer corresponding to each of the at least one code file writes the corresponding code file into the corresponding optical module.
[0114] Accordingly, after receiving the assigned code file, the code writer can write the code file into the connected optical module.
[0115] For example, according to Figure 8As shown in the association mapping table, the fast coding device can control the code writer of the Bluetooth module with code 1 to write code file 1 to the optical module with optical module information SFP-10GLR-31; control the code writer of the Bluetooth module with code 2 to write code file 2 to the optical module with optical module information SFP-20GLR-31; and control the code writer of the Bluetooth module with code 3 to write code file 3 to the optical module with optical module information CWDM-XFP-10G-10SP.
[0116] Optionally, the fast coding method 600 may also include steps S612 and S613.
[0117] S612, the programmer sends a successful writing signal.
[0118] After the code file is written to the connected optical module, the code writer can send a successful code writing signal to the fast code writing device.
[0119] S613, the fast writing device can end the current writing task after receiving the writing success signal from all the writers that performed the current writing task.
[0120] The fast coding device of this application connects multiple coding machines via Bluetooth and stacks them in a virtualized manner to form a virtual coding device. Bluetooth enables simultaneous transmission of code files to multiple coding machines, and by controlling this virtualized coding device, multiple coding machines can be controlled simultaneously for coding, thereby improving coding efficiency and reducing the operational and control complexity of simultaneous coding with multiple coding devices.
[0121] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0122] Figure 9 The diagram shown is a structural schematic of a fast coding device 900 provided in one embodiment of this application. The tooth color recognition device 900 may include a processing unit 910.
[0123] The processing unit 910 is used to virtualize and stack the plurality of code writers to obtain a virtualized code writer device. The virtualized code writer device includes a plurality of interfaces, and the plurality of interfaces correspond one-to-one with the plurality of code writers.
[0124] The processing unit 910 is also configured to control the virtualized coding device to write at least one code file into the optical modules corresponding to the at least one code file, wherein the at least one optical module corresponding to the at least one code file belongs to the plurality of optical modules.
[0125] For example, the fast coding device connects to multiple coding machines, which in turn connect to multiple optical modules, with each coding machine connected to one optical module. The coding machine is used to write code files into the optical module to which it is connected.
[0126] Optionally, the fast coding device may include a Bluetooth module, and the fast coding device may connect to multiple coders via Bluetooth.
[0127] In one example, before the processing unit 910 controls the virtualized coding device to write at least one code file into the optical module corresponding to each of the at least one code file, the processing unit 910 may also be used to obtain the correspondence between the plurality of interfaces, the plurality of coding devices, and the plurality of optical modules.
[0128] In one example, when the processing unit 910 controls the virtualized coding device to write at least one code file into the optical modules corresponding to the at least one code file, the processing unit 910 is further configured to:
[0129] Obtain the at least one code file. Based on the optical modules corresponding to the at least one code file, and the correspondence among the multiple interfaces, the multiple code writers, and the multiple optical modules, determine the interfaces and code writers corresponding to the at least one code file. Through the interfaces corresponding to the at least one code file, allocate the corresponding code files to the code writers corresponding to the at least one code file, and control the code writers corresponding to the at least one code file to write the corresponding code files to the corresponding optical modules.
[0130] In one example, the processing unit 910 can also be used to obtain the identification information of the at least one code file. Then, the at least one code file is retrieved from the database based on the identification information of the at least one code file.
[0131] Alternatively, the database can be a cloud-based database.
[0132] The fast coding device of this application connects multiple coding machines via Bluetooth and stacks them in a virtualized manner to form a virtual coding device. Bluetooth enables simultaneous transmission of code files to multiple coding machines, and by controlling this virtualized coding device, multiple coding machines can be controlled simultaneously for coding, thereby improving coding efficiency and reducing the operational and control complexity of simultaneous coding with multiple coding devices.
[0133] It should be noted that the information interaction and execution process between the above-mentioned devices / units are based on the same concept as the method embodiments of this application. For details on their specific functions and technical effects, please refer to the method embodiments section, and they will not be repeated here.
[0134] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0135] Figure 10 The diagram shown is a structural schematic of a processing device provided in one embodiment of this application. Figure 10 The processing device 1000 shown may include: at least one processor 1010 ( Figure 10 The diagram shows only one processor, a memory 1020, and a computer program 1030 stored in the memory 1020 and executable on the at least one processor 1010, wherein the processor 1010 executes the computer program 1030 to implement the steps in any of the above method embodiments.
[0136] The processing device 1000 may be a robot or other processing device capable of implementing the above methods. This application embodiment does not impose any restrictions on the specific type of processing device.
[0137] Those skilled in the art will understand that Figure 10 This is merely an example of processing device 1000 and does not constitute a limitation on the processing device. It may include more or fewer components than shown, or combine certain components, or use different components. For example, the processing device 1000 may also include input / output interfaces.
[0138] The processor 1010 may be a Central Processing Unit (CPU), or it may be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor.
[0139] In some embodiments, the memory 1020 may be an internal storage unit, such as a hard disk or RAM. In other embodiments, the memory 1020 may be an external storage device, such as a plug-in hard disk, a SmartMedia Card (SMC), a Secure Digital (SD) card, or a Flash Card. Furthermore, the memory 1020 may include both internal and external storage units. The memory 1020 is used to store the operating system, applications, bootloader, data, and other programs, such as the program code of the computer program. The memory 1020 can also be used to temporarily store data that has been output or will be output.
[0140] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0141] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0142] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps described in the various method embodiments above.
[0143] This application provides a computer program product that, when run on a fast coding device, enables the fast coding device to implement the steps described in the above-described method embodiments.
[0144] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments of this application can be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include at least: any entity or device capable of carrying computer program code to a photographing device / terminal device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium. Examples include USB flash drives, portable hard drives, magnetic disks, or optical disks. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electrical carrier signals or telecommunication signals.
[0145] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0146] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
Claims
1. A fast coding method, characterized in that, include: A plurality of code writers are connected, and the plurality of code writers are connected to a plurality of optical modules, wherein each code writer is connected to one optical module, and the code writer is used to write code files into the optical module to which the code writer is connected. The multiple code writers are virtualized and stacked to obtain a virtualized code writer device. The virtualized code writer device includes multiple interfaces, and each of the multiple interfaces corresponds to one of the multiple code writers. The virtualized coding device is controlled to write at least one code file into the optical modules corresponding to the at least one code file, and the at least one optical module corresponding to the at least one code file belongs to the plurality of optical modules; Before controlling the virtualized coding device to write at least one code file into the optical modules corresponding to the at least one code file, the method further includes: An association mapping table is obtained based on the correspondence between the multiple interfaces, the multiple code writers, and the multiple optical modules. The correspondence between the multiple interfaces, the multiple code writers, and the multiple optical modules is then obtained from the association mapping table.
2. The method as described in claim 1, characterized in that, The connection of multiple code writers includes: The multiple code writers are connected via Bluetooth.
3. The method as described in claim 1, characterized in that, When controlling the virtualized coding device to write at least one code file into the optical modules corresponding to the at least one code file, the method includes: Obtain at least one code file; Based on the optical modules corresponding to the at least one code file, and the correspondence between the multiple interfaces, the multiple code writers, and the multiple optical modules, determine the interfaces and code writers corresponding to the at least one code file. Through the interfaces corresponding to the at least one code file, the corresponding code file is allocated to the corresponding code writer, and the corresponding code writer is controlled to write the corresponding code file to the corresponding optical module.
4. The method as described in claim 3, characterized in that, The acquisition of the at least one code file includes: Obtain the identification information of the at least one code file; The code file is retrieved from the database based on the identification information of the at least one code file.
5. The method as described in claim 4, characterized in that, The database in question is a cloud-based database.
6. A fast coding device, characterized in that, The fast coding device connects to multiple coding machines, and the multiple coding machines are connected to multiple optical modules, wherein each coding machine is connected to one optical module. Each coding machine is used to write a code file into the optical module to which it is connected. The fast coding device includes a processing unit, which is used for: The multiple code writers are virtualized and stacked to obtain a virtualized code writer device. The virtualized code writer device includes multiple interfaces, and each of the multiple interfaces corresponds to one of the multiple code writers. The virtualized coding device is controlled to write at least one code file into the optical modules corresponding to the at least one code file, and the at least one optical module corresponding to the at least one code file belongs to the plurality of optical modules; Before the processing unit controls the virtualized coding device to write at least one code file into the optical modules corresponding to the at least one code file, the processing unit is further configured to: An association mapping table is obtained based on the correspondence between the multiple interfaces, the multiple code writers, and the multiple optical modules. The correspondence between the multiple interfaces, the multiple code writers, and the multiple optical modules is then obtained from the association mapping table.
7. The apparatus as claimed in claim 6, characterized in that, The fast coding device includes a Bluetooth module, and the fast coding device and the code writer are connected via Bluetooth.
8. The apparatus as claimed in claim 6, characterized in that, When the processing unit controls the virtualized coding device to write at least one code file into the optical modules corresponding to the at least one code file, the processing unit is further configured to: Obtain at least one code file; Based on the optical modules corresponding to the at least one code file, and the correspondence between the multiple interfaces, the multiple code writers, and the multiple optical modules, determine the interfaces and code writers corresponding to the at least one code file. Through the interfaces corresponding to the at least one code file, the corresponding code file is allocated to the corresponding code writer, and the corresponding code writer is controlled to write the corresponding code file to the corresponding optical module.
9. The apparatus as claimed in claim 8, characterized in that, The processing unit is also used for: Obtain the identification information of the at least one code file; The at least one code file is retrieved from the database based on the identification information of the at least one code file.
10. The apparatus as claimed in claim 9, characterized in that, The database in question is a cloud-based database.
11. A fast coding system, characterized in that, include: The fast coding device, multiple code writers, and multiple optical modules as described in any one of claims 6-10; The fast coding device is connected to the plurality of coding machines, and the plurality of coding machines are connected to the plurality of optical modules, wherein each coding machine is connected to one optical module, and the coding machine is used to write the code file into the optical module to which the coding machine is connected. The fast coding device virtualizes and stacks the multiple coding units to obtain a virtual coding device. The virtual coding device includes multiple interfaces, and each of the multiple interfaces corresponds to one of the multiple coding units. The fast coding device controls the virtualized coding device to write at least one code file into the optical modules corresponding to the at least one code file, and the at least one optical module corresponding to the at least one code file belongs to the plurality of optical modules.
12. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the method as described in any one of claims 1-5.
13. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1-5.