CN101394608A - Agricultural information enquiry method and system based on short message platform - Google Patents

Agricultural information enquiry method and system based on short message platform Download PDF

Info

Publication number
CN101394608A
CN101394608A CNA2008102260027A CN200810226002A CN101394608A CN 101394608 A CN101394608 A CN 101394608A CN A2008102260027 A CNA2008102260027 A CN A2008102260027A CN 200810226002 A CN200810226002 A CN 200810226002A CN 101394608 A CN101394608 A CN 101394608A
Authority
CN
China
Prior art keywords
note
short message
agricultural information
matching condition
agricultural
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
CNA2008102260027A
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.)
China Agricultural University
Original Assignee
China Agricultural University
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 China Agricultural University filed Critical China Agricultural University
Priority to CNA2008102260027A priority Critical patent/CN101394608A/en
Publication of CN101394608A publication Critical patent/CN101394608A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention relates to an agricultural information inquiry method and a system based on a short message platform. The method comprises the following steps: an agricultural information database which stores set matched conditions and inquiry results corresponding to the set matched conditions is established, and then a short message which is not answered is extracted from a short message database automatically; the content of the extracted short message is matched with the set matched conditions, and the matching content is extracted and taken as a keyword; the inquiry results corresponding to the keyword is indexed in the agricultural information database; the indexed inquiry results are sent to a peasant household corresponding to the short message in the form of a short message, and the short message is marked as the answered short message in the short message database; and the system comprises a short message detecting unit used for detecting the short message answering state and a short message analyzing unit used for extracting and inquiring the needed keyword according to the content of the short message. The agricultural information inquiry method and the system can answer in the form of a short message more intelligently through detecting and analyzing agricultural short messages automatically; and the whole process needs no manual intervention, thereby increasing the processing speed for answering the agricultural short messages.

Description

