CN107092508A - A kind of stage lamp upgrade method, device and system based on mobile phone app - Google Patents

A kind of stage lamp upgrade method, device and system based on mobile phone app Download PDF

Info

Publication number
CN107092508A
CN107092508A CN201710254779.3A CN201710254779A CN107092508A CN 107092508 A CN107092508 A CN 107092508A CN 201710254779 A CN201710254779 A CN 201710254779A CN 107092508 A CN107092508 A CN 107092508A
Authority
CN
China
Prior art keywords
cpu
upgrading
mobile phone
phone app
light fixture
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710254779.3A
Other languages
Chinese (zh)
Inventor
陈啟杰
张雄辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
GUANGZHOU FLY DRAGON LIGHTING EQUIPMENT Co Ltd
Original Assignee
GUANGZHOU FLY DRAGON LIGHTING EQUIPMENT Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by GUANGZHOU FLY DRAGON LIGHTING EQUIPMENT Co Ltd filed Critical GUANGZHOU FLY DRAGON LIGHTING EQUIPMENT Co Ltd
Priority to CN201710254779.3A priority Critical patent/CN107092508A/en
Publication of CN107092508A publication Critical patent/CN107092508A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72415User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories for remote control of appliances

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a kind of stage lamp upgrade method based on mobile phone app, apparatus and system, this method, which includes setting up with mobile phone app, to be connected;The upgrade command sent from mobile phone app is received, the upgrading data sent from mobile phone app are received afterwards;The upgrading data packet includes multiple upgrading subdatas corresponded respectively with execution CPU to be upgraded to corresponding execution CPU;Shaken hands successively with each execution CPU, subdata of upgrading corresponding with execution CPU is sent after shaking hands successfully to execution CPU, so that execution CPU is upgraded.The stage lamp of the present invention is connected by being set up with mobile phone app, upgrading data are downloaded and sent by mobile phone app, the software upgrading to stage lamp just can be quickly realized by simple operations, without the prior programming of software will be upgraded on light fixture pcb board single-chip microcomputer, facilitate client, while the maintenance cost of Products can be greatlyd save again.

Description

