Summary of the invention
The technical problem to be solved in the present invention is: a kind of method that realizes end-to-end multi-media SMS transmission in the personal mobile communication network is provided.This method can directly send to multi-media SMS on user's the mobile phone; Thereby terminal do not need by value added service provider indirect send multi-media SMS to user mobile phone, can be applicable in the present individual mobile network communication.
The technical solution adopted in the present invention is: a kind of in the safety precaution product with the method for end to end system transmitting multimedia short messages, its described method comprises:
The task control step is used to be provided with system parameters, checking user profile, management and dispatching task;
Image acquisition step is used for the sampling and the coding of monitoring image;
Making step is used for the making of described multi-media SMS, described multi-media SMS is packaged into the multi-media SMS packet format of standard;
Transmitting step is used for the transmission of described multi-media SMS, by the online of end-to-end protocol dial-up program, through the WAP (wireless application protocol) stack, described multi-media SMS is sent to the mobile phone receiving terminal.
Described task control is the reception and the processing of note instruction.
Described note instruction is work order and system configuration instruction.
Described task is by the described multi-media SMS of cycle timed sending.
Described task is to the moving image detection alarm.
Described system parameters can realize the application program remote online upgrading based on wireless network.
Described multi-media SMS is made based on " WAP-209-MMSEncapsulation " standard of WAP Forum,
Single described multi-media SMS can comprise several photo sites, and adopts " lantern slide " mode playback, by SMIL language specified layout and order.
Terminal can be preserved the number of three described mobile phone receiving terminals.
Described moving image detection alarm partly adds environment light evaluation algorithm.
The invention has the beneficial effects as follows:
1) cost reduces: the expense that the present invention sends multi-media SMS is the same with the expense that mobile phone normally sends multi-media SMS, and this mail sending charge per message will be much smaller than the expense that sends by value added service provider;
2) product independence, flexibility increase: the present invention can independently send multi-media SMS to other-end, has broken through the limitation that relies on value added service provider.
3) wireless process completely: removed value added service provider from the wireline interface between the Mobile Network Operator, realized the wireless penetration of complete meaning.
4) fail safe: user's picture and literal directly transmit without the value added service provider excessively, have guaranteed that privacy, fail safe are protected.
In addition, use the note control mode to simplify operation, and can make the user carry out remote operation.
The present invention optimizes environment light detection algorithm, between algorithm complexity and detection accuracy rate, obtained experienced compromise, get rid of because environment light changes the false alarm that causes by the scope that detects the mobile object variation, this algorithm computing is simple, low to system requirements, be specially adapted in the middle of the embedded system.
Embodiment
Referring to accompanying drawing:
Fig. 1 provides the work schematic diagram that sends multi-media SMS.At first gather picture bycamera 1, can send system configuration by the user and instruct and be provided with the blanking time between the format size of image, the quantity of picture and the picture; Carry out by the task controlled step, the multi-media SMS making step will be gathered the multi-media SMS packet format that good picture is packaged into standard; Equipment can land wireless network then, by the online of PPP (end-to-end protocol) dial-up program, by wap protocol (WAP (wireless application protocol)) stack multi-media SMS is sent again.
Fig. 2 is that the layer of structure of integral body of the present invention is described.The present invention divides hardware and software two parts.Hardware comprisesmaster control borad 2,MODEM 3 plates, 1 three parts of camera.Wherein master control borad adopts the AD Blackfin of company series DSP as core processor.Software section comprises eight big modules, is respectively the program of modules such as real time operating system (RTOS), PPP dial-up program, wap protocol stack, multi-media SMS making router, user's short message instruction analysis handling procedure, IMAQ and coded program, motion detection program and the light detection algorithm of optimizing the environment, timing cycle transmission, auto-update, authentication.Real time operating system both can provide the general hardware control interface also can provide stable multi-task scheduling to upper application software; The PPP dial-up program uses ppp protocol to dial up on the telephone in wireless network; The wap protocol stack comprises the realization of each layer of IP/WDP/WTP/WSP, is used for carrying out communication with WAP gateway; The multi-media SMS production process is packaged into the MMS PDU form of standard according to " WAP-209-MMSEncapsulation " standard with the picture that collects, and multi-media SMS adopts " lantern slide " pattern, by SMIL language specified layout and order; User's note instruction analysis handling procedure can analysis user be dealt into the various instructions of monitoring client, and makes respective handling, can inform by sending note to the user when monitoring client has some special event to take place in addition; IMAQ and coded program can be encoded into the jpeg format picture that different size requires according to user's setting; The motion detection program and the light detection algorithm of optimizing the environment are used for producing alarm signal when moving object process camera, can be different from simultaneously because the false alarm that the image difference that the ambient light variation causes produces, the basic principle of environment light detection algorithm is that the variation of most of environment light can cause the pixel intensity of entire image all to change, and object of which movement only can cause one part of pixel brightness to change; The program of modules such as timing cycle transmission, auto-update, authentication is used to support safety clock cycle timed sending multi-media SMS pattern, by mobile radio network remote automatic upgrading application program, the monitoring client parameter configuration is carried out in the note instruction that the user sends or when controlling, equipment carries out authentication according to SIM card sequence number and device password.
Fig. 3 has described equipment work flow process of the present invention.
At first carry out the call parameter of initialized setting system hardware behind the opening of device, and the configuration information of reading the user from Flash, the initialization back equipment that finishes can inform that subscriber equipment normally opens and enter operating state with short message mode.Under the operating state, have three tasks to carry out concurrent: note command reception and Processing tasks, cycle send multi-media SMS task, motion detection warning task.
For first task, equipment is in all the time and receives the note command status, and after receiving a legal note instruction, this task will be analyzed this instruction, and dissimilar instructions have the different authentication mode.Note is divided into two classes: system configuration note and work note.The system configuration instruction can be carried out the parameter setting to equipment, comprise phone number, picture specification, " safety clock " timed sending cycle of binding etc., also can be used for carrying out the wireless online upgrading, all system parameters instructions all will be by CCID and the dual safety certification of user cipher; Work order can only be sent by the mobile phone of binding, if the work order that other phone numbers send is with invalidation, work order can the free online multimedium note, open and close warning, running parameter or the like is set.If require to send the instruction of multi-media SMS, then images acquired sends a multi-media SMS at once.No matter be which kind of instruction, finish relevant work after, continue to wait for to receive next bar note instruction.
For second task, equipment can be according to user's setting, and every one-period just sends a multi-media SMS, all begins the timing of next cycle after being sent completely at every turn.
For the 3rd task, be positioned at open mode if report to the police, whether equipment will detect all the time moving object, and when moving object process camera, equipment sends multi-media SMS with the continuous acquisition plurality of pictures from the trend user and reports to the police.
No matter be that program request transmission, cycle timed sending, motion alarm send, if because network signal problem or other cause specifics cause sending failure, equipment can be notified concrete which the bar multi-media SMS of user because what is former thereby send failure with short message mode.
Fig. 4 has provided master control borad circuit theory diagrams of the present invention, because picture is bigger, is divided into three pictures.Master control borad mainly is made of video processing module, the sampling that major function is finished analog video signal (CVBS) exactly (comprises the A/D conversion, the preliminary treatment of image etc.), video compression, the RS232 by the band hardware flow control uses the AT instruction to finish the transfer of data of video processing module to wireless communication module again.
Concrete connected mode is between themaster control borad 2 circuit main chip:
U4 is core digital signal processor ADSP-BF533, U5 is a crystal oscillator, U6 is the video decode processor, U7 is the SDRAM of 32M byte, U8 is 16 FLASH, and U9 is a low differential pressure type DC-DC electric pressure converter, and U10 is the chip that resets, U11 is the core power chip, and U12 is the RS232 level transferring chip.
19 address wire ADDR[1-19 of U4] with the address wire A[1-19 of U8] be connected with the address wire of U7; The 16 data lines DATA[0-15 of U4] with the data wire DQ[0:15 of U7] with the data wire DQ[0-15 of U8] be connected; 8 PPI data wire PF[12-15 of U4], PP[0:3] with the data wire VPO[0-7 of U6] be connected; The general-purpose interface I/O of U4 (PF0, PF1, PF2, PF3, PF4, PF7) with U12 (R1OUT, R2OUT, R3OUT, R5OUT, T1IN T3IN) connects; The UART Universal Asynchronous Receiver Transmitter UART mouth of U4 (RX, TX) and U12 (R4OUT T2IN) connects; The clock input CLKIN of U4 links to each other with the OUTPUT of U5; U4 (ABE0, ABE1, SRAS, SCAS, SEW, SCKE, CLKOUT, SA10, SMS) with U7 (DQML, DQMH, WE, CAS, RAS, CLK, CKE CS) links to each other; U4 (PF5, PF6) and U6 (SCL SDA) links to each other; The RESET of U4 is connected with the RESET of U10; The exterior I of U4/O voltage VDDEXT links to each other with the OUTPUT of U9; The core voltage VDDINT of U4 links to each other with the FB of U11; The PPI_CLK of U4 is connected with the LLC of U4; U4 (AOE, AWE, AMS0) with U8 (OE, WE CE) link to each other.
Fig. 5 has provided MODEM 3 plate modulation-demodulation circuit schematic diagrams of the present invention.The MODEM plate is used for the mobile communications network communication, and the network environment support to note, multi-media SMS is provided.Connect by 9 core serial ports between MODEM plate and the master control borad, master control borad is controlled the MODEM plate with the AT instruction.
Fig. 6 has provided the contrast of the Organization Chart of the Organization Chart of multi-media SMS transmission method of the present invention and original multi-media SMS transmission based on value added service provider.Contrast two figure, can know the difference of finding out both.The present invention (Fig. 6-1) is that multi-media SMS is directly sent on user's the mobile phone terminal by the WAP system based on the MM1 agreement.And original method (Fig. 6-2) is actually based on the scheme of value added service provider according to the MM7 agreement and at first picture sent to value added service provider, sends to mobile network's multimedia messaging center (MMSC) again by value added service provider.