A kind of agricultural information enquiry method and system based on SMS platform
Technical field
The present invention relates to the SMS platform application, be specifically related to a kind of agricultural information enquiry method and system based on SMS platform.
Background technology
Agricultural short message refers to the note of relevant agriculture field.The agricultural short message resource is because it towards the particularity of agricultural and people in the countryside, just has higher requirement on its specific aim, easy-to-understand property, terse property and the authenticity.Analyze answer short message mechanism at present and mainly contain following several types: one, any note of receiving at system is all replied same note; Two, preestablish one or more message, when receiving note, system can be according to receiving that the information that different user groups sends realizes automatically replying of corresponding information; Three, based on the agriculture specialist system of sms technique.
Preceding two kinds of message reply mechanism are unsuitable for being applied to agriculture field and carry out the Agricultural Information inquiry, as for the third message reply mechanism, the technical problem that rural subscribers will run in will producing sends to center short message interacting platform by SMS, the enquirement information that the short message interacting platform will receive automatically is with after the expert in the experts database is docked, peasant household's enquirement information is sent on expert's the mobile phone, after agricultural experts received information, the information of will answering in 24 hours passed to peasant household by SMS platform with short message mode.This kind message reply mechanism has in fact only provided the forwarding platform of the reception towards a peasant household/transmission note, actual return information is imported by the expert, need manual intervention, so on the one hand may be because expert self former thereby timely return information, on the other hand owing to need artificial input return information, the information that unavoidable appearance is replied is comprehensive and accurate inadequately, has also reduced the speed of replying agricultural short message simultaneously.
Summary of the invention
The purpose of this invention is to provide a kind of agricultural information enquiry method and system based on SMS platform, by automatic check and analysis agricultural short message, carry out the comparatively short message mode answer of intelligence, whole process need not manual intervention, has improved the processing speed of replying agricultural short message.
For achieving the above object, the present invention adopts following technical scheme:
A kind of agricultural information enquiry method based on SMS platform, this method may further comprise the steps:
S101, the Agricultural Information database of the matching condition that the foundation storage is set, the Query Result corresponding with the matching condition of setting;
S102 receives the note that peasant household sends by SMS platform, and it is kept in the note data storehouse;
S103 extracts a note of not replying automatically from described note data storehouse;
S104 mates the content of extraction note and the matching condition of described setting, if the match is successful, then the contents extraction that will be complementary is a keyword;
S105, the retrieval Query Result corresponding in the Agricultural Information database with described keyword;
S106 replys the Query Result that retrieves the peasant household of this note correspondence with short message mode;
S107, the note of this note of sign in described note data storehouse for having replied.
Wherein, the step of a note of not replying of extraction is as follows automatically among the step s103:
Timer is set, by setting-up time poll note data storehouse, described timer interval;
If there is the note of not replying in described note data storehouse, then extract this not answer short message.
Wherein, if when the described note data storehouse note of not replying has some, extract a note of not replying according to the time that receives.
Wherein, the note in the described note data storehouse records different answer sign flag, and timer judges whether the not note of answer by the flag of note in the poll note data storehouse.
Wherein, described setting-up time is 1s.
Wherein, the matching condition of described setting, the Query Result corresponding with the matching condition of setting constitute some Agricultural Information, and the matching condition of the setting of all bar Agricultural Information is loaded in the different arrays according to type.
Wherein, the content of extraction note and the matching condition coupling of setting are comprised step:
The matching condition of the content of extraction note and setting respectively as target string that mates and substring;
If there is this substring in the target string, then the match is successful, and this substring is extracted as keyword.
Wherein, carry out s103~s107 by the service routine that starts automatic check and analysis agricultural short message, described service routine moves automatically with the form of Windows system loads service.
The present invention also provides a kind of Agricultural Information inquiry system based on SMS platform, and this system comprises:
The note receiving element is used for receiving the note that peasant household sends by SMS platform;
The note data storehouse is used to store the note that peasant household that the note receiving element receives sends;
The Agricultural Information database, be used to store setting matching condition, with the corresponding Query Result of setting of matching condition;
The note detecting unit, a not answer short message is extracted in poll note data storehouse at every turn at interval;
The note analytic unit mates the content of extraction note and the matching condition of described setting, if the match is successful, then the contents extraction that will be complementary is a keyword, the retrieval Query Result corresponding with described keyword in the Agricultural Information database;
The Query Result that retrieves is replied the peasant household of this note correspondence in the message reply unit with short message mode;
Updating block is used for upgrading the sign of whether having replied of this note of note data storehouse.
Utilize the present invention to carry out the Agricultural Information inquiry, have beneficial effect compared to existing technology:
1) owing to be primarily aimed at the application of agriculture field, effectively solved the problem that exists in agricultural technology spread of current rural area and the technological diffusion, provide Agricultural Information and expert consulting service professional, authoritative, practical, tracking mode to agricultural user;
2) its be applicable to that various agricultural trades are wholesale, retail market, agricultural technology extension, have simple to operately, characteristics such as response speed is fast can realize the agricultural product on the various markets are inquired about quotation in real time, services such as disease and pest consulting are to satisfy the needs of civilian or scientific research.
Description of drawings
Fig. 1 is the agricultural information enquiry method flow chart that the present invention is based on SMS platform;
Fig. 2 is the Agricultural Information inquiry system block diagram that the present invention is based on SMS platform.
Embodiment
Agricultural information enquiry method and system based on SMS platform that the present invention proposes are described as follows in conjunction with the accompanying drawings and embodiments.
Present embodiment is based on the agricultural information enquiry method and the system of SMS platform, same as the prior art is, receive the note that peasant household sends by SMS platform, and it is kept in the note data storehouse, peasant household realizes the Agricultural Information inquiry with the short message mode answer, and different is the method that adopts automatic check and analysis note, according to the important keyword in the short message content that extracts peasant household's transmission, inquiry Agricultural Information database carries out the comparatively short message mode answer short message of intelligence then.
Be illustrated in figure 1 as the Agricultural Information inquiry system based on SMS platform provided by the invention, this system comprises: the note receiving element is used for receiving the note that peasant household sends by SMS platform; Note data storehouse (TAB_Receive_SMS) is used to store the note that peasant household that the note receiving element receives sends; The Agricultural Information database, be used to store setting matching condition, with the corresponding Query Result of setting of matching condition., the matching condition of setting, the Query Result corresponding with the matching condition of setting constitute some Agricultural Information, the matching condition of utilizing the matching condition storage of array to set in this Agricultural Information database; The note detecting unit, a not answer short message is extracted in poll note data storehouse at every turn at interval, and the note detecting unit is provided with timer in this system, comes the time of control interval poll according to timer; The note analytic unit mates the content of extraction note and the matching condition of setting, if the match is successful, then the contents extraction that will be complementary is a keyword, the retrieval Query Result corresponding with keyword in the Agricultural Information database; The Query Result that retrieves is replied the peasant household of this note correspondence in the message reply unit with short message mode; Updating block is used for upgrading the sign of whether having replied of this note of note data storehouse.This system also comprises the transmission result database (TAB_Send_SMS) of intermediateness in the present embodiment.
Agricultural information enquiry method based on SMS platform of the present invention comprises: step s201, the Agricultural Information database of the matching condition that the foundation storage is set, the Query Result corresponding with the matching condition of setting; Execution in step s202 receives the note that peasant household sends by SMS platform then, and it is kept in the note data storehouse; Step s203, the short message enquiry database judges whether the not note of answer, if having, execution in step s204 if do not have, continues the polling data storehouse; Step s204 extracts a note of not replying automatically from the note data storehouse; S205 mates the content of extraction note and the matching condition of setting, and s206 judges whether that the match is successful, if the match is successful, and execution in step s207, if it fails to match, execution in step s212; Step s207, the contents extraction that will be complementary is a keyword, the retrieval Query Result corresponding with keyword in the Agricultural Information database; S208 judges whether to exist Query Result, if there is Query Result, execution in step s209 is not if exist execution in step s212; S209 replys the Query Result that retrieves the peasant household of this note correspondence with short message mode; S210, the note of this note of sign in the note data storehouse for having replied; S211 returns success the result to sending result database (TAB_Send_SMS); S212 returns failure result to sending result database (TAB_Send_SMS).
Present embodiment is that example is specifically introduced with the note to the inquiry agricultural product real-time price quotations on the various markets, specifically comprises step:
(1) matching condition " variety name " and " the wholesale market title " that storage is set in the Agricultural Information database in advance reaches and the corresponding Query Result of setting " quotation " of matching condition;
(2) condition field " variety name " and " the wholesale market title " of the matching condition of extraction setting are loaded among matching condition array keywords1 and the keywords2, as concrete matching condition;
(3) the service routine AgriculturalSMS of the automatic check and analysis agricultural short message of startup, the service routine AgriculturalSMS here moves automatically with the form of Windows system loads service, come poll note data storehouse (TAB_Receive_SMS) every 1s, inquire about the agricultural short message whether new not analyzing and processing is arranged;
(4) then extract a not agricultural short message of analyzing and processing automatically as if having, i.e. answer sign flag is 0 agricultural short message;
(5) short message content that extracts note is deposited among the coupling target variable dxtarget;
(6) the above-mentioned coupling target variable dxtarget value that obtains as " how many prices of the Chinese cabbage of Xinfadi is? " respectively with matching condition array keywords 1 and matching condition array keywords2 in the matching condition keyword mate, if the match is successful then extracts this keyword, deposit variable keywd and keywd2 in;
(7) keyword keywd that above-mentioned steps is extracted and keywd2 retrieve as matching condition in the Agricultural Information database of having set up as querying condition, obtain the Query Result corresponding with matching condition, and Query Result is deposited among the variable dx;
(8) variable dx value that will obtain above and short message content and the cell-phone number of (4) cell-phone number middle agricultural short message that extracts and corresponding as answer short message;
(9) identifying this note and be the agricultural short message of analyzing and processing, is 1 replying sign flag assignment promptly.
Further, note in the note data storehouse records different answer sign flag, timer judges whether the not note of analyzing and processing by the flag of note in the poll note data storehouse, and the step of the agricultural short message of analyzing and processing is not as follows automatically to extract one in the step (4):
A) set a timer time1, by timer time1 answer sign flag in the note record in 1s poll note data storehouse;
B) to reply sign flag be 0 note if having, and then extracts this agricultural short message.
Set a timer time1 in the step a), every 1s polling data storehouse, be meant: set a timer time1, and the Elapse property value that time1 is set is 1000ms, its meaning is: every 1s, then re-execute the service routine that note is handled in automatic check and analysis.
Further, matching condition array keywords1 in the step (2) and matching condition array keywords2, be meant: when starting the service routine of automatic check and analysis agricultural short message for the first time, extract the agricultural product title of setting and all records of wholesale market title, be loaded among matching condition array keywords1 and the matching condition array keywords2, as matching condition 1 and matching condition 2, i.e. when setting up the Agricultural Information database by the system manager, the foundation of matching condition sets.
Further, the coupling step of target variable value dxtarget and matching condition keyword is as follows in the step (6):
A) target variable value dxtarget respectively with condition keyword sets keywords1, keywords2 in record as target string and the substring of function indexof ().Acting as of function indexof () wherein: if there is substring in the target string, then return the index value of this substring in target string, otherwise then return-1;
B) if there is this substring in the target string, then the match is successful, extracts this keyword, deposits variable keywd and keywd2 in, on the contrary then with condition keyword sets keywords in next bar record mate, finish up to all record couplings.
Above execution mode only is used to illustrate the present invention; and be not limitation of the present invention; the those of ordinary skill in relevant technologies field; under the situation that does not break away from the spirit and scope of the present invention; can also make various variations and modification; therefore all technical schemes that are equal to also belong to category of the present invention, and scope of patent protection of the present invention should be defined by the claims.

