CN107590949A - A kind of electronic warning system, alarm method and electronic equipment - Google Patents

A kind of electronic warning system, alarm method and electronic equipment Download PDF

Info

Publication number
CN107590949A
CN107590949A CN201710704235.2A CN201710704235A CN107590949A CN 107590949 A CN107590949 A CN 107590949A CN 201710704235 A CN201710704235 A CN 201710704235A CN 107590949 A CN107590949 A CN 107590949A
Authority
CN
China
Prior art keywords
location information
warning system
monitored
guardian
electronic warning
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
CN201710704235.2A
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.)
Shenzhen Institute of Advanced Technology of CAS
Original Assignee
Shenzhen Institute of Advanced Technology of CAS
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 Shenzhen Institute of Advanced Technology of CAS filed Critical Shenzhen Institute of Advanced Technology of CAS
Priority to CN201710704235.2A priority Critical patent/CN107590949A/en
Publication of CN107590949A publication Critical patent/CN107590949A/en
Pending legal-status Critical Current

Links

Landscapes

  • Telephonic Communication Services (AREA)
  • Alarm Systems (AREA)

Abstract

The present invention relates to a kind of electronic warning system, alarm method and electronic equipment.The alarm method includes:The polygon monitored area of electronic warning system is set;Obtain the current location information of monitored target, and judge that monitored target whether there is a upper location information in this monitoring, if a upper location information is not present in monitored target in this monitoring, the current location information is judged whether in the monitored area of the electronic warning system, and is alarmed according to judged result to the guardian of the monitored target;If there is a upper location information in monitored target in this monitoring, read a upper location information, a upper location information and current location information are judged respectively whether in the monitored area of the electronic warning system, and are alarmed according to judged result to the guardian of the monitored target.For the present invention using polygon monitored area is set, operation is more convenient, the flexibility and accuracy that enhancing monitored area is set.

Description

