CN103916230A - Sensor identification method, host computer, sensor and sensor identification system - Google Patents

Sensor identification method, host computer, sensor and sensor identification system Download PDF

Info

Publication number
CN103916230A
CN103916230A CN201210593313.3A CN201210593313A CN103916230A CN 103916230 A CN103916230 A CN 103916230A CN 201210593313 A CN201210593313 A CN 201210593313A CN 103916230 A CN103916230 A CN 103916230A
Authority
CN
China
Prior art keywords
transducer
access
sensor
connection request
identification
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
CN201210593313.3A
Other languages
Chinese (zh)
Inventor
徐亮
郑辑杰
李虹
庞银生
傅剑
姚国祥
张莹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Group Guangdong Co Ltd
Original Assignee
China Mobile Group Guangdong Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Group Guangdong Co Ltd filed Critical China Mobile Group Guangdong Co Ltd
Priority to CN201210593313.3A priority Critical patent/CN103916230A/en
Publication of CN103916230A publication Critical patent/CN103916230A/en
Pending legal-status Critical Current

Links

Landscapes

  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

The invention provides a sensor identification method, a host computer, a sensor and a sensor identification system. A connection request is received, and the connection request is sent when a sensor is accessed and comprises the identification information of the sensor; and identification verification is carried out on the sensor, and based on an identification verification result, whether the sensor is successfully accessed is determined, so that the plug-and-play of the sensor is realized, and the advantages include quite good accuracy, rapid response speed and quite high reliability.

Description