Claims (9)

1, a kind of agricultural information enquiry method based on SMS platform is characterized in that, this method may further comprise the steps:
S101, the Agricultural Information database of the matching condition that the foundation storage is set, the Query Result corresponding with the matching condition of setting;
S102 receives the note that peasant household sends by SMS platform, and it is kept in the note data storehouse;
S103 extracts a note of not replying automatically from described note data storehouse;
S104 mates the content of extraction note and the matching condition of described setting, if the match is successful, then the contents extraction that will be complementary is a keyword;
S105, the retrieval Query Result corresponding in the Agricultural Information database with described keyword;
S106 replys the Query Result that retrieves the peasant household of this note correspondence with short message mode;
S107, the note of this note of sign in described note data storehouse for having replied.
2, the agricultural information enquiry method based on SMS platform as claimed in claim 1 is characterized in that, the step of extracting a note of not replying among the step s103 automatically is as follows:
Timer is set, by setting-up time poll note data storehouse, described timer interval;
If there is the note of not replying in described note data storehouse, then extract this not answer short message.
3, the agricultural information enquiry method based on SMS platform as claimed in claim 2 is characterized in that, if when the described note data storehouse note of not replying has some, extracts a note of not replying according to the time that receives.
4, the agricultural information enquiry method based on SMS platform as claimed in claim 2, it is characterized in that, note in the described note data storehouse records different answer sign flag, and timer judges whether the not note of answer by the flag of note in the poll note data storehouse.
5, the agricultural information enquiry method based on SMS platform as claimed in claim 2 is characterized in that, described setting-up time is 1s.
6, the agricultural information enquiry method based on SMS platform as claimed in claim 1, it is characterized in that, the matching condition of described setting, the Query Result corresponding with the matching condition of setting constitute some Agricultural Information, and the matching condition of the setting of all bar Agricultural Information is loaded in the different arrays according to type.
7, the agricultural information enquiry method based on SMS platform as claimed in claim 1 is characterized in that, the content of extraction note and the matching condition coupling of setting are comprised step:
The matching condition of the content of extraction note and setting respectively as target string that mates and substring;
If there is this substring in the target string, then the match is successful, and this substring is extracted as keyword.
8, the agricultural information enquiry method based on SMS platform as claimed in claim 1, it is characterized in that, carry out s103~s107 by the service routine that starts automatic check and analysis agricultural short message, described service routine moves automatically with the form of Windows system loads service.
9, a kind of Agricultural Information inquiry system based on SMS platform is characterized in that this system comprises:
The note receiving element is used for receiving the note that peasant household sends by SMS platform;
The note data storehouse is used to store the note that peasant household that the note receiving element receives sends;
The Agricultural Information database, be used to store setting matching condition, with the corresponding Query Result of setting of matching condition;
The note detecting unit, a not answer short message is extracted in poll note data storehouse at every turn at interval;
The note analytic unit mates the content of extraction note and the matching condition of described setting, if the match is successful, then the contents extraction that will be complementary is a keyword, the retrieval Query Result corresponding with described keyword in the Agricultural Information database;
The Query Result that retrieves is replied the peasant household of this note correspondence in the message reply unit with short message mode;
Updating block is used for upgrading the sign of whether having replied of this note of note data storehouse.
CNA2008102260027A 2008-11-03 2008-11-03 Agricultural information enquiry method and system based on short message platform Pending CN101394608A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2008102260027A CN101394608A (en) 2008-11-03 2008-11-03 Agricultural information enquiry method and system based on short message platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2008102260027A CN101394608A (en) 2008-11-03 2008-11-03 Agricultural information enquiry method and system based on short message platform