A kind of electronic warning system, alarm method and electronic equipment
Technical field
The present invention relates to electronic warning system technical field, more particularly to a kind of electronic warning system, alarm method and electricity Sub- equipment.
Background technology
In recent years, most fence realizes alarm, this tangible electronics using a kind of tangible fence built Fence can not arbitrarily change fence position, build also troublesome complexity, be used for the large-scale place such as factory, prison, airport.It is and right Wearable terminal sets fence to be mainly used in guarding the crowds such as old man and children, and above-mentioned electronic fence shows So improper also, above-mentioned electronic fence typically has certain voltage, certain potential safety hazard be present.
In Internet of Things field, in the remote monitoring system to wearable terminal, also there is the function that fence is set, lead to The real-time upload user current location of GPS location of wearable terminal is crossed, judges whether user is being set by user current location Fence in, make guardian can be with the very first time to guardian's alert in time if not in the fence of setting Grasp the active situation of terminal user.But existing fence is mostly solid using circular method for drafting, graphics Web publishing It is fixed, it is impossible to the size of fence is accurately controlled, the region that user can be not desired to add fence is also drawn into, or a certain piece The increase of zonule can allow fence to expand a circle again, cause the decline of Consumer's Experience;Meanwhile existing fence alarm method is most Warning message is pushed using APP, if user's imprudence turns off warning reminding, disengaging fence just can not be received in the very first time Warning message.
The content of the invention
The invention provides a kind of electronic warning system, alarm method and electronic equipment, it is intended at least to a certain extent Solves one of above-mentioned technical problem of the prior art.
In order to solve the above problems, the invention provides following technical scheme:
A kind of electronic warning system, including client and server;
The client is used for the monitored area for setting electronic warning system, and the monitored area is polygon monitoring section Domain;
The server includes:
Data acquisition module:For obtaining the current location information of monitored target;
First location information judge module:For judging monitored target in this monitoring with the presence or absence of upper one positioning Information, if a upper location information is not present in monitored target in this monitoring, pass through the second location information judge module Judge the current location information whether in the monitored area of the electronic warning system;If monitored target is at this A upper location information in monitoring be present, upper one article of location information is read by the 3rd location information judge module;
Second location information judge module:For judging whether the current location information is located at the electronic warning system Monitored area in, and by alarm module according to guardian from judged result to the monitored target alarm;
3rd location information judge module:For reading a upper location information, judge that described upper one is determined respectively Whether position information and current location information are in the monitored area of the electronic warning system, and by alarm module according to sentencing Disconnected result is alarmed to the guardian of the monitored target.
The technical scheme that the embodiment of the present invention is taken also includes:The client is additionally operable to set guardian respectively with being supervised Survey the warning message of object;The warning message of the guardian comprises at least the telephone number for being used for receiving alarming short message, described The warning message of monitored target comprises at least the name of monitored target.
The technical scheme that the embodiment of the present invention is taken also includes:The alarm module is according to judged result to monitored target The type of alarm of guardian's alarm include at least one of telephone call, audio alert, SMS alarm or sound and light alarm.
The technical scheme that the embodiment of the present invention is taken also includes:If type of alarm is SMS alarm, the alarm module It is specially according to guardian alarm of the judged result of the second location information judge module to monitored target:If work as prelocalization Information is located in the monitored area of electronic warning system, reads the telephone number of the guardian, and to the electricity of the guardian Words number is transmitted into the alarming short message of electronic warning system monitored area;If current location information is located at electronic warning system Monitored area outside, read the telephone number of the guardian, and sent to the telephone number of the guardian and leave electronics report The alarming short message in alert system monitoring region;The alarming short message includes the name of monitored target, the event of triggering, triggering thing The time of part and the position link of current location information.
The technical scheme that the embodiment of the present invention is taken also includes:If type of alarm is SMS alarm, the alarm module It is specially according to guardian alarm of the judged result of the 3rd location information judge module to monitored target:If upper one fixed Position information is located at outside the monitored area of electronic warning system and current location information is located in the monitored area of electronic warning system, The telephone number of the guardian is read, and electronic warning system monitored area is transmitted into the telephone number of the guardian Alarming short message;If a upper location information is located in the monitored area of electronic warning system and current location information is located at electricity Outside the monitored area of sub- warning system, the telephone number of the guardian is read, and send to the telephone number of the guardian Leave the alarming short message of electronic warning system monitored area.
Another technical scheme that the embodiment of the present invention is taken is:A kind of alarm method of electronic warning system, including:
Step a:The monitored area of electronic warning system is set, wherein, the monitored area is polygon monitored area;
Step b:The current location information of monitored target is obtained, and judges whether monitored target is deposited in this monitoring In a upper location information, if a upper location information is not present in monitored target in this monitoring, step c is performed;Such as There is a upper location information in fruit monitored target, perform step d in this monitoring;
Step c:The current location information is judged whether in the monitored area of the electronic warning system, and according to Judged result is alarmed to the guardian of the monitored target;
Step d:A upper location information is read, judges a upper location information and current location information respectively Whether in the monitored area of the electronic warning system, and reported according to judged result to the guardian of the monitored target It is alert.
The technical scheme that the embodiment of the present invention is taken also includes:The step a also includes:Guardian is set respectively with being supervised Survey the warning message of object;The warning message of the guardian comprises at least the telephone number for being used for receiving alarming short message, described The warning message of monitored target comprises at least the name of monitored target.
The technical scheme that the embodiment of the present invention is taken also includes:In the step c, it is described according to judged result to being supervised The type of alarm for the guardian's alarm for surveying object is included in telephone call, audio alert, SMS alarm or sound and light alarm at least It is a kind of.
The technical scheme that the embodiment of the present invention is taken also includes:If type of alarm is SMS alarm, in the step c In, it is described to be specially according to guardian alarm of the judged result to monitored target:If the current location information is positioned at electricity In the monitored area of sub- warning system, the telephone number of the guardian is read, and send to the telephone number of the guardian Into the alarming short message of electronic warning system monitored area;If the current location information is located at the monitoring of electronic warning system Outside region, the telephone number of the guardian is read, and sent to the telephone number of the guardian and leave electronic warning system The alarming short message of monitored area;The alarming short message include monitored target name, triggering event, trigger event when Between and current location information position link.
The technical scheme that the embodiment of the present invention is taken also includes:If type of alarm is SMS alarm, in the step d In, it is described to be specially according to guardian alarm of the judged result to monitored target:If a upper location information is located at Outside the monitored area of electronic warning system and current location information is located in the monitored area of electronic warning system, reads the prison The telephone number of shield person, and the alarm for being transmitted into the telephone number of the guardian electronic warning system monitored area is short Letter;If a upper location information is located in the monitored area of electronic warning system and current location information is located at electronic warning system Outside the monitored area of system, the telephone number of the guardian is read, and sent to the telephone number of the guardian and leave electronics The alarming short message of warning system monitored area.
The another technical scheme that the embodiment of the present invention is taken is:A kind of electronic equipment, including:
At least one processor;And
The memory being connected with least one processor communication;Wherein,
The memory storage has can be by the instruction of one computing device, and the instruction is by least one place Manage device to perform, so that at least one processor is able to carry out the following operation of the alarm method of above-mentioned electronic warning system:
Step a:The monitored area of electronic warning system is set, wherein, the monitored area is polygon monitored area;
Step b:The current location information of monitored target is obtained, and judges whether monitored target is deposited in this monitoring In a upper location information, if a upper location information is not present in monitored target in this monitoring, step c is performed;Such as There is a upper location information in fruit monitored target, perform step d in this monitoring;
Step c:The current location information is judged whether in the monitored area of the electronic warning system, and according to Judged result is alarmed to the guardian of the monitored target;
Step d:A upper location information is read, judges a upper location information and current location information respectively Whether in the monitored area of the electronic warning system, and reported according to judged result to the guardian of the monitored target It is alert.
Relative to prior art, beneficial effect caused by the embodiment of the present invention is:The electronic warning of the embodiment of the present invention System, alarm method and electronic equipment are by the way of polygon fence is drawn so that fence sets more flexible, operation Accuracy more convenient, that enhancing fence is drawn;Server end is carried out real-time by the way of monitoring in real time to monitored target Positioning, and using the anchor point of ray diagnostic method real-time judge monitored target and the position relationship of fence, if monitoring Left to monitored target or into fence, it is short to send the alarm with the link of monitored target positional information to guardian in time Letter, guardian in the position of map denotation monitored target and can be navigated by click location Info Link, and operation is more Add facility.
Brief description of the drawings
The structural representation of the electronic warning system of Fig. 1 embodiment of the present invention;
Fig. 2 is that the fence of monitoring system sets page design sketch;
Fig. 3 is the algorithm schematic diagram for judging point and polygon relation;
Fig. 4 a and Fig. 4 b are the alarming short message schematic diagram of the embodiment of the present invention;Wherein, Fig. 4 a are alarming short message, and Fig. 4 b are point Hit the shown monitored target current location of the link of the position in alarming short message;
Fig. 5 is the flow chart of the alarm method of the electronic warning system of the embodiment of the present invention;
Fig. 6 is the hardware device structural representation of the alarm method of the electronic warning system of the embodiment of the present invention.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples The present invention is further elaborated.It should be appreciated that specific embodiment described herein is only to explain the present invention, not For limiting the present invention.
Referring to Fig. 1, it is the structural representation of the electronic warning system of the embodiment of the present invention.The electronics of the embodiment of the present invention Warning system includes polytype reports such as visual warning system, False alarms system (fence) or wireless alarm system Alert system, only it is specifically described by taking fence as an example in following examples of the present invention.
The electronic warning system of the embodiment of the present invention includes client and server.
Client is used to draw polygon fence, and all summit longitude and latitude set of polygon fence are stored In the server, the monitored area of fence is formed;Meanwhile set respectively guardian and monitored target warning message, Type of alarm, and open fence warning function;Wherein, user opens the fence setting page of monitoring system by client Face, by calling the map interfaces such as Baidu come show map figure layer, click on after drawing fence, monitoring system can instantiate one Individual mouse rendered object, and mouse rendered object is monitored, user draws polygon electronics using the mouse rendered object Fence, system can protect all summit longitude and latitude set of polygon fence successively according to the order of drafting after drafting It is stored in database, when user, which is again turned on fence, sets the page, all summit longitudes and latitudes in system reading database Fence is shown on the page by degree set to draw polygon fence;User can set multiple fences simultaneously, Existing fence can also be carried out the operation such as being deleted or modified.The present invention is by drawing polygon fence so that Fence setting is more flexible, and operation is more convenient, the accuracy that enhancing fence is drawn;And using the fence storage side of longitude and latitude Formula, data volume is small and accurate, is easy to redraw.In embodiments of the present invention, type of alarm is arranged to SMS alarm, Ke Yili Solution, type of alarm can also be the one of which or more of the modes such as telephone call, audio alert, SMS alarm or sound and light alarm Kind.Guardian's warning message of setting comprises at least the telephone number of guardian, for receiving alarming short message;What is set is monitored Alarm objects information comprises at least monitored target name, Termination ID etc..After user opens fence warning function, server can open Dynamic real-time monitoring alarming program, user also can close fence warning function according to monitoring requirements.Specifically as shown in Fig. 2 being monitoring The fence of system sets page design sketch.Wherein, black lines region is the fence that user is set, and is being supervised The anchor point for surveying object shows the information such as the name of monitored target, Termination ID.
Server includes database module, data acquisition module, the first location information judge module, the second location information and sentenced Disconnected module, alarm module and the 3rd location information judge module;
Database module:For store polygon fence all summit longitude and latitude set and guardian with being supervised Survey the warning message of object;
Data acquisition module:For starting real-time monitoring alarming program after fence warning function is opened, and obtain respectively All summit longitude and latitude collection of the warning message of monitored target, the current location information of monitored target and fence Close;
First location information judge module:For judging monitored target in this monitoring with the presence or absence of upper one positioning Information, if a upper location information is not present in monitored target in this monitoring, pass through the second location information judge module Judge current location information whether in fence monitored area;If monitored target has upper one in this monitoring Bar location information, upper one article of location information and current location information and electronics are judged by the 3rd location information judge module respectively The position relationship of fence.
Second location information judge module:For judging current location information whether in fence monitored area, And alarming short message is sent to guardian according to judged result by alarm module;Wherein, server is by the way of monitoring in real time, In monitoring process, with the crond process timing executive plans task in operating system (Linux), (user can pass through Crontab orders set plan target), judge present procedure whether abnormal interrupt, it is timely if present procedure abnormal interrupt Reset routine, avoid influences to report due to location information that program exception interrupt leads to not to real-time monitor monitored target Alert situation.Ccrond be for periodically performing certain task or waiting a finger daemon of pending some events, After installation operating system, acquiescence can install this service aid, and meeting automatic start crond processes, crond processes are every Minute can periodically check whether the plan target to be performed, and if the plan target to be performed, then perform the plan automatically Task.Minimum due to crond processes performed the time as one minute, therefore the embodiment of the present invention is realized using the method for delay Every 30 seconds detection one secondary program whether abnormal interrupt.
The embodiment of the present invention judges the position relationship of location information and fence by ray (horizontal intersection point) diagnostic method, So as to judge monitored target whether in fence monitored area.Ray diagnostic method be the most widely used for judge point with it is more The algorithm of side shape relation, suitable for arbitrary polygon, either convex polygon or concave polygon can accurate judgement.If Know point P, judge point P and known polygon Polygon (x1,y1;x2,y2;...xn,yn;) relation, it is necessary first to cross point P to A ray is done on a left side, if fruit dot P is in the inside of polygon, then the intersection point of this ray and polygon must be odd number;If P exists The outside of polygon, then intersection point number must be even number.Need to investigate every a line of polygon and the intersection point of ray in sequence Situation, and the number of intersection point is counted, need special consideration for special circumstances.For example point falls on the side of polygon or point Overlapped with polygon vertex.The two point form equation of straight line is used in deterministic process, i.e., known straight line passes through P1 (x1,y1)、P2 (x2,y2) 2 points, then linear equation is:
The algorithm of point and polygon relation is judged as shown in figure 3, judging that the algorithm of point and polygon relation specifically includes:
1. input current anchor point P (xp,yp) and polygon vertex Polygon (x1,y1;x2,y2;...xn,yn;);
2. the number of vertices PointCount and initialization counter Sum that obtain polygon are 0, polygon current vertex is compiled Number be 0;
3. judge whether polygon current vertex is less than PointCount;If performing 4 less than PointCount, otherwise perform 10;
4. obtain polygon current vertex and neighbouring vertices, judge current anchor point P transverse and longitudinal coordinate whether with it is any one Point overlaps, and enters 5 if overlapped, if misaligned enter 6;
5. judge that current anchor point P is located in polygon;
6. current anchor point P is judged whether between the horizontal parallel line on two summits, if not returning to 3 if, if performing 7;
7. the x coordinate of current anchor point P intersection points of ray and polygon edge to the left is calculated by 2 formula of straight line; If the x coordinate of intersection point is equal with current anchor point P x coordinate, illustrate current anchor point P on the side of polygon, return to 5, Otherwise 8 are entered;
8. whether judge intersection point in current anchor point P left side, if intersection point in current anchor point P left side, enters 9, otherwise return to 3;
9.Sum adds 1, and returns to 3 and judge whether the next summit of polygon is less than PointCount;
10. judging whether Sum is odd number, if odd number, 5 are returned to, otherwise into 11;
11. judge that current anchor point P is located at outside polygon.
Alarm module:For the judged result according to the second location information judge module and the 3rd location information judge module Alarming short message is sent to guardian;Alarm module send short message concrete mode be:If the first location information judge module Judged result is that current location information is located in fence monitored area, or the judged result of the 3rd location information judge module For a upper location information is located at outside fence monitored area and current location information is located in fence monitored area, then The telephone number of guardian is read, and the alarming short message of fence monitored area is transmitted into the telephone number of guardian; It is located at if the judged result of the first location information judge module is current location information outside fence monitored area, or the 3rd The judged result of location information judge module is located in fence monitored area for a upper location information works as prelocalization letter Breath then reads the telephone number of guardian, and send and leave to the telephone number of guardian outside fence monitored area The alarming short message of fence monitored area;Wherein, the alarming short message of the embodiment of the present invention include monitored target name, The contents such as the position link of the current location information of the event of triggering, the time of trigger event and monitored target, such as " certain User leaves/enter fence!2017-03-07 17:47:01, current location link:http://m.amap.com/Q= 22.5962238,113.9865341&dev=1.【Surveillance center】”;The position link of wherein current location information uses Gao De Deng the URI interfaces of map, the longitude and latitude of addition monitored target current location in link, human observer receives alarming short message Afterwards, the position that current location information can be clicked on by alarming short message is linked, you can the position of monitored target is shown in map And navigated.Specifically as shown in figures 4 a and 4b, it is the alarming short message schematic diagram of the embodiment of the present invention, wherein, Fig. 4 a are report Alert short message, Fig. 4 b are to click on the monitored target current location shown by the position link in alarming short message.
3rd location information judge module:For reading a upper location information for monitored target, upper one is judged respectively Whether bar location information and current location information are located in fence monitored area, and by alarm module according to judged result Alarming short message is sent to guardian;Wherein, if there is a upper location information, the embodiment of the present invention is by two before and after acquisition Location information judges the position relationship of monitored target and fence, if monitoring that monitored target leaves or into electronics Fence monitored area, the alarming short message with the link of monitored target positional information is sent to guardian in time, avoids continuously sending out Send alarming short message and influence the usage experience of user.
Referring to Fig. 5, it is the flow chart of the alarm method of the electronic warning system of the embodiment of the present invention.The embodiment of the present invention The alarm method of electronic warning system comprise the following steps:
Step 100:Polygon fence is drawn by client, and by all summit longitudes and latitudes of polygon fence Degree set is stored in database;
In step 100, user can open the fence setting page of monitoring system by client browser, pass through Call the map interfaces such as Baidu to carry out show map figure layer, click on after drawing fence, monitoring system can instantiate a mouse Rendered object, and mouse rendered object is monitored, user draws polygon fence using the mouse rendered object, paints All summit longitude and latitude set of polygon fence can be saved in number successively by system according to the order of drafting after system According in storehouse, when user, which is again turned on fence, sets the page, all summit longitude and latitude set in system reading database To draw polygon fence, and fence is shown on the page;User can set multiple fences simultaneously, can be with Existing fence is carried out the operation such as to be deleted or modified.The present invention is by drawing polygon fence so that fence is set Put more flexibly, operation is more convenient, the accuracy that enhancing fence is drawn;And using the fence storage mode of longitude and latitude, data Measure small and accurate, be easy to redraw.
Step 200:The warning message of guardian and monitored target is set respectively, the warning message of setting is stored in number According in storehouse, and open fence warning function;
In step 200, guardian's warning message of setting comprises at least the telephone number of guardian, is alarmed for receiving Short message;The monitored target warning message of setting comprises at least monitored target name, Termination ID etc..User opens fence alarm After function, server can start real-time monitoring alarming program, and user also can close fence warning function according to monitoring requirements.
Step 300:By startup of server real-time monitoring alarming program, and the alarm signal of monitored target is obtained respectively All summit longitude and latitude set of the fence cease, stored in the current location information and database of monitored target;
Step 400:Judge that monitored target whether there is a upper location information in this monitoring, if monitored pair As a upper location information is not present in this monitoring, step 500 is performed;If monitored target exists in this monitoring A upper location information, perform step 800;
Step 500:Current location information is judged whether in fence monitored area, if current location information position In in fence monitored area, step 600 is performed;If current location information in fence monitored area, is not held Row step 700;
In step 500, server by the way of monitoring in real time, in monitoring process, with operating system (Linux) In crond process timing executive plans task (user can by crontab orders set plan target), judgement work as future Sequence whether abnormal interrupt, the timely reset routine if present procedure abnormal interrupt, avoid because program exception interrupt causes The location information of monitored target can not be real-time monitored and influence the situation of alarm.Ccrond is for periodically performing certain Kind task or a finger daemon for waiting pending some events, after installation operating system, acquiescence can install this clothes Work tool, and can automatic start crond processes, crond processes are per minute to periodically check whether that the plan to be performed is appointed Business, if the plan target to be performed, then performs the plan target automatically.Because the minimum execution time of crond processes is One minute, thus the embodiment of the present invention realized using the method for delay every 30 seconds detection one secondary program whether abnormal interrupt.
The embodiment of the present invention judges the position relationship of location information and fence by ray (horizontal intersection point) diagnostic method, So as to judge monitored target whether in fence monitored area.Ray diagnostic method be the most widely used for judge point with it is more The algorithm of side shape relation, suitable for arbitrary polygon, either convex polygon or concave polygon can accurate judgement.If Know point P, judge point P and known polygon Polygon (x1,y1;x2,y2;...xn,yn;) relation, it is necessary first to cross point P to A ray is done on a left side, if fruit dot P is in the inside of polygon, then the intersection point of this ray and polygon must be odd number;If P exists The outside of polygon, then intersection point number must be even number.Need to investigate every a line of polygon and the intersection point of ray in sequence Situation, and the number of intersection point is counted, need special consideration for special circumstances.For example point falls on the side of polygon or point Overlapped with polygon vertex.The two point form equation of straight line is used in deterministic process, i.e., known straight line passes through P1 (x1,y1)、P2 (x2,y2) 2 points, then linear equation is:
Judge the algorithm of point and polygon relation as shown in figure 3, specifically including following steps:
1. input current anchor point P (xp,yp) and polygon vertex Polygon (x1,y1;x2,y2;...xn,yn;);
2. the number of vertices PointCount and initialization counter Sum that obtain polygon are 0, polygon current vertex is compiled Number be 0;
3. judge whether polygon current vertex is less than PointCount;If step 4 is performed less than PointCount, otherwise Perform step 10;
4. obtain polygon current vertex and neighbouring vertices, judge current anchor point P transverse and longitudinal coordinate whether with it is any one Point overlaps, and enters step 5 if overlapped, if misaligned enter step 6;
5. judge that current anchor point P is located in polygon;
6. current anchor point P is judged whether between the horizontal parallel line on two summits, if not return to step 3 if, if Perform step 7;
7. the x coordinate of current anchor point P intersection points of ray and polygon edge to the left is calculated by 2 formula of straight line; If the x coordinate of intersection point is equal with current anchor point P x coordinate, illustrate current anchor point P on the side of polygon, return to step Rapid 5, otherwise into step 8;
8. whether judge intersection point in current anchor point P left side, if intersection point in current anchor point P left side, enters Step 9, otherwise return to step 3;
9.Sum adds 1, and return to step 3 judges whether the next summit of polygon is less than PointCount;
10. judge whether Sum is odd number, if odd number, return to step 5, otherwise into step 11;
11. judge that current anchor point P is located at outside polygon.
Step 600:The telephone number of guardian is read, and fence monitoring is transmitted into the telephone number of guardian The alarming short message in region;
In step 600, the alarming short message of the embodiment of the present invention include the name of monitored target, triggering event, The contents such as the position of the time of trigger event and the current location information of monitored target link, such as " certain user leaves/entered Enter fence!2017-03-07 17:47:01, current location link:http://m.amap.com/Q=22.5962238, 113.9865341&dev=1.【Surveillance center】”;The position link of wherein current location information uses the URI of the maps such as high moral Interface, the longitude and latitude of monitored target current location is added in link, after human observer receives alarming short message, alarm can be passed through Short message clicks on the position link of current location information, you can the position of monitored target is shown in map and is navigated.Can To understand, the present invention cannot be only used for passing in and out the alarm of fence, it can also be used to the alarm of other emergencies.
Step 700:The telephone number of guardian is read, and is sent to the telephone number of guardian and leaves fence monitoring The alarming short message in region;
Step 800:A upper location information for monitored target is read, and judges a upper location information and current respectively Location information whether in the fence monitored area, if a upper location information be located at outside fence monitored area and Current location information is located in fence monitored area, then performs step 600;If a upper location information is enclosed positioned at electronics In column monitored area and current location information is located at outside fence monitored area, then perform step 700;
In step 800, the embodiment of the present invention judges monitored target and electronics by two location informations before and after acquisition The position relationship of fence, if monitoring that monitored target leaves or into fence, sent in time to guardian with monitored The alarming short message of object location information link, the usage experience for avoiding continuously transmitting alarming short message and influenceing user.
Fig. 6 is the hardware device structural representation of the alarm method of electronic warning system provided in an embodiment of the present invention, such as Shown in Fig. 6, the equipment includes one or more processors and memory.By taking a processor as an example, the equipment can also wrap Include:Input unit and output device.
Processor, memory, input unit and output device can be connected by bus or other modes, in Fig. 6 with Exemplified by being connected by bus.
Memory as a kind of non-transient computer readable storage medium storing program for executing, available for store non-transient software program, it is non-temporarily State computer executable program and module.Processor is by running storage non-transient software program in memory, instruction And module, so as to perform the various function application of electronic equipment and data processing, that is, realize the place of above method embodiment Reason method.
Memory can include storing program area and storage data field, wherein, storing program area can storage program area, extremely Application program required for few One function;Storage data field can data storage etc..In addition, memory can be included at a high speed at random Memory is accessed, can also include non-transient memory, a for example, at least disk memory, flush memory device or other are non- Transient state solid-state memory.In certain embodiments, memory is optional including relative to the remotely located memory of processor, this A little remote memories can pass through network connection to processing unit.The example of above-mentioned network includes but is not limited to internet, enterprise In-house network, LAN, mobile radio communication and combinations thereof.
Input unit can receive the numeral or character information of input, and produce signal input.Output device may include to show The display devices such as display screen.
One or more of modules are stored in the memory, when by one or more of computing devices When, perform the following operation of any of the above-described embodiment of the method:
Step a:The monitored area of electronic warning system is set, wherein, the monitored area is polygon monitored area;
Step b:The current location information of monitored target is obtained, and judges whether monitored target is deposited in this monitoring In a upper location information, if a upper location information is not present in monitored target in this monitoring, step c is performed;Such as There is a upper location information in fruit monitored target, perform step d in this monitoring;
Step c:The current location information is judged whether in the monitored area of the electronic warning system, and according to Judged result is alarmed to the guardian of the monitored target;
Step d:A upper location information is read, judges a upper location information and current location information respectively Whether in the monitored area of the electronic warning system, and reported according to judged result to the guardian of the monitored target It is alert.
The said goods can perform the method that the embodiment of the present invention is provided, and possesses the corresponding functional module of execution method and has Beneficial effect.Not ins and outs of detailed description in the present embodiment, reference can be made to method provided in an embodiment of the present invention.
The embodiments of the invention provide a kind of non-transient (non-volatile) computer-readable storage medium, the computer storage is situated between Matter is stored with computer executable instructions, the executable following operation of the computer executable instructions:
Step a:The monitored area of electronic warning system is set, wherein, the monitored area is polygon monitored area;
Step b:The current location information of monitored target is obtained, and judges whether monitored target is deposited in this monitoring In a upper location information, if a upper location information is not present in monitored target in this monitoring, step c is performed;Such as There is a upper location information in fruit monitored target, perform step d in this monitoring;
Step c:The current location information is judged whether in the monitored area of the electronic warning system, and according to Judged result is alarmed to the guardian of the monitored target;
Step d:A upper location information is read, judges a upper location information and current location information respectively Whether in the monitored area of the electronic warning system, and reported according to judged result to the guardian of the monitored target It is alert.
The embodiments of the invention provide a kind of computer program product, the computer program product is non-temporary including being stored in Computer program on state computer-readable recording medium, the computer program include programmed instruction, when described program instructs When being computer-executed, the computer is set to perform following operate:
Step a:The monitored area of electronic warning system is set, wherein, the monitored area is polygon monitored area;
Step b:The current location information of monitored target is obtained, and judges whether monitored target is deposited in this monitoring In a upper location information, if a upper location information is not present in monitored target in this monitoring, step c is performed;Such as There is a upper location information in fruit monitored target, perform step d in this monitoring;
Step c:The current location information is judged whether in the monitored area of the electronic warning system, and according to Judged result is alarmed to the guardian of the monitored target;
Step d:A upper location information is read, judges a upper location information and current location information respectively Whether in the monitored area of the electronic warning system, and reported according to judged result to the guardian of the monitored target It is alert.
Electronic warning system, alarm method and the electronic equipment of the embodiment of the present invention are using drafting polygon fence Mode so that fence setting is more flexible, and operation is more convenient, the accuracy that enhancing fence is drawn;Using the fence of longitude and latitude Storage mode, data volume is small and accurate, is easy to redraw.Server end is carried out by the way of monitoring in real time to monitored target Positioning in real time, and using the anchor point of ray diagnostic method real-time judge monitored target and the position relationship of fence, if Monitor that monitored target leaves or into fence, sends the report with the link of monitored target positional information to guardian in time Alert short message, guardian in the position of map denotation monitored target and can be navigated by click location Info Link, be grasped It is more convenient to make.
The foregoing description of the disclosed embodiments, professional and technical personnel in the field are enable to realize or using the present invention. A variety of modifications to these embodiments will be apparent for those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, it is of the invention The embodiments shown herein is not intended to be limited to, and is to fit to and principles disclosed herein and features of novelty phase one The most wide scope caused.