Identification method of sensor, host computer, transducer and transducer recognition system
Technical field
The present invention relates to communication technique field, specifically can relate to a kind of 485 half-duplexs and connect intelligent sensor recognition methods, host computer, transducer and transducer recognition system.
Background technology
In existing commercial Application, there are a large amount of 485 semiduplex communication patterns that adopt, adopt 485 half-duplexs can support that 1000 meters with the interior serial communication that has quality assurance, to realize the connection of low-cost and high-quality.But 485 semiduplex application generally can not articulate a lot of external equipment (as transducer), how to accomplish to find within a short period of time the access of transducer and extract and communicate the technical barrier that becomes 485 half duplex mode of communication, and be articulated in the transducer in bus, the identification signal that generally all there is no the access on hardware-level or pull out.
The processing method that existing access detects is by serial ports poll, constantly seeks and visits and whether has new transducer access, has and just communicates trial, does not continue poll again.After transducer access, passive wait host computer contacts, and only has host computer to find, after new equipment certification access, can be linked into serial bus.
Existing processing method of extracting detection is regular from all sensor readings, if certain transducer does not return, after waiting for a period of time, reattempts this transducer of contact.Entered the communication of determining number of times, determined without returning, just judged that this transducer had departed from bus.
Therefore there is following problem in existing access and the processing method of extracting detection:
(1), serial process, the stand-by period is longer.The processing of transducer access, need to wait for that next polling cycle starts, and also needs the rankings to be polled such as ranking.The processing of extracting is similar, also needs to carry out the processing of multiple polling cycles.
(2), data and control stream is regardless of, exploitation difficulty.The identification of transducer, to upgrade, restart etc. be to belong to control command, that the operating state of transducer is processed, and connection and reading are data flow, be attribute or the operational data of read sensor, both do not distinguish, when reading is abnormal, also to consider whether can lose suddenly transducer, after transducer is extracted, several times reading, see if there is return value, whole process all judges control by data, and the accuracy of judgement is poor.
(3), bus service efficiency is low.The active process of host computer is all waited in all operations, and the time that bus is waited for is more, when programming imperfection or when there is new scene, host computer cannot be processed, system there will be unstable or seemingly-dead phenomenon, causes bus efficiency low, and customer experience is poor.
Summary of the invention
The invention provides a kind of identification method of sensor, host computer, transducer and transducer recognition system, there is plug and play, accuracy is better, reaction speed is fast feature.
The invention provides scheme as follows:
The embodiment of the present invention provides a kind of identification method of sensor, comprising:
Receive a connection request, described connection request, is in the time that transducer accesses, and is sent by transducer, and described connection request comprises a sensor identification information;
Based on described connection request, described transducer is identified to checking, and based on identification the result, determine that whether described transducer access is successful.
Preferably, described based on described connection request, described transducer is identified to checking, and based on identification the result, determine whether described transducer access successfully comprises:
Judge that whether the sensor identification information that described connection request comprises is effective, obtain the first judged result;
If described the first judged result is that described sensor identification information is effective, determine that described transducer access is for effectively access, no person determines that described transducer access is invalid access.
Preferably, described based on described connection request, described transducer is identified to checking, and based on identification the result, determine whether described transducer access successfully also comprises:
Described the first judged result be described sensor identification information effectively after, send and read attribute request to described transducer;
Read based on described the attribute information that attribute request is returned according to described transducer, judge whether to identify described transducer, obtain the second judged result;
If described the second judged result for can identify described transducer, determines that described transducer access is for effectively access, no person determines that described transducer access is invalid access.
Preferably, described based on described connection request, described transducer is identified to checking, and based on identification the result, determine whether described transducer access successfully also comprises:
After determining that described transducer access is for effective access, send confirmation to described transducer;
The connectivity verification information of returning based on described confirmation according to described transducer, determines that whether described transducer access is successful.
Preferably, described method also comprises after definite described transducer accesses successfully:
Described transducer is joined in current monitored transducer array;
Send pilot signal by the first Preset Time interval to the transducer in transducer array, whether described pilot signal is present in described transducer array for monitoring sensor.
Preferably, described method also comprises:
By the numerical value of each transducer in the second Preset Time interval poll transducer array, and record transducer polled time each time.
Preferably, described method also comprises:
If the difference between the last polled time of current time in system and transducer, while being greater than default failure threshold, judges described sensor failure.
Preferably, described method also comprises:
If do not receive the described pilot signal that transducer returns in the 3rd Preset Time interval, and/or judge described sensor failure, judge that described transducer is pulled out;
Transferred to signal by transfering to transducer to remove and send transducer from current monitored transducer array.
Preferably, described method also comprises:
The numerical value of the transducer obtaining when poll during higher than default alarm threshold, starts alarm thread.
Preferably, described startup alarm thread comprises:
According to alarm grade and alarm setting, trigger corresponding alarm action.
The embodiment of the present invention also provides a kind of host computer, it is characterized in that, comprising:
Receiver module, for receiving a connection request, described connection request, is in the time that transducer accesses, and is sent by transducer, described connection request comprises a sensor identification information;
Identification authentication module, for based on described connection request, identifies checking to described transducer, and based on identification the result, determines that whether described transducer access is successful.
Preferably, described identification authentication module comprises:
The first judging unit, whether effective for judging the sensor identification information that described connection request comprises;
Determining unit, in the time that described the first judging unit judges that described sensor identification information is effective, determines that described transducer access is for effectively access, and no person determines that described transducer access is invalid access.
Preferably, described identification authentication module also comprises:
Transmitting element, in the time that described the first judging unit judges that described sensor identification information is effective, sends and reads attribute request to described transducer;
The second judging unit, for reading based on described the attribute information that attribute request is returned according to described transducer, judges whether to identify described transducer;
Described determination module also, in the time that described the second judging unit judgement can be identified described transducer, determines that described transducer access is for effectively access, and no person determines that described transducer access is invalid access.
Preferably, described transmitting element is also for determining that at described determination module described transducer accesses when effective, sends confirmation to described transducer;
Described determining unit, the also connectivity verification information for returning based on described confirmation based on described transducer, determines whether described transducer connects successful.
Preferably, described host computer also comprises:
Add module, after determining that at described identification authentication module described transducer accesses successfully, described transducer is joined in current monitored transducer array;
Monitoring module, for sending pilot signal by the first Preset Time interval to the transducer of transducer array, whether described pilot signal is present in described transducer array for monitoring sensor.
Preferably, described host computer also comprises:
Poll module, for by the numerical value of the each transducer of the second Preset Time interval poll transducer array, and records transducer polled time each time.
Preferably, described host computer also comprises:
Inefficacy judge module, if for the difference between current time in system and last polled time of transducer, while being greater than default failure threshold, judge described sensor failure.
Preferably, described host computer also comprises:
Transfer to judge module, if for do not receive the described pilot signal that transducer returns in the 3rd Preset Time interval, and/or described inefficacy judge module judges described sensor failure, judges that described transducer is pulled out;
Transfer to processing module, for being transferred to signal by transfering to transducer to remove and send transducer from current monitored transducer array.
Preferably, described host computer also comprises:
Alarm module, during higher than default alarm threshold, starts alarm thread for the numerical value of the transducer that obtains when poll module.
The embodiment of the present invention also provides a kind of transducer, comprising:
Sending module, in the time that transducer accesses, sends connection request, based on described connection request, described transducer is identified to checking for host computer, and based on identification the result, determine whether described transducer access is effective, and described connection request comprises a sensor identification information.
Preferably, described sending module also, in the time that described host computer is verified described transducer identification, sends at least one in attribute sensor information and connectivity verification information.
The embodiment of the present invention also provides a kind of transducer recognition system, comprises transducer and host computer, wherein:
Transducer, in the time that transducer accesses, sends connection request, and described connection request comprises a sensor identification information;
Host computer, the connection request sending for receiving described transducer, and based on described connection request, described transducer is identified to checking, and based on identification the result, determine that whether described transducer access is successful.
Can find out from the above, identification method of sensor, host computer, transducer and transducer recognition system that the embodiment of the present invention provides, by receiving connection request, this connection request is identification information that send and that include this transducer while being transducer access, this transducer is identified to checking, and based on identification the result, determine that whether described transducer access is successful, thereby realize the plug and play of transducer, have the advantages that accuracy is better, reaction speed is fast.And there is higher reliability.
Brief description of the drawings
The schematic flow sheet one of the identification method of sensor that Fig. 1 provides for the embodiment of the present invention;
Transducer identification proof procedure schematic diagram in the identification method of sensor that Fig. 2 provides for the embodiment of the present invention;
The schematic flow sheet two of the identification method of sensor that Fig. 3 provides for the embodiment of the present invention;
The transducer recognition system structural representation that Fig. 4 provides for the embodiment of the present invention;
The host computer structural representation that Fig. 5 provides for the embodiment of the present invention.
Embodiment
The embodiment of the present invention provides a kind of identification method of sensor, as shown in Figure 1, comprising:
Step 11, receives a connection request, and described connection request, is in the time that transducer accesses, and is sent by transducer, and described connection request comprises a sensor identification information;
Step 12, based on described connection request, identifies checking to described transducer, and based on identification the result, determines that whether described transducer access is successful.
The identification method of sensor that the embodiment of the present invention provides, can realize the plug and play of transducer, has higher reliability.
In the technical scheme that the embodiment of the present invention provides, adopt interrupt mode to realize host computer to transducer access processing, mainly comprise two parts content, first is that transducer is articulated to after 485 buses, can initiatively send information, second is that bus can receive and process access request in time, is difficult to communication otherwise bus will data collision occur.By realizing the mode of plug and play, make transducer access just can be found and apply by host computer, change master-slave mode into two master modes, change serial mode into interrupt mode.
The interrupt mode that the embodiment of the present invention is related, specifically refers to that transducer initiatively initiates a message, and interrupts the pre-treatment of working as of host computer, and host computer suspends other work, with sensor communication, is included in system, then recovers to continue previous work.
485 buses are communication buss of asynchronous half-duplex, in some moment, bus only may present a kind of state, generally be applicable to the inquiry mode communication of main frame to extension set, in bus, must have one all the time the equipment in main frame status patrolling and examining other extension set, coordinate the time sharing shared of bus by formulating rational communication protocol.Communication data in 485 buses is that framing becomes bag to send, and every bag data are all made up of parts such as guidance code, length code, address code, command code, content, check codes.Wherein guidance code is the seeker for synchronous each bag data; Length code is the total length of these bag data; Command code is the control command of main frame to extension set (or extension set is replied main frame); Address code is the machine address number of extension set; " content " is the various information in these bag data; Check code is the check mark of these bag data, can adopt the different modes such as parity check.
In this embodiment, in the time of a new transducer access, this transducer is master port, constantly sends access request, until host computer has been made and having been replied.
Host computer is replied after access transducer, and except the transducer of first access, other port just becomes again from port from master port, switches the master-slave mode communication of passback system.
In an alternate embodiment of the present invention, described based on described connection request, described transducer is identified to checking, and based on identification the result, determine whether successful process specifically can also comprise in described transducer access:
Judge that whether the sensor identification information that described connection request comprises is effective, obtain the first judged result;
If described the first judged result is that described sensor identification information is effective, determine that described transducer accesses as effectively access, no person determines that described transducer access is that invalid access is transducer access failure.
In an alternate embodiment of the present invention, described based on described connection request, described transducer is identified to checking, and based on identification the result, determine that the whether successful process of described transducer access specifically can also comprise:
Described the first judged result be described sensor identification information effectively after, send and read attribute request to described transducer;
Read based on described the attribute information that attribute request is returned according to described transducer, judge whether to identify described transducer, obtain the second judged result;
If described the second judged result for can identify described transducer, determines that described transducer access is for effectively access, no person determines that described transducer access is invalid access.
In an alternate embodiment of the present invention, described based on described connection request, described transducer is identified to checking, and based on identification the result, determine whether successful process specifically can also comprise in described transducer access:
After determining that described transducer access is for effective access, send confirmation to described transducer;
The connectivity verification information of returning based on described confirmation according to described transducer, determines that whether described transducer access is successful.
In the present invention's one specific embodiment, also can realize by flow process as shown in Figure 2 the identification proof procedure of transducer, comprising:
Step 21, transducer sends connection request, the sensor identification information that described connection request carries;
Step 22, host computer is received connection request, when the sensor identification information of carrying when described connection request is effective, sends and reads attribute request;
Step 23, transducer is read attribute request according to the transmission receiving, and sends attribute sensor information;
Step 24, host computer judges whether to identify corresponding transducer according to the attribute sensor information receiving, if can identify, sends confirmation;
Step 25, transducer, according to the confirmation receiving, sends connectivity verification;
Step 26, host computer is determined corresponding transducer successful connection according to the connectivity verification receiving.
Pass through the mutual of the sensor and host computer, host computer can identification sensor and has been called the corresponding function of transducer, but in the time calling the corresponding function of transducer, also need state and reading to transducer to manage, concrete by controlling streamline journey and the realization of data flow thread.
The corresponding streamline journey of controlling specifically can comprise: monitoring thread and inefficacy thread.
Corresponding data flow thread specifically can comprise: reading thread and alarm thread.
In the embodiment of the present invention, access identification, the data that can realize transducer by controlling streamline journey and data flow thread read, alarming processing and extract identification, to complete the core processing flow process of whole monitor procedure.The wherein common semaphore (current monitored transducer array) of safeguarding of monitoring thread, reading thread and failure detection thread.
Monitoring thread involved in the present invention, specifically can be understood as the real-time policer operation of taking accessing successful transducer, and this policer operation can be for confirming whether transducer dial-out event occurs.
So, in an alternate embodiment of the present invention, after host computer determines that transducer accesses successfully, specifically can also comprise following treatment step:
Described transducer is joined in current monitored transducer array;
Send pilot signal by the first Preset Time interval to the transducer in transducer array, whether described pilot signal is present in described transducer array for monitoring sensor.
In order to ensure finding as early as possible whether transducer dial-out event occurs, it is smaller that the first related Preset Time interval of the embodiment of the present invention can arrange, and for example 0.1 second etc., the transmission frequency of pilot signal can be 0.1 second etc.To determine in time whether the transducer in transducer array is also present in transducer array, and whether transducer dial-out event occurs.
Here it should be noted that, the related transducer of the embodiment of the present invention is receiving after above-mentioned pilot signal, can directly return to this pilot signal, so that whether host computer confirmation of receipt transducer is also present in transducer array.
In addition, when host computer is in the 3rd Preset Time interval, do not receive the pilot signal that transducer returns, can determine transducer generation dial-out event, transducer is transferred to.And the 3rd default time interval can be a bit larger tham the first Preset Time interval, for example 0.3 second etc.
The reading thread that the embodiment of the present invention is related, specifically can be understood as the mutual process of host computer and transducer.
In an alternate embodiment of the present invention, after transducer adds transducer array to be the monitoring of transducer in monitoring thread, specifically can also comprise following treatment step:
By the numerical value of each transducer in the second Preset Time interval poll transducer array, and record transducer polled time each time.
Concrete, reading thread can be by the default time interval (specifically can be greater than the transmission interval of pilot signal), the transducer in the current monitored transducer array of poll, send reading request, one next, each transducer interval can 1 second etc., and polling cycle specifically can be 15 seconds etc.
Be all the transducer of the non-frequent acute variation such as temperature, humidity due to what use at present, and for the transducer changing rapidly, can the cycle be set to several seconds.In the time of practical application, according to different sensor performances, the situations such as different maturity, the above time can configure, and realizes overall balance and user's good experience.
Reading thread is obtaining after the value of transducer, analyzes this value, carries out next step communication according to function code.
Can find out based on above description, in the identification method of sensor that the embodiment of the present invention provides, when the Startup time of reading thread is transducer and inserts, close moment is transducer while extracting.Reading thread reads each sensing data with the fixed cycle, if find that there is monitoring thread interrupt event, just stops reading, turns to the transducer interactive authentication newly adding, and includes transducer in network.If reading thread cannot read certain transducer, import information into inefficacy thread, this thread process Problem of Failure.After normal reading, information is given to alarm thread.Continue circulation reading, always operation.
Because electronic product may exist the situation such as rosin joint or loose contact, under this unfavorable condition, host computer may also cannot obtain the numerical value of transducer, or the pilot signal cannot receiving sensor returning.But bad in the situation that, there is not dial-out event in transducer in fact, therefore, introduced actual effect thread in the embodiment of the present invention this, for judging whether actual effect of transducer.
Concrete, actual effect thread can, by judging the difference between the last polled time of current time in system and transducer, whether be greater than default failure threshold, thereby whether determine sensor lose efficacy.
In the time of concrete application, failure threshold specifically can be 2 times of sensor reading polling cycle.
Because sensor failure also can be understood as transducer generation dial-out event, therefore, in the embodiment of the present invention, also can, based on judging whether transducer lost efficacy, judge whether transducer dial-out event occurs.
Visible, in the embodiment of the present invention, can be based on monitoring thread and inefficacy thread at least one in both, confirm in time whether transducer dial-out event occurs.
Be in an alternate embodiment of the present invention, specifically can also relate to following steps:
If do not receive the described pilot signal that transducer returns in the 3rd Preset Time interval, and/or judge described sensor failure, judge that transducer is pulled out.
In the embodiment of the present invention, after definite transducer has been pulled out, can also relate to following operation:
Transferred to signal by transfering to transducer to remove and send transducer from current monitored transducer array.
And alarm thread involved in the present invention, the numerical value that specifically refers to the transducer obtaining through poll when reading thread is during higher than default alarm threshold, and the alarm processing starting.
Starting after alarm thread, can arrange and trigger different alarms according to alarm level and alarm, comprising luminous, vibrations, sounding, note etc.
Meanwhile, in the embodiment of the present invention, can preserve alarm record etc. pending.
By adopting technique scheme, the mode that the embodiment of the present invention has proposed a kind of pair of master port solves transducer and initiatively sends the interrupt mode of request, changes from passive to active, for Sensor Network optimization proposes new thinking; Propose interrupt mode and communicate, only have interrupt mode could realize the processing based on event, could realize the parallel processing from serial process to timesharing, just had the possibility of new implementation method; Propose will control and data separate management, make the framework of system processing in order, the expansion of elevator system.Improve the speed of processing, also for the upgrade maintenance of follow-up system lays the foundation simultaneously.
Identification checking and a control procedure that realizes transducer of the identification method of sensor below, the embodiment of the present invention being provided is described in detail.
As shown in Figure 3, this process specifically can comprise:
Step 31, in the time that transducer accesses, transducer sends connection request, the sensor identification information that described connection request carries.
Step 32, host computer receives after connection request, judge that whether the sensor identification information that connection request carries is effective, if judged result be effectively, performs step 34, otherwise execution step 33, host computer determines that it is invalid access that transducer accesses.
Step 34, host computer sends and reads attribute request to transducer.
Step 35, transducer sends self attributes information to host computer.
The attribute sensor information that the embodiment of the present invention is related, specifically can comprise the attribute informations such as the producer, type, development time, version, unit of transducer.
Step 36, host computer judges whether can identification sensor attribute information, and when judged result is for can identify time, follow-up execution step 37, otherwise execution step 33, host computer determines that transducer access is invalid access.
Step 37, host computer sends confirmation to transducer.
Step 38, transducer, based on above-mentioned confirmation, returns to connectivity verification information to host computer.
Step 39, host computer, based on connectivity verification information, confirms that whether transducer access is successful.
If transducer accesses successfully, follow-up execution step 310, otherwise can perform step 33, host computer determines that transducer access is for invalid access, is equal to declaration transducer access identification.
Step 310, host computer joins the successful transducer of access in current monitored transducer array.
Step 311, host computer sends pilot signal according to the first Preset Time interval to the transducer in transducer array, to determine whether transducer dial-out event occurs.
Follow-up host computer can perform step respectively 312 and step 313.
Wherein, step 312, host computer judges in the second Preset Time interval whether receive the pilot signal that transducer returns, and when exceeding behind the second Preset Time interval, still do not receive the pilot signal that transducer returns, and performs step 316.
Step 313, host computer is by the numerical value of each transducer in the 3rd Preset Time interval poll transducer array, and records transducer polled time each time.
If the numerical value of the transducer that host computer poll obtains is during higher than default alarm threshold, execution step 314, starts alarm thread, and according to alarm grade and alarm setting, triggers corresponding alarm action.
If the difference between the last polled time of current time in system and transducer, while being greater than default failure threshold, execution step 315, determine sensor lost efficacy.
So, in the time producing trigger condition at least one in step 312 or 315, exceed behind the second Preset Time interval, still do not receive the pilot signal that transducer returns, and/or determine sensor lost efficacy, follow-uply perform step 316, determine that transducer has sent dial-out event, the transducer of being transferred to is removed and sent from current monitored transducer array transducer and transfer to signal.
The realization of the identification method of sensor that the invention described above embodiment provides, can realize the plug and play of transducer, has the advantages that accuracy is better, reaction speed is fast, and has higher reliability.Meanwhile, in the time that transducer is transferred to, can find in time dial-out event, for new transducer accesses the space that processing is provided.
The embodiment of the present invention also provides a kind of transducer recognition system, and as shown in Figure 4, this system specifically can comprise transducer 41 and host computer 42.Wherein:
Transducer 41, for when the access network, sends connection request, and described connection request comprises a sensor identification information.
Host computer 42, the connection request sending for receiving sensor 41, and based on described connection request, transducer 41 is identified to checking, and based on identification the result, determine whether transducer 41 accesses successful.
In the related transducer 41 of the embodiment of the present invention, specifically can comprise a sending module, in the time that transducer access for example adopts the network of 485 half duplex mode of communication, to the equipment in network side, for example host computer sends connection request.
In this connection request, specifically can comprise the information such as sensor identification.
In addition, included sending module in transducer 41, specifically can also be used for, at network side, transducer is identified to proof procedure, sends at least one in attribute sensor information, connectivity verification information.
And the related host computer 42 of the embodiment of the present invention as shown in Figure 5, specifically can comprise:
Receiver module 421, for receiving a connection request.
This concrete connection request can be in the time of transducer 41 access network, is sent by transducer 41, specifically can comprise the information such as sensor identification in described connection request.
Identification authentication module 422, for based on described connection request, identifies checking to transducer 41, and based on identification the result, determines whether transducer 41 accesses successful.
In an alternate embodiment of the present invention, identification authentication module 422 specifically can comprise:
The first judging unit, whether effective for judging the sensor identification information that connection request comprises;
Determining unit, when judging that at the first judging unit described sensor identification information is effective, determines that described transducer access is for effectively access, and no person determines that described transducer access is invalid access.
In an alternate embodiment of the present invention, identification authentication module 422 specifically can also comprise:
Transmitting element, in the time that the first judging unit judges that sensor identification information is effective, sends and reads attribute request to transducer;
The second judging unit, for according to stating the attribute information of transducer based on reading attribute request and returning, judges whether to identify described transducer;
Described determination module also, in the time that described the second judging unit judgement can be identified described transducer, determines that described transducer access is for effectively access, and no person determines that described transducer access is invalid access.
In an alternate embodiment of the present invention, transmitting element can also be used for determining that at determination module described transducer accesses when effective, sends confirmation to described transducer;
Described determining unit, the also connectivity verification information for returning based on described confirmation based on described transducer, determines whether described transducer connects successful.
In an alternate embodiment of the present invention, host computer 42 specifically can also comprise:
Add module, after determining that at described identification authentication module 422 described transducer accesses successfully, described transducer is joined in current monitored transducer array;
Monitoring module, for sending pilot signal by the first Preset Time interval to the transducer of transducer array, whether described pilot signal is present in described transducer array for monitoring sensor.
In an alternate embodiment of the present invention, host computer 42 specifically can also comprise:
Poll module, for by the numerical value of the each transducer of the second Preset Time interval poll transducer array, and records transducer polled time each time.
In an alternate embodiment of the present invention, host computer 42 specifically can also comprise:
Inefficacy judge module, if for the difference between current time in system and last polled time of transducer, while being greater than default failure threshold, judge described sensor failure.
In an alternate embodiment of the present invention, host computer 42 specifically can also comprise:
Transfer to judge module, if for do not receive the described pilot signal that transducer returns in the 3rd Preset Time interval, and/or described inefficacy judge module judges described sensor failure, judges that described transducer is pulled out;
Transfer to processing module, for being transferred to signal by transfering to transducer to remove and send transducer from current monitored transducer array.
In an alternate embodiment of the present invention, host computer 42 specifically can also comprise:
Alarm module, during higher than default alarm threshold, starts alarm thread for the numerical value of the transducer that obtains when poll module.
The identification method of sensor, the system that adopt the embodiment of the present invention to provide, and transducer and host computer, under 485 half duplex mode of communication, all transducers are all to adopt master port mode when access, be not in whole bus, to only have a master port, all the other are all from port; Transducer sends connection request, and host computer reads configuration, and transducer sends configuration, and host computer is confirmed configuration, and transducer is replied the five steps of confirming.Transducer enters and waits for the mode of reading afterwards, has reduced the taking of bus, and has realized a kind of method of the conversion from traditional sensors to intelligent sensor; Adopt multithreading to carry out identification and the management of transducer, control thread by access thread and two of inefficacy threads, two data threads of reading thread and alarm thread, realize the management of the harmonious orderly of whole process.
The above is only embodiments of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (22)