A kind of stage lamp upgrade method, device and system based on mobile phone app
Technical field
The present invention relates to light of stage technology, more particularly to a kind of side upgraded by mobile phone app to stage lamp Method, device and system.
Background technology
At present, stage lamp is mainly used in video display stage, is a kind of special use lamp, being related to technical field has optics, machine Tool, electronics, software, radiating etc., modern stage lamp are commonly called as stage computer lamp, and operation principle is walked by CPU and driving chip Stepper motor is operated, and is driven the components such as optics, machinery and effect to do the action such as folding, lifting, rotation, upset, is realized stage lighting Change, color, pattern, light beam moulding and the conversion of mechanical azimuthal of light beam light and shade, form miscellaneous lighting effects, to expire The environmental condition of sufficient stage program plot development and change, realization is rendered to story of a play or opera emotional change, is reached with lamplight speech with seeing Crowd's exchange, fully demonstrates the artistic effect of light of stage.
But, there is following defect in existing conventional scheme:
The usual manufacturer of modern stage lamp, especially Computer lamp is by the driver programming of exploitation in lamp body pcb board On single-chip microcomputer, then it is assembled in lamp body, light fixture software upgrading usually requires to open lamp body, takes out pcb board upgrading software, then again Install, software of so upgrading is troublesome.Certainly, spy also makees upgrading box now, can be to list by light fixture and CANNON seated connection mouthful Desk lamp tool upgrading, but for shipment is to client or to have installed this upgrading mode of stage lamp of businessman be also suitable Trouble.
The content of the invention
In order to overcome the deficiencies in the prior art, an object of the present invention is a kind of stage lamp based on mobile phone app Upgrade method, it can quickly realize the software upgrading to stage lamp by mobile phone app.
The second object of the present invention is a kind of stage lamp update device based on mobile phone app of offer, and it can pass through hand Machine app quickly realizes the software upgrading to stage lamp.
The third object of the present invention is a kind of stage lamp upgrade-system based on mobile phone app of offer, and it can pass through hand Machine app quickly realizes the software upgrading to stage lamp.
An object of the present invention is realized using following technical scheme:
A kind of stage lamp upgrade method based on mobile phone app, the stage lamp upgrade method is held in light fixture host CPU OK, the light fixture host CPU is connected with several and performs CPU, it is characterised in that:Comprise the following steps:
S1:Set up and be connected with mobile phone app;
S2:The upgrade command sent from mobile phone app is received, the upgrading data sent from mobile phone app are received afterwards;Institute State upgrading data packet and include multiple upgrading subdatas corresponded respectively with execution CPU to be upgraded to corresponding execution CPU;
S3:Shaken hands successively with each execution CPU, son of upgrading corresponding with execution CPU is sent after shaking hands successfully Data are to execution CPU, so that execution CPU is upgraded.
Further, also comprise the following steps:
S4:Upgrade command is sent to other light fixture host CPUs, upgrading data are sent afterwards to other light fixture host CPUs, other lamps Tool host CPU connects several, and other perform CPU, and making other light fixture host CPUs, other execution CPU is shaken hands with each successively, Subdata of upgrading corresponding with other execution CPU is sent after shaking hands successfully, and to this, other perform CPU, so that other execution CPU is upgraded;
The upgrading data packet include it is multiple with other execution CPU correspond respectively with to it is corresponding other execution CPU enter The upgrading subdata of row upgrading.
Further, S1 specifically includes following sub-step:
S10:The unique ID codes of itself are read, and unique ID codes are obtained into the first encryption data by first key encryption After send first encryption data into mobile phone app so that the first encryption data is decrypted by first key by mobile phone app To obtain unique ID codes;
S11:The second encryption data from mobile phone app is received, the second encryption data is decoded according to the second key Obtain a new unique ID codes;Second encryption data is encrypted to unique ID codes by the second key by mobile phone app and obtained ;
S12:Judge whether whether unique ID codes consistent with new unique ID codes, connects if so, then being set up with mobile phone app Connect, otherwise, with mobile phone app connection failures.
Further, S2 specifically includes following sub-step:
S20:The upgrade command sent from mobile phone app is received, the upgrade command at least includes unique ID of light fixture host CPU Code, upgrading type;
S21:Judging the upgrade command according to unique ID codes, whether the match is successful with itself, if so, then in preset time Ready command is returned to mobile phone app, with mobile phone app normal communications, otherwise, to ignore the upgrade command;
S22:The upgrading data sent from mobile phone app are received, the upgrading data packet includes multiple with performing CPU difference one Upgrading subdata of one correspondence to be upgraded to corresponding execution CPU;
S23:Judge each upgrading subdata whether mistake, if so, then send retransmit order breath to mobile phone app so that Mobile phone app resends corresponding upgrading subdata;Otherwise, S24 is performed;
S24:Each upgrading subdata is respectively stored in different regions.
Further, S3 specifically includes following sub-step:
S30:CPU is performed with one to be shaken hands, transmission shakes hands instruction to execution CPU, makes execution CPU judge whether to hold Hand is correct, if so, then feeding back correct mark of shaking hands to light fixture host CPU, otherwise, feedback error, which is shaken hands, to be indicated to light fixture host CPU;
S31:Subdata of upgrading corresponding with execution CPU is sent to execution CPU, so that execution CPU is according to upgrading Subdata is upgraded;
S32:S30 is sequentially repeated, all execution CPU is upgraded successively.
Further, also comprise the following steps between S30 and S31:
S30a:Instruction of shaking hands is sent again to execution CPU, makes execution CPU judge whether to shake hands correctly again, if It is then to feed back correct mark of shaking hands again to light fixture host CPU, otherwise, feedback error, which is shaken hands, again indicates to light fixture host CPU.
The second object of the present invention is realized using following technical scheme:
A kind of stage lamp update device based on mobile phone app, including such as lower unit:
Connection unit:It is connected for being set up with mobile phone app;
Receiving unit:For receiving the upgrade command sent from mobile phone app, receive what is sent from mobile phone app afterwards Upgrading data;The upgrading data packet is included multiple to be corresponded to be upgraded to corresponding execution CPU respectively with performing CPU Upgrading subdata;
Processing unit:For being shaken hands successively with each execution CPU, sent and execution CPU phases after shaking hands successfully The upgrading subdata answered is to execution CPU, so that execution CPU is upgraded.
Further, in addition to transmitting element:For sending upgrade command to other light fixture host CPUs, upgrading is sent afterwards Data to other light fixture host CPUs, other light fixture host CPUs connect several other perform CPU, make other light fixture host CPUs successively with Each other perform CPU and shaken hands, transmission and the corresponding subdatas of upgrading of other execution CPU are to this its after shaking hands successfully He performs CPU, so that other execution CPU is upgraded;
The upgrading data packet include it is multiple with other execution CPU correspond respectively with to it is corresponding other execution CPU enter The upgrading subdata of row upgrading.
The third object of the present invention is realized using following technical scheme:
A kind of stage lamp upgrade-system based on mobile phone app, including stage lamp, power supply and mobile phone app, the stage Light fixture includes light fixture host CPU, memory module, communication module and several execution CPU, and power supply is powered to light fixture host CPU, mobile phone App is connected by communication module with light fixture host CPU, and memory module and execution CPU are connected with light fixture host CPU;
Light fixture host CPU is used to receive the upgrade command sent from mobile phone app, receives what is sent from mobile phone app afterwards Upgrading data, and shaken hands successively with each execution CPU, send son of upgrading corresponding with execution CPU after shaking hands successfully Data are to execution CPU, so that execution CPU is upgraded;The upgrading data packet includes multiple with performing CPU difference 1 a pair Should be with to performing the upgrading subdata that CPU is upgraded accordingly.
Further, the stage lamp is multiple, and it is main stage lamp, other stages to define one of stage lamp Light fixture is that, from stage lamp, the corresponding light fixture host CPU of main stage lamp is main light fixture host CPU, the corresponding lamp of other stage lamps It is that, from light fixture host CPU, all to be sequentially connected in series from light fixture host CPU by CANNON line, one of them is from light fixture CPU to have host CPU Have host CPU by CANNON line and king light to be connected, king light tool host CPU sends upgrading data extremely should be from light fixture host CPU.
Compared with prior art, the beneficial effects of the present invention are:
The stage lamp of the present invention is connected by being set up with mobile phone app, is downloaded and is sent upgrading data by mobile phone app, lead to Crossing simple operations just can quickly realize the software upgrading to stage lamp, without the prior programming of software that will upgrade in light fixture PCB On plate single-chip microcomputer, facilitate client, while the maintenance cost of Products can be greatlyd save again.
Brief description of the drawings
Fig. 1 is a kind of flow chart of stage lamp upgrade method based on mobile phone app of the present invention;
Fig. 2 is a kind of module map of stage lamp upgrade-system based on mobile phone app of the present invention.
Embodiment
Below, with reference to accompanying drawing and embodiment, the present invention is described further, it is necessary to which explanation is, not Under the premise of afoul, new implementation can be formed between various embodiments described below or between each technical characteristic in any combination Example:
As shown in figure 1, the present invention provides a kind of stage lamp upgrade method based on mobile phone app, stage lamp upgrading Method is performed in light fixture host CPU, and the light fixture host CPU is connected with several and performs CPU, specifically includes following steps:
S1:Set up and be connected with mobile phone app;
Staff carries out related registration on mobile phone app and forms the forms such as user account first, and the account is logged in afterwards Number, then it can be operated accordingly.In this step, light fixture host CPU is set up with mobile phone app and is connected including following sub-step:
S10:The unique ID codes of itself are read, and unique ID codes are obtained into the first encryption data by first key encryption After send first encryption data into mobile phone app so that the first encryption data is decrypted by first key by mobile phone app To obtain unique ID codes;
In this sub-step, staff selects the stage lamp for needing to connect, after selection, the stage lighting by mobile phone app Tool receives signal, then reads out unique ID codes of the light fixture host CPU of its own.Each light fixture host CPU possesses when dispatching from the factory Have any different in the sequence number of other light fixture host CPUs, that is, unique ID codes, unique ID codes are then status symbol, by this only One ID codes, can accurately find corresponding light fixture host CPU.In the present invention, unique ID codes of these light fixture host CPUs are 32.This The encrypting and decrypting of invention can be completed using DES algorithms.
S11:The second encryption data from mobile phone app is received, the second encryption data is decoded according to the second key Obtain a new unique ID codes;Second encryption data is encrypted to unique ID codes by the second key by mobile phone app and obtained ;
S12:Judge whether whether unique ID codes consistent with new unique ID codes, connects if so, then being set up with mobile phone app Connect, otherwise, with mobile phone app connection failures.
Only mobile phone app with the case of light fixture host CPU successful connection both can just interact and communicate.The present invention is logical Cross and be encrypted, decrypted by key respectively in mobile phone app sides and light fixture host CPU side, one is compared to two unique ID codes Mobile phone app and light fixture host CPU connection are just determined after cause, it is ensured that the data safety of communication.
S2:The upgrade command sent from mobile phone app is received, the upgrading data sent from mobile phone app are received afterwards;Institute State upgrading data packet and include multiple upgrading subdatas corresponded respectively with execution CPU to be upgraded to corresponding execution CPU;
Mobile phone app downloads upgrading data first with network and is stored in the memory in mobile phone, and staff can pass through Mobile phone app selection upgrading types, that is, unit upgrading or whole string upgrading, the quantity of stage lamp may be it is multiple, now Light fixture host CPU formation between stage lamp is connected in series, and whole string upgrading namely carries out software to all stage lamps simultaneously Upgrading.
In this step, mobile phone sends upgrade command to light fixture host CPU, and upgrade command includes the ID of light fixture host CPU, also It is unique ID codes, upgrading type (namely unit upgrading or whole string upgrading), upgrading chip (specific upgrading and light fixture host CPU Which chip of connection), upgrading page size etc., light fixture host CPU, which is connected to after upgrade command, to be verified to unique ID codes, if The upgrade command is then to enter the state for preparing to receive upgrading data with that itself can match, and feeds back ready order to hand In machine app, ignored if verification is incorrect.If mobile phone app is after upgrade command is sent in preset time (such as 500ms) Feedback is not received, then points out " not receiving response ", receives and shows that communication is normal after feedback, now mobile phone app retransmits upgrading Data are into light fixture host CPU, and light fixture host CPU can be verified to upgrading data, it is ensured that the accuracy of data, if it find that currently The upgrading data check received does not pass through, then automatic request for repetition order is into mobile phone app, and mobile phone app is then by last time transmission Upgrading data repack transmission, are identified if continuous more than 3 times all mistake occur, send error identification to mobile phone In app.If data verification of upgrading is correct, upgrading data are packed and are saved in memory module.CPU pairs of different execution The upgrading subdata answered is stored in different positions, if some upgrading for performing CPU mistake occurs from data, mark should The corresponding chip upgrades of CPU are performed not enable.It is different according to deposit position, it is ensured that all upgrading data are correct.
The above-mentioned sub-step that may be summarized to be S2 execution is as follows:
S20:The upgrade command sent from mobile phone app is received, the upgrade command at least includes unique ID of light fixture host CPU Code, upgrading type;
S21:Judging the upgrade command according to unique ID codes, whether the match is successful with itself, if so, then in preset time Ready command is returned to mobile phone app, with mobile phone app normal communications, otherwise, to ignore the upgrade command;
S22:The upgrading data sent from mobile phone app are received, the upgrading data packet includes multiple with performing CPU difference one Upgrading subdata of one correspondence to be upgraded to corresponding execution CPU;
S23:Judge each upgrading subdata whether mistake, if so, then send retransmit order breath to mobile phone app so that Mobile phone app resends corresponding upgrading subdata;Otherwise, S24 is performed;
S24:Each upgrading subdata is respectively stored in different regions.
S3:Shaken hands successively with each execution CPU, son of upgrading corresponding with execution CPU is sent after shaking hands successfully Data are to execution CPU, so that execution CPU is upgraded
S3 specifically includes following sub-step:
S30:CPU is performed with one to be shaken hands, transmission shakes hands instruction to execution CPU, makes execution CPU judge whether to hold Hand is correct, if so, then feeding back correct mark of shaking hands to light fixture host CPU, otherwise, feedback error, which is shaken hands, to be indicated to light fixture host CPU;
S31:Instruction of shaking hands is sent again to execution CPU, makes execution CPU judge whether to shake hands correctly again, if so, Correct mark of shaking hands then is fed back again to light fixture host CPU, and otherwise, feedback error, which is shaken hands, again indicates to light fixture host CPU;This sub-step Suddenly it is preferred steps, further Security Data Transmission can be realized by reaffirming;
S32:Subdata of upgrading corresponding with execution CPU is sent to execution CPU, so that execution CPU is according to upgrading Subdata is upgraded;
S33:S30 is sequentially repeated, all execution CPU is upgraded successively.
When all upgrading data are all received, light fixture host CPU then jumps to BOOTLOAD (boatload) area, can root Mark is enabled according to the execution CPU identified in step S2 upgrading to performing CPU to upgrade.
Assuming that perform CPU include CPU1, CPU2, CPU3 these three, in sequence, first CPU1 is upgraded, transmission is held The CPU1 is arrived in finger order, and CPU1 is received and instruction of shaking hands is verified after instruction of shaking hands, and correctly then identifies correct mark of shaking hands, And light fixture host CPU is fed back to, the CPU then jumps to BOOTLOAD program areas.Light fixture host CPU receives Success Flag of shaking hands Afterwards, 300ms is waited, instruction of shaking hands is sent again afterwards and arrives CPU1, CPU1 is confirmed again, it is ensured that CPU1 has been jumped to BOOTLOAD program areas, after being reaffirmed, light fixture host CPU reads subnumber of upgrading corresponding with CPU1 from memory module According to being sent in CPU1.CPU1 is verified to upgrading subdata, if verification is correctly, to CPU1 application area Program is updated.After the completion of renewal, CPU1 is jumped into program application area, afterwards according to sequential update CPU2.CPU2 and CPU3 renewal step is as CPU1.
Aforesaid operations are the situations for belonging to unit upgrading, it is assumed that stage lamp is multiple, that is, is needed to multiple stages Light fixture is upgraded, the situation of the now whole string upgrading of data, then is also comprised the following steps:
S4:Upgrade command is sent to other light fixture host CPUs, upgrading data are sent afterwards to other light fixture host CPUs, other lamps Tool host CPU connects several, and other perform CPU, and making other light fixture host CPUs, other execution CPU is shaken hands with each successively, Subdata of upgrading corresponding with other execution CPU is sent after shaking hands successfully, and to this, other perform CPU, so that other execution CPU is upgraded;
The upgrading data packet include it is multiple with other execution CPU correspond respectively with to it is corresponding other execution CPU enter The upgrading subdata of row upgrading.
Whole string is during upgrading, or sends upgrade command and upgrading data to one of stage lamp by mobile phone app Light fixture host CPU, the light fixture host CPU has received all upgrading transmission of data, and indicates whole string upgrading mark, jumps to BOOTLOAD Region, according to whole string upgrading mark has been indicated, jumps to Zheng Chuan ROMPaqs area, and the light fixture host CPU is ready for whole string and risen Level.The main control unit that the light fixture host CPU has as this cluster of lamps, ornamental carries out whole string and upgraded, and sends out upgrading again by the grade light fixture host CPU and refers to Order and upgrading data are sent to the light fixture host CPU of other stage lamps, make its upgrade command and liter with light fixture CPU to receiving DBMS is verified, and is finally completed upgrading.
The present invention also provides a kind of stage lamp update device based on mobile phone app, including:
Connection unit:It is connected for being set up with mobile phone app;
Receiving unit:For receiving the upgrade command sent from mobile phone app, receive what is sent from mobile phone app afterwards Upgrading data;The upgrading data packet is included multiple to be corresponded to be upgraded to corresponding execution CPU respectively with performing CPU Upgrading subdata;
Processing unit:For being shaken hands successively with each execution CPU, sent and execution CPU phases after shaking hands successfully The upgrading subdata answered is to execution CPU, so that execution CPU is upgraded;
Transmitting element:For sending upgrade command to other light fixture host CPUs, upgrading data are sent afterwards to other light fixtures master CPU, other light fixture host CPUs connect several, and other perform CPU, and making other light fixture host CPUs, other perform CPU with each successively Shaken hands, subdata of upgrading corresponding with other execution CPU is sent after shaking hands successfully, and to this, other perform CPU, so that should Other perform CPU and upgraded;The upgrading data packet include it is multiple with other execution CPU correspond respectively with to it is corresponding its He performs the upgrading subdata that CPU is upgraded.This transmitting element is just performed in the case where needing to carry out whole string upgrading.
Referring to Fig. 2, the present invention provides a kind of stage lamp upgrade-system based on mobile phone app, including stage lamp, power supply With mobile phone app, stage lamp includes light fixture host CPU, memory module, communication module and several execution CPU, and power supply gives light fixture master CPU is powered, and mobile phone app is connected by communication module with light fixture host CPU, and memory module and execution CPU connect with light fixture host CPU Connect;Light fixture host CPU is used to receive the upgrade command sent from mobile phone app, and the ascending series sent from mobile phone app are received afterwards According to, and shaken hands successively with each execution CPU, transmission is corresponding with execution CPU after shaking hands successfully upgrades subdata extremely Execution CPU, so that execution CPU is upgraded;Upgrading data packet include it is multiple to perform CPU correspond respectively with to corresponding The upgrading subdatas upgraded of execution CPU.The principle and flow that the system is performed and the stage lamp provided in the present invention Upgrade method is identical.WIFI module is may be selected to be in the communication module present invention.
The present invention another advantage is that the upgrading to many stage lamps can be realized simultaneously, stage lamp is many Individual, it is main stage lamp to define one of stage lamp, and other stage lamps are that main stage lamp is corresponding from stage lamp Light fixture host CPU be main light fixture host CPU, the corresponding light fixture host CPU of other stage lamps be from light fixture host CPU, it is all from light fixture master CPU is sequentially connected in series by CANNON line (i.e. DMX signal wires), and one of them has from light fixture CPU by CANNON line and king light leads CPU connections, king light tool host CPU sends upgrading data extremely should be from light fixture host CPU.Either king light has host CPU still from light fixture master CPU, is connected with several and performs CPU, and is connected with memory module, and upgrading data are stored in memory module.
Multiple stage lamps is connected by CANNON line, network topology is constantly formed, for the stage lighting of vast number Tool easily can also realize whole stage lamps and almost synchronously carry out data by a stage lamp input upgrading data The technique effect of upgrading.
It will be apparent to those skilled in the art that technical scheme that can be as described above and design, make other various It is corresponding to change and deformation, and all these change and deformation should all belong to the protection domain of the claims in the present invention Within.