Claims (11)

1. a kind of electronic warning system, it is characterised in that including client and server;
The client is used for the monitored area for setting electronic warning system, and the monitored area is polygon monitored area;
The server includes:
Data acquisition module:For obtaining the current location information of monitored target;
First location information judge module:Believe for judging monitored target in this monitoring with the presence or absence of upper one positioning Breath, if a upper location information is not present in monitored target in this monitoring, is sentenced by the second location information judge module Whether the current location information that breaks is in the monitored area of the electronic warning system;If monitored target is supervised at this A upper location information in survey be present, upper one article of location information is read by the 3rd location information judge module;
Second location information judge module:For judging whether the current location information is located at the prison of the electronic warning system Survey in region, and alarmed by alarm module according to judged result to the guardian of the monitored target;
3rd location information judge module:For reading a upper location information, the upper positioning letter is judged respectively Whether breath and current location information are tied in the monitored area of the electronic warning system by alarm module according to judgement Fruit is alarmed to the guardian of the monitored target.
2. electronic warning system according to claim 1, it is characterised in that the client is additionally operable to set monitoring respectively Person and the warning message of monitored target;The warning message of the guardian comprises at least the phone number for being used for receiving alarming short message Code, the warning message of the monitored target comprise at least the name of monitored target.
3. electronic warning system according to claim 1 or 2, it is characterised in that the alarm module is according to judged result The type of alarm alarmed to the guardian of monitored target is included in telephone call, audio alert, SMS alarm or sound and light alarm At least one.
4. electronic warning system according to claim 3, it is characterised in that described if type of alarm is SMS alarm Alarm module is alarmed according to the judged result of the second location information judge module to the guardian of monitored target:If Current location information is located in the monitored area of electronic warning system, reads the telephone number of the guardian, and to the prison The telephone number of shield person is transmitted into the alarming short message of electronic warning system monitored area;If current location information is located at electronics Outside the monitored area of warning system, read the telephone number of the guardian, and to the telephone number of the guardian send from Open the alarming short message of electronic warning system monitored area;The alarming short message includes the name of monitored target, the thing of triggering The position link of part, the time of trigger event and current location information.
5. electronic warning system according to claim 4, it is characterised in that described if type of alarm is SMS alarm Alarm module is alarmed according to the judged result of the 3rd location information judge module to the guardian of monitored target:If A upper location information is located at outside the monitored area of electronic warning system and current location information is located at the prison of electronic warning system Survey in region, read the telephone number of the guardian, and electronic warning system is transmitted into the telephone number of the guardian The alarming short message of system monitored area;If a upper location information is located in the monitored area of electronic warning system and works as prelocalization Information is located at outside the monitored area of electronic warning system, reads the telephone number of the guardian, and to the electricity of the guardian Words number sends the alarming short message for leaving electronic warning system monitored area.
A kind of 6. alarm method of electronic warning system, it is characterised in that including:
Step a:The monitored area of electronic warning system is set, wherein, the monitored area is polygon monitored area;
Step b:The current location information of monitored target is obtained, and judges monitored target in this monitoring with the presence or absence of upper One location information, if a upper location information is not present in monitored target in this monitoring, perform step c;If by There is a upper location information in monitoring object, perform step d in this monitoring;
Step c:The current location information is judged whether in the monitored area of the electronic warning system, and according to judgement As a result alarmed to the guardian of the monitored target;
Step d:A upper location information is read, judges whether are a upper location information and current location information respectively Alarmed in the monitored area of the electronic warning system, and according to judged result to the guardian of the monitored target.
7. the alarm method of electronic warning system according to claim 6, it is characterised in that the step a also includes:Point Not She Zhi guardian and monitored target warning message;The warning message of the guardian comprises at least short for receiving alarm The telephone number of letter, the warning message of the monitored target comprise at least the name of monitored target.
8. the alarm method of the electronic warning system according to claim 6 or 7, it is characterised in that in the step c, The type of alarm alarmed according to judged result to the guardian of monitored target includes telephone call, audio alert, short message At least one of alarm or sound and light alarm.
9. the alarm method of electronic warning system according to claim 8, it is characterised in that if type of alarm is short message Alarm, it is described to be specially according to guardian alarm of the judged result to monitored target in the step c:If described work as Prelocalization information is located in the monitored area of electronic warning system, reads the telephone number of the guardian, and to the monitoring The telephone number of person is transmitted into the alarming short message of electronic warning system monitored area;If the current location information is positioned at electricity Outside the monitored area of sub- warning system, the telephone number of the guardian is read, and send to the telephone number of the guardian Leave the alarming short message of electronic warning system monitored area;The alarming short message include monitored target name, triggering The position link of event, the time of trigger event and current location information.
10. the alarm method of electronic warning system according to claim 9, it is characterised in that if type of alarm is short Letter alarm, it is described to be specially according to guardian alarm of the judged result to monitored target in the step d:It is if described A upper location information is located at outside the monitored area of electronic warning system and current location information is located at the prison of electronic warning system Survey in region, read the telephone number of the guardian, and electronic warning system is transmitted into the telephone number of the guardian The alarming short message of system monitored area;If a upper location information is located in the monitored area of electronic warning system and works as prelocalization Information is located at outside the monitored area of electronic warning system, reads the telephone number of the guardian, and to the electricity of the guardian Words number sends the alarming short message for leaving electronic warning system monitored area.
11. a kind of electronic equipment, including:
At least one processor;And
The memory being connected with least one processor communication;Wherein,
The memory storage has can be by the instruction of one computing device, and the instruction is by least one processor Perform, so that at least one processor is able to carry out the alarm side of the electronic warning system described in above-mentioned 6 to 10 any one The following operation of method:
Step a:The monitored area of electronic warning system is set, wherein, the monitored area is polygon monitored area;
Step b:The current location information of monitored target is obtained, and judges monitored target in this monitoring with the presence or absence of upper One location information, if a upper location information is not present in monitored target in this monitoring, perform step c;If by There is a upper location information in monitoring object, perform step d in this monitoring;
Step c:The current location information is judged whether in the monitored area of the electronic warning system, and according to judgement As a result alarmed to the guardian of the monitored target;
Step d:A upper location information is read, judges whether are a upper location information and current location information respectively Alarmed in the monitored area of the electronic warning system, and according to judged result to the guardian of the monitored target.
CN201710704235.2A 2017-08-17 2017-08-17 A kind of electronic warning system, alarm method and electronic equipment Pending CN107590949A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710704235.2A CN107590949A (en) 2017-08-17 2017-08-17 A kind of electronic warning system, alarm method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710704235.2A CN107590949A (en) 2017-08-17 2017-08-17 A kind of electronic warning system, alarm method and electronic equipment