1. an identification method of sensor, is characterized in that, comprising:
Receive a connection request, described connection request, is in the time that transducer accesses, and is sent by transducer, and described connection request comprises a sensor identification information;
Based on described connection request, described transducer is identified to checking, and based on identification the result, determine that whether described transducer access is successful.
2. the method for claim 1, is characterized in that, described based on described connection request, and described transducer is identified to checking, and based on identification the result, determines whether described transducer access successfully comprises:
Judge that whether the sensor identification information that described connection request comprises is effective, obtain the first judged result;
If described the first judged result is that described sensor identification information is effective, determine that described transducer access is for effectively access, no person determines that described transducer access is invalid access.
3. method as claimed in claim 2, is characterized in that, described based on described connection request, and described transducer is identified to checking, and based on identification the result, determines whether described transducer access successfully also comprises:
Described the first judged result be described sensor identification information effectively after, send and read attribute request to described transducer;
Read based on described the attribute information that attribute request is returned according to described transducer, judge whether to identify described transducer, obtain the second judged result;
If described the second judged result for can identify described transducer, determines that described transducer access is for effectively access, no person determines that described transducer access is invalid access.
4. method as claimed in claim 2 or claim 3, is characterized in that, described based on described connection request, and described transducer is identified to checking, and based on identification the result, determines whether described transducer access successfully also comprises:
After determining that described transducer access is for effective access, send confirmation to described transducer;
The connectivity verification information of returning based on described confirmation according to described transducer, determines that whether described transducer access is successful.
5. the method for claim 1, is characterized in that, described method also comprises after definite described transducer accesses successfully:
Described transducer is joined in current monitored transducer array;
Send pilot signal by the first Preset Time interval to the transducer in transducer array, whether described pilot signal is present in described transducer array for monitoring sensor.
6. method as claimed in claim 5, is characterized in that, described method also comprises:
By the numerical value of each transducer in the second Preset Time interval poll transducer array, and record transducer polled time each time.
7. method as claimed in claim 6, is characterized in that, described method also comprises:
If the difference between the last polled time of current time in system and transducer, while being greater than default failure threshold, judges described sensor failure.
8. method as claimed in claim 7, is characterized in that, described method also comprises:
If do not receive the described pilot signal that transducer returns in the 3rd Preset Time interval, and/or judge described sensor failure, judge that described transducer is pulled out;
Transferred to signal by transfering to transducer to remove and send transducer from current monitored transducer array.
9. method as claimed in claim 6, is characterized in that, described method also comprises:
The numerical value of the transducer obtaining when poll during higher than default alarm threshold, starts alarm thread.
10. method as claimed in claim 9, is characterized in that, described startup alarm thread comprises:
According to alarm grade and alarm setting, trigger corresponding alarm action.
11. 1 kinds of host computers, is characterized in that, comprising:
Receiver module, for receiving a connection request, described connection request, is in the time that transducer accesses, and is sent by transducer, described connection request comprises a sensor identification information;
Identification authentication module, for based on described connection request, identifies checking to described transducer, and based on identification the result, determines that whether described transducer access is successful.
12. host computers as claimed in claim 11, is characterized in that, described identification authentication module comprises:
The first judging unit, whether effective for judging the sensor identification information that described connection request comprises;
Determining unit, in the time that described the first judging unit judges that described sensor identification information is effective, determines that described transducer access is for effectively access, and no person determines that described transducer access is invalid access.
13. host computers as claimed in claim 12, is characterized in that, described identification authentication module also comprises:
Transmitting element, in the time that described the first judging unit judges that described sensor identification information is effective, sends and reads attribute request to described transducer;
The second judging unit, for reading based on described the attribute information that attribute request is returned according to described transducer, judges whether to identify described transducer;
Described determination module also, in the time that described the second judging unit judgement can be identified described transducer, determines that described transducer access is for effectively access, and no person determines that described transducer access is invalid access.
14. host computers as described in claim 12 or 13, is characterized in that, described transmitting element is also for determining that at described determination module described transducer accesses when effective, sends confirmation to described transducer;
Described determining unit, the also connectivity verification information for returning based on described confirmation based on described transducer, determines whether described transducer connects successful.
15. host computers as claimed in claim 11, is characterized in that, also comprise:
Add module, after determining that at described identification authentication module described transducer accesses successfully, described transducer is joined in current monitored transducer array;
Monitoring module, for sending pilot signal by the first Preset Time interval to the transducer of transducer array, whether described pilot signal is present in described transducer array for monitoring sensor.
16. host computers as claimed in claim 15, is characterized in that, also comprise:
Poll module, for by the numerical value of the each transducer of the second Preset Time interval poll transducer array, and records transducer polled time each time.
17. host computers as claimed in claim 16, is characterized in that, also comprise:
Inefficacy judge module, if for the difference between current time in system and last polled time of transducer, while being greater than default failure threshold, judge described sensor failure.
18. host computers as claimed in claim 17, is characterized in that, also comprise:
Transfer to judge module, if for do not receive the described pilot signal that transducer returns in the 3rd Preset Time interval, and/or described inefficacy judge module judges described sensor failure, judges that described transducer is pulled out;
Transfer to processing module, for being transferred to signal by transfering to transducer to remove and send transducer from current monitored transducer array.
19. host computers as claimed in claim 16, is characterized in that, also comprise:
Alarm module, during higher than default alarm threshold, starts alarm thread for the numerical value of the transducer that obtains when poll module.
20. 1 kinds of transducers, is characterized in that, comprising:
Sending module, in the time that transducer accesses, sends connection request, based on described connection request, described transducer is identified to checking for host computer, and based on identification the result, determine whether described transducer access is effective, and described connection request comprises a sensor identification information.
21. transducers as claimed in claim 20, is characterized in that, described sending module also, in the time that described host computer is verified described transducer identification, sends at least one in attribute sensor information and connectivity verification information.
22. 1 kinds of transducer recognition systems, is characterized in that, comprise transducer and host computer, wherein:
Described transducer, in the time that transducer accesses, sends connection request, and described connection request comprises a sensor identification information;
Host computer, the connection request sending for receiving described transducer, and based on described connection request, described transducer is identified to checking, and based on identification the result, determine that whether described transducer access is successful.
CN201210593313.3A 2012-12-31 2012-12-31 Sensor identification method, host computer, sensor and sensor identification system Pending CN103916230A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210593313.3A CN103916230A (en) 2012-12-31 2012-12-31 Sensor identification method, host computer, sensor and sensor identification system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210593313.3A CN103916230A (en) 2012-12-31 2012-12-31 Sensor identification method, host computer, sensor and sensor identification system