Claims (10)

1. a kind of stage lamp upgrade method based on mobile phone app, the stage lamp upgrade method is performed in light fixture host CPU, The light fixture host CPU is connected with several and performs CPU, it is characterised in that:Comprise the following steps:
S1:Set up and be connected with mobile phone app;
S2:The upgrade command sent from mobile phone app is received, the upgrading data sent from mobile phone app are received afterwards;The liter DBMS includes multiple upgrading subdatas corresponded respectively with execution CPU to be upgraded to corresponding execution CPU;
S3:Shaken hands successively with each execution CPU, subdata of upgrading corresponding with execution CPU is sent after shaking hands successfully To execution CPU, so that execution CPU is upgraded.
2. stage lamp upgrade method as claimed in claim 1, it is characterised in that:Also comprise the following steps:
S4:Upgrade command is sent to other light fixture host CPUs, upgrading data are sent afterwards to other light fixture host CPUs, other light fixtures master CPU connects several, and other perform CPU, and making other light fixture host CPUs, other execution CPU is shaken hands with each successively, is shaken hands Subdata of upgrading corresponding with other execution CPU is sent after success, and to this, other perform CPU, so that other execution CPU enters Row upgrading;
The upgrading data packet includes multiple corresponded respectively with other execution CPU and risen with performing CPU to corresponding other The upgrading subdata of level.
3. stage lamp upgrade method as claimed in claim 1, it is characterised in that:S1 specifically includes following sub-step:
S10:The unique ID codes of itself are read, and unique ID codes are obtained into hair after the first encryption data by first key encryption First encryption data is given into mobile phone app, so that the first encryption data is decrypted by first key to obtain by mobile phone app To unique ID codes;
S11:The second encryption data from mobile phone app is received, the second encryption data is decoded according to the second key One new unique ID codes;Acquisition is encrypted to unique ID codes by the second key by mobile phone app in second encryption data;
S12:Judge whether whether unique ID codes consistent with new unique ID codes, is connected if so, then being set up with mobile phone app, Otherwise, with mobile phone app connection failures.
4. stage lamp upgrade method as claimed in claim 1, it is characterised in that:S2 specifically includes following sub-step:
S20:Receive from mobile phone app send upgrade command, the upgrade command at least including light fixture host CPU unique ID codes, Upgrading type;
S21:Judging the upgrade command according to unique ID codes, whether the match is successful with itself, if so, then being returned in preset time Ready command is to mobile phone app, with mobile phone app normal communications, otherwise, to ignore the upgrade command;
S22:The upgrading data sent from mobile phone app are received, the upgrading data packet includes multiple with performing CPU difference 1 a pair Should be with to performing the upgrading subdata that CPU is upgraded accordingly;
S23:Judge each upgrading subdata whether mistake, if so, then send retransmit order breath to mobile phone app so that mobile phone App resends corresponding upgrading subdata;Otherwise, S24 is performed;
S24:Each upgrading subdata is respectively stored in different regions.
5. stage lamp upgrade method as claimed in claim 1, it is characterised in that:S3 specifically includes following sub-step:
S30:CPU is performed with one to be shaken hands, transmission shakes hands instruction to execution CPU, makes execution CPU judge whether to shake hands just Really, if so, then feeding back correct mark of shaking hands to light fixture host CPU, otherwise, feedback error, which is shaken hands, to be indicated to light fixture host CPU;
S31:Subdata of upgrading corresponding with execution CPU is sent to execution CPU, so that execution CPU is according to upgrading subnumber According to being upgraded;
S32:S30 is sequentially repeated, all execution CPU is upgraded successively.
6. stage lamp upgrade method as claimed in claim 5, it is characterised in that:Also include following step between S30 and S31 Suddenly:
S30a:Instruction of shaking hands is sent again to execution CPU, makes execution CPU judge whether to shake hands correctly, if so, then again Correct mark of shaking hands is fed back again to light fixture host CPU, and otherwise, feedback error, which is shaken hands, again indicates to light fixture host CPU.
7. a kind of stage lamp update device based on mobile phone app, it is characterised in that:Including such as lower unit:
Connection unit:It is connected for being set up with mobile phone app;
Receiving unit:For receiving the upgrade command sent from mobile phone app, the upgrading sent from mobile phone app is received afterwards Data;The upgrading data packet includes multiple upgradings corresponded respectively with execution CPU to be upgraded to corresponding execution CPU Subdata;
Processing unit:For being shaken hands successively with each execution CPU, send corresponding with execution CPU after shaking hands successfully Subdata of upgrading is to execution CPU, so that execution CPU is upgraded.
8. stage lamp update device as claimed in claim 7, it is characterised in that:Also include transmitting element:Risen for sending Level instruction sends upgrading data to other light fixture host CPUs, other light fixture host CPUs connect several afterwards to other light fixture host CPUs Other perform CPU, and making other light fixture host CPUs, other execution CPU is shaken hands with each successively, is sent after shaking hands successfully with being somebody's turn to do Other perform CPU and upgrade subdata accordingly to other execution CPU, so that other execution CPU is upgraded;
The upgrading data packet includes multiple corresponded respectively with other execution CPU and risen with performing CPU to corresponding other The upgrading subdata of level.
9. a kind of stage lamp upgrade-system based on mobile phone app, it is characterised in that:Including stage lamp, power supply and mobile phone App, the stage lamp includes light fixture host CPU, memory module, communication module and several execution CPU, and power supply gives light fixture master CPU is powered, and mobile phone app is connected by communication module with light fixture host CPU, and memory module and execution CPU connect with light fixture host CPU Connect;
Light fixture host CPU is used to receive the upgrade command sent from mobile phone app, and the upgrading sent from mobile phone app is received afterwards Data, and shaken hands successively with each execution CPU, send subdata of upgrading corresponding with execution CPU after shaking hands successfully To execution CPU, so that execution CPU is upgraded;The upgrading data packet include it is multiple with perform CPU correspond respectively with The upgrading subdata that CPU is upgraded is performed to corresponding.
10. stage lamp upgrade-system as claimed in claim 9, it is characterised in that:The stage lamp is multiple, defines it In stage lamp be main stage lamp, other stage lamps are the corresponding light fixture host CPU of main stage lamp from stage lamp For main light fixture host CPU, the corresponding light fixture host CPU of other stage lamps be from light fixture host CPU, it is all to pass through card from light fixture host CPU You are sequentially connected in series line, and one of them has host CPU by CANNON line and king light from light fixture CPU and is connected, and king light tool host CPU is sent Data of upgrading extremely should be from light fixture host CPU.
CN201710254779.3A 2017-04-18 2017-04-18 A kind of stage lamp upgrade method, device and system based on mobile phone app Pending CN107092508A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710254779.3A CN107092508A (en) 2017-04-18 2017-04-18 A kind of stage lamp upgrade method, device and system based on mobile phone app

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710254779.3A CN107092508A (en) 2017-04-18 2017-04-18 A kind of stage lamp upgrade method, device and system based on mobile phone app

