CN109451197A - It is a kind of it is long-range it is stable send picture to server method - Google Patents
It is a kind of it is long-range it is stable send picture to server method Download PDFInfo
- Publication number
- CN109451197A CN109451197A CN201811158581.6A CN201811158581A CN109451197A CN 109451197 A CN109451197 A CN 109451197A CN 201811158581 A CN201811158581 A CN 201811158581A CN 109451197 A CN109451197 A CN 109451197A
- Authority
- CN
- China
- Prior art keywords
- picture
- data
- packet
- processing unit
- central processing
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N1/00—Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
- H04N1/32—Circuits or arrangements for control or supervision between transmitter and receiver or between image input and image output device, e.g. between a still-image camera and its memory or between a still-image camera and a printer device
- H04N1/32358—Circuits or arrangements for control or supervision between transmitter and receiver or between image input and image output device, e.g. between a still-image camera and its memory or between a still-image camera and a printer device using picture signal storage, e.g. at transmitter
- H04N1/32363—Circuits or arrangements for control or supervision between transmitter and receiver or between image input and image output device, e.g. between a still-image camera and its memory or between a still-image camera and a printer device using picture signal storage, e.g. at transmitter at the transmitter or at the receiver
- H04N1/32368—Functions of a still picture terminal memory associated with transmission
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/66—Remote control of cameras or camera parts, e.g. by remote control devices
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/80—Camera processing pipelines; Components thereof
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
- H04N5/907—Television signal recording using static stores, e.g. storage tubes or semiconductor memories
Abstract
The present invention relates to a kind of methods of long-range stable transmission picture to server, first, central processing unit is stored in the picture taken in SD card after receiving shooting order, then image data is carried out subpackage, picture is packet-by-packet sent in server when having network, last server verifies every bag data, allows slave computer to retransmit the bag data if failure, until having received last packet image data.The case where present invention can allow the picture of transmission to avoid the occurrence of distortion and send failure because of network signal difference.In addition, in process of the present invention, name ID of the picture taken using photo opporunity as unique identification is stored in SD storage card, the unique ID as picture is named using the time, it prevents from repeating to send picture, there is uniqueness, processing picture is more convenient, the picture that the same day is clapped all exists in this document folder, facilitates centralized processing.
Description
Technical field
The present invention relates to the technical fields for sending data, and in particular to a kind of long-range stable picture that sends is to the side of server
Method.
Background technique
With the continuous promotion of network technology, people need to observe the shape in somewhere by network in certain special cases
Condition, most simple and convenient is exactly intuitively to take pictures, and obtains condition information by observation photo, such as check the shape of distant place crops
Condition, within doors or vehicle inside the case where, this just often relates to the problem of how photo being sent to server to slave computer.
It sometimes appear that loss of data situation, the situation for causing picture to be distorted during sending picture.And in reality
It will appear network signal difference in border or the situation of network, slave computer cannot not send picture, picture is caused to send out
Send failure.
Therefore, it is badly in need of wanting one kind reliable according to varying environment, on stable long-range transmission picture to server
Method.
Summary of the invention
It is an object of the invention to overcome the deficiencies of the prior art and provide it is a kind of be avoided that repetition send, prevent lose
It is long-range to stablize the method for sending picture to server.
To achieve the above object, technical solution provided by the present invention are as follows:
It is a kind of it is long-range it is stable send picture to server method, comprising the following steps:
S1: host computer sends photographing command to central processing unit;
S2: after central processing unit receives photographing command, creation is for saving the text for gained picture of taking pictures in SD storage card
Part folder;
S3: central processing unit control camera is shot, and the picture taken is saved into SD storage card;
S4: central processing unit will be stored to image data subpackage in internal storage RAM, and each bag data size is the same,
And starting bit identification and ending insertion end bit identification are inserted into the beginning of every bag data;
S5: central processing unit sends the instruction of detection network signal quality to remote transmission data module, if having detected
When network, then subpackage sends picture;If detecting no network, suspend transmission, waiting has network to retransmit;
S6: the host computer in server records the starting bit identification of each bag data when receiving data, current for identifying
Which bag data received be;The total size of the corresponding packet is verified when host computer often receives end mark position whether just
Really, the bag data is complete if correct, enters step S7;If incorrect, delete the data of the erroneous packets and send the mistake
Accidentally the start bit of packet is to central processing unit;
S7: each complete data packet of host computer record simultaneously judges whether to have received whole data packets, if there are also wrap
Data do not receive, then not having the start bit of received packet to be sent to central processing unit;
S8: whether central processing unit misjudgment packet and the start bit for not receiving packet are identical, and not identical then preferred transmission is wrong
The accidentally data of packet, otherwise send the data for not receiving packet;
S9: after host computer has received entire packet, being and stop bits left out the beginning flag of every packet, then will be each
Bag data, which is stitched together, forms a complete picture;
S10: after the completion of complete picture splicing, host computer, which is sent, successfully to be instructed to central processing unit, and central processing unit connects
After receiving successfully instruction, the data of picture in RAM are discharged.
Further, it after the step S2 slave computer receives photographing command, is obtained from remote transmission data module real-time
Time creates file in SD storage card using the date as filename.
Further, in the step S3, name ID of the picture taken using photo opporunity as unique identification is stored to
In SD storage card.
Compared with prior art, this programme principle and advantage is as follows:
Firstly, central processing unit is stored in the picture taken in SD card after receiving shooting order, then image data
Subpackage is carried out, picture is packet-by-packet sent in server when having network, and last server verifies every bag data, if losing
It loses, slave computer is allowed to retransmit the bag data, until having received last packet image data.This programme can allow the figure of transmission
The case where piece avoids the occurrence of distortion and sends failure because of network signal difference.In addition, in the process, when the picture taken is to take pictures
Between be stored in SD storage card as the name ID of unique identification, the unique ID as picture is named using the time, prevents weight
Picture is sent in recurrence, has uniqueness, and processing picture is more convenient, and the picture that the same day is clapped all exists in this document folder, facilitates collection
Middle processing.
Detailed description of the invention
Fig. 1 is the long-range overall system view stablized and send picture;
Fig. 2 is the long-range data flow diagram stablized and send picture;
Fig. 3 remotely it is stable send picture program chart.
Specific embodiment
The present invention is further explained in the light of specific embodiments:
A kind of long-range stable picture that sends described in the present embodiment is applied to the method for server and as shown in Figure 1 is
System, as shown in Figures 2 and 3, the specific steps are as follows:
S1: host computer sends photographing command to central processing unit;
S2: after central processing unit receives photographing command, real-time time is obtained from remote transmission data module, is made with the date
File is created in SD storage card for filename;If photo opporunity is 12 minutes and 08 second 12 points of on May 3rd, 2018, then file
It is named as " May 3 ";
S3: central processing unit control camera is shot, and the picture taken is saved into SD storage card, and should
Name ID of the picture taken using photo opporunity as unique identification;According to the time described in step S2, i.e. picture is named as
"121208";
S4: image data is divided into 5 packets and is stored in internal storage RAM by central processing unit, and each bag data size is the same,
And starting bit identification, such as A, B, C, D, E are inserted into the beginning of every bag data;Ending insertion terminates bit identification 0x00;
S5: central processing unit sends the instruction of detection network signal quality to remote transmission data module, if having detected
When network, then subpackage sends picture;If detecting no network, suspend transmission, waiting has network to retransmit;
S6: the host computer in server records the starting bit identification of each bag data when receiving data, current for identifying
Which bag data received be;The total size of the corresponding packet is verified when host computer often receives end mark position whether just
Really, the bag data is complete if correct, enters step S7;If incorrect, delete the data of the erroneous packets and send the mistake
Accidentally the start bit of packet is to central processing unit;
S7: each complete data packet of host computer record simultaneously judges whether to have received whole data packets, if there are also wrap
Data do not receive, then not having the start bit of received packet to be sent to central processing unit;
S8: whether central processing unit misjudgment packet and the start bit for not receiving packet are identical, and not identical then preferred transmission is wrong
The accidentally data of packet, otherwise send the data for not receiving packet;
S9: after host computer has received entire packet, being and stop bits left out the beginning flag of every packet, then will be each
Bag data, which is stitched together, forms a complete picture;
S10: after the completion of complete picture splicing, host computer, which is sent, successfully to be instructed to central processing unit, and central processing unit connects
After receiving successfully instruction, the data of picture in RAM are discharged.
In the present embodiment, central processing unit is stored in the picture taken in SD card after receiving shooting order, then figure
Sheet data carries out subpackage, and picture is packet-by-packet sent in server when having network, and last server carries out school to every bag data
It tests, allows slave computer to retransmit the bag data if failure, until having received last packet image data.This programme can allow hair
The case where picture sent avoids the occurrence of distortion and sends failure because of network signal difference.In addition, in the process, the picture taken with
Photo opporunity is stored in SD storage card as the name ID of unique identification, and the unique ID as picture is named using the time,
It preventing from repeating to send picture, there is uniqueness, processing picture is more convenient, and the picture that the same day is clapped all exists in this document folder,
Facilitate centralized processing.
The examples of implementation of the above are only the preferred embodiments of the invention, and implementation model of the invention is not limited with this
It encloses, therefore all shapes according to the present invention, changes made by principle, should all be included within the scope of protection of the present invention.
Claims (3)
1. a kind of long-range stabilization sends picture to the method for server, which comprises the following steps:
S1: host computer sends photographing command to central processing unit;
S2: after central processing unit receives photographing command, creation is for saving the file for gained picture of taking pictures in SD storage card;
S3: central processing unit control camera is shot, and the picture taken is saved into SD storage card;
S4: central processing unit is stored to image data subpackage in internal storage RAM, and each bag data size is the same, Er Qie
The beginning insertion starting bit identification of every bag data and ending insertion terminate bit identification;
S5: central processing unit sends the instruction of detection network signal quality to remote transmission data module, if having detected network
When, then subpackage sends picture;If detecting no network, suspend transmission, waiting has network to retransmit;
S6: the host computer in server records the starting bit identification of each bag data when receiving data, for identifying current reception
Be which bag data;Whether the total size that the corresponding packet is verified when host computer often receives end mark position is correct, if
It is correct then the bag data is complete, enter step S7;If incorrect, delete the data of the erroneous packets and send the erroneous packets
Start bit is to central processing unit;
S7: each complete data packet of host computer record simultaneously judges whether to have received whole data packets, if there are also bag datas
It does not receive, then not having the start bit of received packet to be sent to central processing unit;
S8: whether central processing unit misjudgment packet and the start bit for not receiving packet are identical, not identical then preferred transmission erroneous packets
Data, otherwise send the data for not receiving packet;
S9: after host computer has received entire packet, it is the beginning flag of every packet and stop bits is left out, then by each packet number
According to the one complete picture of composition that is stitched together;
S10: after the completion of complete picture splicing, host computer, which is sent, successfully to be instructed to central processing unit, and central processing unit receives
After success instructs, the data of picture in RAM are discharged.
2. a kind of long-range stabilization according to claim 1 sends picture to the method for server, which is characterized in that the step
After rapid S2 slave computer receives photographing command, real-time time is obtained from remote transmission data module, is existed using the date as filename
File is created in SD storage card.
3. a kind of long-range stabilization according to claim 1 sends picture to the method for server, which is characterized in that the step
In rapid S3, name ID of the picture taken using photo opporunity as unique identification is stored in SD storage card.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811158581.6A CN109451197A (en) | 2018-09-30 | 2018-09-30 | It is a kind of it is long-range it is stable send picture to server method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811158581.6A CN109451197A (en) | 2018-09-30 | 2018-09-30 | It is a kind of it is long-range it is stable send picture to server method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109451197A true CN109451197A (en) | 2019-03-08 |
Family
ID=65544613
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811158581.6A Pending CN109451197A (en) | 2018-09-30 | 2018-09-30 | It is a kind of it is long-range it is stable send picture to server method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109451197A (en) |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101447856A (en) * | 2007-11-28 | 2009-06-03 | 新奥特(北京)视频技术有限公司 | High-capacity file transmission method |
CN101527732A (en) * | 2008-03-07 | 2009-09-09 | 新奥特(北京)视频技术有限公司 | Method and system for media data remote transmission service management control |
CN102012932A (en) * | 2010-12-01 | 2011-04-13 | 北京建筑工程学院 | Method and device for storing and retrieving measurable streetscape images |
CN102298714A (en) * | 2011-08-17 | 2011-12-28 | 无锡尚诣纳米技术有限公司 | Method and system for quality monitoring and traceablility of life cycle of biological sample in vitro |
CN102364941A (en) * | 2011-10-26 | 2012-02-29 | 广东威创视讯科技股份有限公司 | Method for storing recorded signals |
CN102737467A (en) * | 2012-06-29 | 2012-10-17 | 深圳市新太阳数码有限公司 | Multifunctional sound system and fire alarm monitoring method thereof |
CN103095926A (en) * | 2013-01-31 | 2013-05-08 | 广东欧珀移动通信有限公司 | Method of recording cell phone usage record |
CN103259915A (en) * | 2012-02-20 | 2013-08-21 | 宇龙计算机通信科技(深圳)有限公司 | Photo naming method and mobile terminal |
CN103892503A (en) * | 2014-04-09 | 2014-07-02 | 浙江大学 | Intelligent helmet device |
CN104349182A (en) * | 2014-04-10 | 2015-02-11 | 江苏优因特智能科技有限公司 | Intelligent terminal media playing content feedback method realized through sound channel |
CN104537054A (en) * | 2014-12-26 | 2015-04-22 | 广东欧珀移动通信有限公司 | Photo sorting method and device based on geographic positions |
CN105208249A (en) * | 2015-08-28 | 2015-12-30 | 华南农业大学 | Multi-spectral image wireless sensor node and control method thereof |
CN105787063A (en) * | 2016-02-29 | 2016-07-20 | 深圳天珑无线科技有限公司 | Picture storage method and terminal device |
-
2018
- 2018-09-30 CN CN201811158581.6A patent/CN109451197A/en active Pending
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101447856A (en) * | 2007-11-28 | 2009-06-03 | 新奥特(北京)视频技术有限公司 | High-capacity file transmission method |
CN101527732A (en) * | 2008-03-07 | 2009-09-09 | 新奥特(北京)视频技术有限公司 | Method and system for media data remote transmission service management control |
CN102012932A (en) * | 2010-12-01 | 2011-04-13 | 北京建筑工程学院 | Method and device for storing and retrieving measurable streetscape images |
CN102298714A (en) * | 2011-08-17 | 2011-12-28 | 无锡尚诣纳米技术有限公司 | Method and system for quality monitoring and traceablility of life cycle of biological sample in vitro |
CN102364941A (en) * | 2011-10-26 | 2012-02-29 | 广东威创视讯科技股份有限公司 | Method for storing recorded signals |
CN103259915A (en) * | 2012-02-20 | 2013-08-21 | 宇龙计算机通信科技(深圳)有限公司 | Photo naming method and mobile terminal |
CN102737467A (en) * | 2012-06-29 | 2012-10-17 | 深圳市新太阳数码有限公司 | Multifunctional sound system and fire alarm monitoring method thereof |
CN103095926A (en) * | 2013-01-31 | 2013-05-08 | 广东欧珀移动通信有限公司 | Method of recording cell phone usage record |
CN103892503A (en) * | 2014-04-09 | 2014-07-02 | 浙江大学 | Intelligent helmet device |
CN104349182A (en) * | 2014-04-10 | 2015-02-11 | 江苏优因特智能科技有限公司 | Intelligent terminal media playing content feedback method realized through sound channel |
CN104537054A (en) * | 2014-12-26 | 2015-04-22 | 广东欧珀移动通信有限公司 | Photo sorting method and device based on geographic positions |
CN105208249A (en) * | 2015-08-28 | 2015-12-30 | 华南农业大学 | Multi-spectral image wireless sensor node and control method thereof |
CN105787063A (en) * | 2016-02-29 | 2016-07-20 | 深圳天珑无线科技有限公司 | Picture storage method and terminal device |
Non-Patent Citations (1)
Title |
---|
刘书智,李琳娜: "《Visual C++实践与提高 串口通信与工程应用篇》", 30 April 2009 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102761612A (en) | Method and system for photographing and automatic uploading based on wireless communication equipment | |
EP2613580A1 (en) | System, method and communication terminal for tracking stolen communication terminal | |
AU2013224743B2 (en) | Image duplication prevention apparatus and image duplication prevention method | |
US20120153017A1 (en) | Method and apparatus for tracking the location of a digital media player deployed in a network | |
US20100182643A1 (en) | Image forming device, image forming system, and image forming method | |
EP3404895B1 (en) | Multimedia data transmission method and device | |
RU2014135210A (en) | SYSTEMS AND METHODS FOR TRANSMITTING AND RECEIVING DATA | |
CN102073859A (en) | Child picking and sending system on basis of face identification and control method thereof | |
CN102822814A (en) | Interacting with a device | |
EP3025256A2 (en) | Systems and methods for device data transfer | |
CN104680078B (en) | Method for shooting picture, method, system and terminal for viewing picture | |
US11288760B2 (en) | Systems and methods for recovering information from a recording device | |
CN104580376B (en) | The methods, devices and systems connected between terminal are established in a local network | |
CN111147196A (en) | Data transmission method, data sending device and data receiving device | |
CN106941428A (en) | A kind of picture delay method of testing based on eletric watermark | |
CN109241780A (en) | A kind of detection method, device and the equipment of image concealing information | |
CN104427242B (en) | Image split-joint method, device and electronic equipment | |
CN110401794A (en) | Video camera remote upgrade method, device, electronic equipment and readable storage medium storing program for executing | |
CN109451197A (en) | It is a kind of it is long-range it is stable send picture to server method | |
CN106231661A (en) | Internet-of-things terminal and data uploading method, Internet of Things server | |
US11435999B2 (en) | Method and apparatus for upgrading software | |
CN108076070B (en) | FASP (fast open shortest Path protocol) blocking method, device and analysis system | |
CN105592221A (en) | Multimedia-sending method and communication terminal | |
KR101889604B1 (en) | Method of verifying images received and transmitted by dicom gateway | |
US20210120072A1 (en) | Processing computer files |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20190308 |
|
WD01 | Invention patent application deemed withdrawn after publication |