Publications (1)

Publication Number Publication Date
CN107590949A true CN107590949A (en) 2018-01-16

Family

ID=61041575

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710704235.2A Pending CN107590949A (en) 2017-08-17 2017-08-17 A kind of electronic warning system, alarm method and electronic equipment

Country Status (1)

Country Link
CN (1) CN107590949A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108972552A (en) * 2018-07-26 2018-12-11 平安科技(深圳)有限公司 A kind of position finding and detection method of robot, equipment and computer-readable medium
WO2019033329A1 (en) * 2017-08-17 2019-02-21 深圳先进技术研究院 Electronic alarm system, alarm method, and electronic device
CN110798798A (en) * 2019-11-02 2020-02-14 林康 System for positioning position of alarm person for command center and use method thereof

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101329820A (en) * 2008-08-01 2008-12-24 北京北斗星通导航技术股份有限公司 Shipborne terminal for implementing area alarm and alarm method
CN101483002A (en) * 2008-01-08 2009-07-15 希姆通信息技术(上海)有限公司 Cross-boundary alarm system and method
KR20110061178A (en) * 2009-12-01 2011-06-09 재단법인대구경북과학기술원 System for preventing missing child
CN102186140A (en) * 2011-05-07 2011-09-14 东莞市车友互联信息科技有限公司 Method for monitoring global positioning system (GPS) terminal and server for implementing method
CN103489290A (en) * 2013-10-17 2014-01-01 江兴明 Method for monitoring children entering specific area by using IoT (Internet of Things)
CN106327862A (en) * 2015-06-24 2017-01-11 宝山钢铁股份有限公司 Factory area vehicle driving safety alarm method and system based on GPS and GIS

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101483002A (en) * 2008-01-08 2009-07-15 希姆通信息技术(上海)有限公司 Cross-boundary alarm system and method
CN101329820A (en) * 2008-08-01 2008-12-24 北京北斗星通导航技术股份有限公司 Shipborne terminal for implementing area alarm and alarm method
KR20110061178A (en) * 2009-12-01 2011-06-09 재단법인대구경북과학기술원 System for preventing missing child
CN102186140A (en) * 2011-05-07 2011-09-14 东莞市车友互联信息科技有限公司 Method for monitoring global positioning system (GPS) terminal and server for implementing method
CN103489290A (en) * 2013-10-17 2014-01-01 江兴明 Method for monitoring children entering specific area by using IoT (Internet of Things)
CN106327862A (en) * 2015-06-24 2017-01-11 宝山钢铁股份有限公司 Factory area vehicle driving safety alarm method and system based on GPS and GIS

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019033329A1 (en) * 2017-08-17 2019-02-21 深圳先进技术研究院 Electronic alarm system, alarm method, and electronic device
CN108972552A (en) * 2018-07-26 2018-12-11 平安科技(深圳)有限公司 A kind of position finding and detection method of robot, equipment and computer-readable medium
CN110798798A (en) * 2019-11-02 2020-02-14 林康 System for positioning position of alarm person for command center and use method thereof
WO2021083096A1 (en) * 2019-11-02 2021-05-06 林康 System for positioning position of alarm-giving person for command center, and use method thereof