Publications (1)

Publication Number Publication Date
CN107092508A true CN107092508A (en) 2017-08-25

Family

ID=59637049

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710254779.3A Pending CN107092508A (en) 2017-04-18 2017-04-18 A kind of stage lamp upgrade method, device and system based on mobile phone app

Country Status (1)

Country Link
CN (1) CN107092508A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101720157A (en) * 2009-10-20 2010-06-02 周雅概 Lamp of remote DMX online updating program and control system thereof
CN202221567U (en) * 2011-08-18 2012-05-16 广州市浩洋电子有限公司 Software upgrading device for stage lamp
CN102654838A (en) * 2011-08-18 2012-09-05 广州市浩洋电子有限公司 Software upgrading device and method for stage lamp
CN103281828A (en) * 2013-05-28 2013-09-04 广州市明道灯光科技有限公司 Solving scheme for updating stage lamp equipment by using cellphone or tablet computer
CN103838591A (en) * 2012-11-20 2014-06-04 海尔集团公司 Upgrading method and device of multiple single-chip microcomputers based on serial buses
CN106020898A (en) * 2016-05-30 2016-10-12 华讯方舟科技有限公司 Software upgrading method and system of multi-processor device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101720157A (en) * 2009-10-20 2010-06-02 周雅概 Lamp of remote DMX online updating program and control system thereof
CN202221567U (en) * 2011-08-18 2012-05-16 广州市浩洋电子有限公司 Software upgrading device for stage lamp
CN102654838A (en) * 2011-08-18 2012-09-05 广州市浩洋电子有限公司 Software upgrading device and method for stage lamp
CN103838591A (en) * 2012-11-20 2014-06-04 海尔集团公司 Upgrading method and device of multiple single-chip microcomputers based on serial buses
CN103281828A (en) * 2013-05-28 2013-09-04 广州市明道灯光科技有限公司 Solving scheme for updating stage lamp equipment by using cellphone or tablet computer
CN106020898A (en) * 2016-05-30 2016-10-12 华讯方舟科技有限公司 Software upgrading method and system of multi-processor device