Publications (1)

Publication Number Publication Date
CN101394608A true CN101394608A (en) 2009-03-25

Family

ID=40494632

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2008102260027A Pending CN101394608A (en) 2008-11-03 2008-11-03 Agricultural information enquiry method and system based on short message platform

Country Status (1)

Country Link
CN (1) CN101394608A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101778176A (en) * 2010-03-17 2010-07-14 惠州Tcl移动通信有限公司 Operation management method of short messages of mobile phones
CN101894345A (en) * 2010-07-06 2010-11-24 江苏省农业科学院 Product source tracing method based on short message service
CN101902710A (en) * 2010-08-02 2010-12-01 福州星网视易信息系统有限公司 GSM Modem-based short message sending system
CN102075886A (en) * 2010-12-15 2011-05-25 百度在线网络技术(北京)有限公司 Question-and-answer method and system based on short message
CN103200550A (en) * 2013-04-26 2013-07-10 上海华勤通讯技术有限公司 Mobile terminal and method for replaying messages automatically
CN104915189A (en) * 2014-03-14 2015-09-16 威盛电子股份有限公司 Customer service setting device and method and corresponding customer service system and method
CN105893501A (en) * 2016-03-30 2016-08-24 中国联合网络通信集团有限公司 Information inquiry short-message processing method and system
CN106961513A (en) * 2016-01-12 2017-07-18 深圳中兴力维技术有限公司 The auxiliary answering method and device of short message
WO2017173633A1 (en) * 2016-04-07 2017-10-12 汤美 Smart reply method and system for education project
CN110309288A (en) * 2019-07-09 2019-10-08 中国联合网络通信集团有限公司 SMS query method, apparatus, equipment and computer readable storage medium
CN113657867A (en) * 2021-08-27 2021-11-16 广东智源机器人科技有限公司 Automatic reply control method, device, electronic equipment and storage medium

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101778176A (en) * 2010-03-17 2010-07-14 惠州Tcl移动通信有限公司 Operation management method of short messages of mobile phones
CN101894345A (en) * 2010-07-06 2010-11-24 江苏省农业科学院 Product source tracing method based on short message service
CN101902710A (en) * 2010-08-02 2010-12-01 福州星网视易信息系统有限公司 GSM Modem-based short message sending system
CN102075886A (en) * 2010-12-15 2011-05-25 百度在线网络技术(北京)有限公司 Question-and-answer method and system based on short message
CN102075886B (en) * 2010-12-15 2014-03-12 百度在线网络技术(北京)有限公司 Question-and-answer method and system based on short message
CN103200550B (en) * 2013-04-26 2015-12-23 上海华勤通讯技术有限公司 Mobile terminal and the method answered short message automatically thereof
CN103200550A (en) * 2013-04-26 2013-07-10 上海华勤通讯技术有限公司 Mobile terminal and method for replaying messages automatically
CN104915189A (en) * 2014-03-14 2015-09-16 威盛电子股份有限公司 Customer service setting device and method and corresponding customer service system and method
CN104915189B (en) * 2014-03-14 2018-03-09 威盛电子股份有限公司 Customer service sets device and method, and the customer service system and method for correspondence
CN106961513A (en) * 2016-01-12 2017-07-18 深圳中兴力维技术有限公司 The auxiliary answering method and device of short message
CN105893501A (en) * 2016-03-30 2016-08-24 中国联合网络通信集团有限公司 Information inquiry short-message processing method and system
WO2017173633A1 (en) * 2016-04-07 2017-10-12 汤美 Smart reply method and system for education project
CN110309288A (en) * 2019-07-09 2019-10-08 中国联合网络通信集团有限公司 SMS query method, apparatus, equipment and computer readable storage medium
CN113657867A (en) * 2021-08-27 2021-11-16 广东智源机器人科技有限公司 Automatic reply control method, device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN101394608A (en) Agricultural information enquiry method and system based on short message platform
CN101957857B (en) Automatic information push method and server
US20140099930A1 (en) Contact information synchronization system and method
EP3316586A1 (en) Information pushing method and device
CN100571423C (en) Group sending system and method based on search engine
CN101202966B (en) Method, system and apparatus for collecting user information
CN104113466A (en) Harassing phone call identification method, client, server and system
CN112311612B (en) Information construction method and device and storage medium
CN106484737A (en) A kind of network social intercourse method and network social intercourse device
CN103279468A (en) System and method for identifying transient friends
CN103345521A (en) Method and device for processing key values in hash table database
CN104410700A (en) Method for issuing crank call list as well as crank call interception method and system
CN109104701B (en) Information sending method based on equipment identification code and server
CN111131493B (en) Data acquisition method and device and user portrait generation method and device
CN102833817A (en) Network access method and system based on home gateway and home gateway
CN105577950A (en) System, apparatus and method of providing phone call route information
EP2862338A1 (en) Method, server, and client for pushing and displaying splash screen
CN102057376B (en) Method for carrying out a distributed search
KR101665692B1 (en) Method and system for providing social network service coupled phone book in portable terminal
CN102438205A (en) Method and system for pushing service based on action of mobile user
CN104796495A (en) Message pushing method and system
CN102938121A (en) Method and device for releasing commodity information
CN101365190A (en) Search matching method and apparatus for customer mobile phone information string of mobile phone terminal
CN102402513B (en) A kind of software home page management method, Apparatus and system
CN104301490A (en) Method for associating communication object with record and smart mobile terminal

Legal Events

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

Application publication date: 20090325