Publications (1)

Publication Number Publication Date
CN103916230A true CN103916230A (en) 2014-07-09

Family

ID=51041651

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210593313.3A Pending CN103916230A (en) 2012-12-31 2012-12-31 Sensor identification method, host computer, sensor and sensor identification system

Country Status (1)

Country Link
CN (1) CN103916230A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111090265A (en) * 2019-03-28 2020-05-01 惠州市奇思创想科技有限公司 Industrial monitoring system based on big data and work flow thereof
CN112954641A (en) * 2021-02-24 2021-06-11 深圳市中电软件有限公司 Novel dual-channel wireless communication system, control method and control system
CN113378150A (en) * 2021-06-22 2021-09-10 疯壳(深圳)科技有限公司 Autonomous identification and connection method and system for serial port terminal equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007010175A1 (en) * 2005-07-22 2007-01-25 Laurence Carolan Remote activation system
CN101136131A (en) * 2006-08-30 2008-03-05 株式会社日立制作所 Sensor network system and data management method for sensor network
CN102333388A (en) * 2011-09-16 2012-01-25 浙江双友物流器械股份有限公司 Method and system for grouping wireless sensor networks, as well as sensor and data sink node
CN102487505A (en) * 2010-12-06 2012-06-06 中国移动通信集团河南有限公司 Access authentication method of sensor node, apparatus thereof and system thereof
CN103457786A (en) * 2012-06-05 2013-12-18 中国移动通信集团公司 Sensor access detection method, device and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007010175A1 (en) * 2005-07-22 2007-01-25 Laurence Carolan Remote activation system
CN101136131A (en) * 2006-08-30 2008-03-05 株式会社日立制作所 Sensor network system and data management method for sensor network
CN102487505A (en) * 2010-12-06 2012-06-06 中国移动通信集团河南有限公司 Access authentication method of sensor node, apparatus thereof and system thereof
CN102333388A (en) * 2011-09-16 2012-01-25 浙江双友物流器械股份有限公司 Method and system for grouping wireless sensor networks, as well as sensor and data sink node
CN103457786A (en) * 2012-06-05 2013-12-18 中国移动通信集团公司 Sensor access detection method, device and system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111090265A (en) * 2019-03-28 2020-05-01 惠州市奇思创想科技有限公司 Industrial monitoring system based on big data and work flow thereof
CN112954641A (en) * 2021-02-24 2021-06-11 深圳市中电软件有限公司 Novel dual-channel wireless communication system, control method and control system
CN113378150A (en) * 2021-06-22 2021-09-10 疯壳(深圳)科技有限公司 Autonomous identification and connection method and system for serial port terminal equipment