Similar Documents

Publication Publication Date Title
US10715602B2 (en) Adaptive internet-of-things service system using detachable/attachable hardware module
CN111104143B (en) Firmware upgrading method and upgrading device
US8904074B2 (en) Method and apparatus for distributing configuration files in a distributed control system
CN109466469B (en) Vehicle control method, device and system, computer device and readable storage medium
AU2003212704A8 (en) Method for providing a software module to an automotive vehicle control unit, and computer program for executing the method
CN101009565B (en) Secure update system of the robot data and its method
US20100249951A1 (en) Method and Apparatus for Synchronizing Configuration Changes Across Multiple Components of an Industrial Control System
CN101673202A (en) Program writing method and system, pre-writing device and writing device
CN105045626A (en) Program burning method, program burning equipment and controller
CN104281542A (en) Method, device and system for adaptation of multifunctional USB (universal serial bus) terminal equipment
CN103019755B (en) The wireless program method for down loading of multi-CPU in embedded system
CN107078806B (en) The programmed method and operating method and electric interfaces equipment of optical transceiver
CN109309592A (en) The method and apparatus of remote upgrade PLC firmware
US20190140896A1 (en) Adhoc protocol for commissioning connected devices in the field
CA3025606A1 (en) Tire pressure monitoring sensor enabling fast configuration and software updates
KR101744998B1 (en) Re-programming control module and re-programming system and method using the re-programming control module
CN103576598A (en) Programmable logic control system based on wireless expansion bus mode and control method
CN109849527A (en) A kind of automatic signaling method and system of laser machine
CN107092508A (en) A kind of stage lamp upgrade method, device and system based on mobile phone app
KR102225361B1 (en) Wireless control system, wireless control apparatus and method thereof
US20070073893A1 (en) Embedded protocol selection technique, related interface and computer program product
CN102654838A (en) Software upgrading device and method for stage lamp
CN101627605A (en) In computer system, be used to carry out the method and the corresponding apparatus of transfer of data
CN113467857B (en) FPGA system based on user customization, firmware generation method and display device
CN114416144A (en) Adaptive multi-style screen upgrading method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170825