Similar Documents

Publication Publication Date Title
Mitchell et al. Hajj crowd management and navigation system: People tracking and location based services via integrated mobile and RFID systems
Bojan et al. An internet of things based intelligent transportation system
EP2963595A1 (en) Crime risk forecasting
US7450006B1 (en) Distributed perimeter security threat confirmation
US20160117910A1 (en) Method and system for generating geofences for managing offender movement
US9210542B2 (en) Method and computer system for detecting crowds in a location tracking system
CN103186963A (en) Electronic fence based on real-time geographic position
CN107590949A (en) A kind of electronic warning system, alarm method and electronic equipment
US20170127378A1 (en) Interactive cohort proximity notification system
CN108494965A (en) Based reminding method, device and computer readable storage medium
US20130015968A1 (en) System and method of alarm installation and configuration
US20230326328A1 (en) Predictive analysis support of remote tracking
CN113743547A (en) Asset supervision method and platform based on RFID (radio frequency identification) tag and storage medium
JP5998182B2 (en) POI data generation device, terminal device, POI data generation method and program
WO2007117579A1 (en) Distributed perimeter security threat evaluation
US7688202B1 (en) Distributed perimeter security threat determination
Vincent et al. Live College Bus Tracking and Route Mapping Using Internet of Things
Dirgahayu et al. An architectural design of geo-fencing emergency alerts system for hajj pilgrims
Farooq et al. Safe drive: an automatic engine locking system to prevent drunken driving
CN103236017A (en) User behavior tracking device, system and method
KR102664886B1 (en) IoT-based monitoring apparatus and method using mat type pressure sensor
JP7039921B2 (en) Location management system and programs
WO2019033329A1 (en) Electronic alarm system, alarm method, and electronic device
Najmurrokhman et al. Development of internet-of-things based building monitoring system for supporting the disaster mitigation in the city
US10878206B1 (en) Attendance monitoring system and a method for monitoring presence of children in a vehicle

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

Application publication date: 20180116

RJ01 Rejection of invention patent application after publication