Similar Documents

Publication Publication Date Title
CN103634150B (en) A kind of high security CAN communication means of redundancy
US8332566B2 (en) Methods and apparatuses for serial bus sideband communications
CN103248514B (en) In car lan network management fault detect and alleviation
CN102196041B (en) Wireless intelligent transducer and method for implementing plug and play of transducer
CN108829567A (en) Support the monolithic NVMe hard disk backboard of dual lighting and the ignition method of hard disk backboard
WO2015078406A1 (en) Measurement system having a plurality of sensors
CN104731007A (en) Backboard communication assembly and communication method for function security PLC
KR20080058454A (en) A distributed monitoring method
CN105306605B (en) A kind of double host server systems
CN101980171A (en) Failure self-recovery method for software system and software watchdog system used by same
CN201859389U (en) Reset management chip and reset system
CN106656960A (en) Hilscher-based credible data acquisition system and method
US8018867B2 (en) Network system for monitoring operation of monitored node
WO2017092459A1 (en) System on chip soc monitoring method, device and computer storage medium
CN107729209A (en) For the information monitoring method of server, device, equipment and storage medium
CN103916230A (en) Sensor identification method, host computer, sensor and sensor identification system
CN110247936B (en) Communication protocol conversion card and communication protocol conversion system
JP5770815B2 (en) Wireless monitoring control method and apparatus
CN208999999U (en) Data processing equipment
CN106357607A (en) Method and device for connection, security verification, communication, communication monitoring of electronic equipment
CN106933575A (en) A kind of system and method with outer identification server assets information
CN107230263B (en) WTB bus data frame recorder and recording method
CN109582626A (en) A kind of method, apparatus, equipment and readable storage medium storing program for executing accessing bus
CN103858105B (en) connection method
CN109542812A (en) Data communication control method, device and terminal device

Legal Events

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

Application publication date: 20140709

RJ01 Rejection of invention patent application after publication