CN106230878A - A kind of equipment service calling method based on AllJoyn framework and device - Google Patents

A kind of equipment service calling method based on AllJoyn framework and device Download PDF

Info

Publication number
CN106230878A
CN106230878A CN201610533797.0A CN201610533797A CN106230878A CN 106230878 A CN106230878 A CN 106230878A CN 201610533797 A CN201610533797 A CN 201610533797A CN 106230878 A CN106230878 A CN 106230878A
Authority
CN
China
Prior art keywords
server device
end equipment
application end
service
parameter
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.)
Granted
Application number
CN201610533797.0A
Other languages
Chinese (zh)
Other versions
CN106230878B (en
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.)
FREEWINGS TECHNOLOGIES CO LTD
Original Assignee
FREEWINGS TECHNOLOGIES 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 FREEWINGS TECHNOLOGIES CO LTD filed Critical FREEWINGS TECHNOLOGIES CO LTD
Priority to CN201610533797.0A priority Critical patent/CN106230878B/en
Publication of CN106230878A publication Critical patent/CN106230878A/en
Application granted granted Critical
Publication of CN106230878B publication Critical patent/CN106230878B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Debugging And Monitoring (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a kind of equipment service calling method based on AllJoyn framework and device, cannot judge whether the configuration infrastructure service called calls successful problem in order to solve user present in prior art.Method includes: application end equipment is sending before the call request of the destination service calling described server device to described server device, send state to server device and know that message, described state know that message is for knowing described server device current state;Described application end in the first preset duration, receive that described server device sends for feeding back feedback message that described state knows message time, send the call request for calling described destination service to described server device.

Description

A kind of equipment service calling method based on AllJoyn framework and device
Technical field
The present invention relates to communication technical field, particularly relate to a kind of equipment service calling method based on AllJoyn framework And device.
Background technology
Internet of Things is to utilize the communication technology such as localized network or the Internet sensor, controller, machine, personnel and thing etc. It is linked togather by the way of new, forms people and be connected with thing with thing, thing, it is achieved informationization, remote management and control and intelligentized Network.In Internet of Things application scenarios, such as Smart Home, it is often necessary to internet of things equipment is performed configuration operation.AllJoyn It is the open source software framework of a cooperation, AllJoyn provides configuration infrastructure service (Config base service) and carries For configuration service.Configuration infrastructure service include the amendment to equipment Foundations attribute, such as revise title, equipment default language etc. with And equipment is restarted or parameter replacement etc..
In AllJoyn when providing configuration infrastructure service, first application end equipment and server device sets up session, then Client can call configuration infrastructure service to service equipment.But client calls configuration infrastructure service to service equipment, belong to In being unidirectionally controlled, then make user cannot judge whether the configuration infrastructure service called calls successfully.
Summary of the invention
The embodiment of the present invention provides a kind of equipment service calling method based on AllJoyn framework and device, in order to solve Present in prior art, user cannot judge whether the configuration infrastructure service called calls successful problem.
First aspect, embodiments provides a kind of equipment service calling method based on AllJoyn service framework, The method includes:
Application end equipment is at the tune of the destination service sent to described server device for calling described server device Before request, send state to server device and know that message, described state know that message is for knowing that described service end sets Standby current state;
Described application end equipment receive in the first preset duration described server device send for feeding back described shape When state knows the feedback message of message, send the call request for calling described destination service to described server device.
The scheme provided by the embodiment of the present invention, carries out when calling of Config service, service end at application end equipment Equipment is feedback message after the state of receiving knows message, thus ensures that application end equipment obtains the operation of current service end equipment State is normal, thus sends the call request of destination service again to server device, improves the success rate called.
In a kind of possible implementation, described destination service is for restarting or resetting described server device parameter; Described application end equipment sends the call request being used for calling the destination service of described server device to described server device Afterwards, described method also includes:
Described application end equipment receives the first notification message that described server device sends, and described first notification message is used In notifying that described application end equipment is restarted described server device or resets the reason of described server device parameter for receiving The call request sent to application end equipment.
By such scheme, restart or after parameter reconfiguration in server device, send reason to application end equipment so that Application end equipment knows whether server device exists fault timely.
In a kind of possible implementation, described method also includes: described application end equipment is not to described service end Equipment sends in the case of the call request of the destination service calling institute's server device, receives described server device and sends out The second notification message sent, described second notification message is used for notifying described application end equipment, and described server device performs weight Open or parameter reconfiguration reason is non-reception call request;Described application end equipment determines that described server device exists fault.
In a kind of possible design, described method also includes:
Described application end equipment does not receives the described for feeding back of described server device transmission in the first preset duration When state knows the feedback message of message, repeat transmission state to server device and know message;And setting to described service end After repeating to send pre-determined number, when not receiving the described feedback message that described server device sends, determine described service end There is fault in equipment.
Second aspect, the embodiment of the present invention additionally provides a kind of device service called side based on AllJoyn service framework Method, including:
Server device receive described application end equipment send for invocation target service call request before, clothes Business end equipment receives the state of application end equipment transmission and knows that message, described state know that message is for knowing that described service end sets Standby current state;
Described server device knows that the feedback of message disappears to what described application end equipment sent for feeding back described state Breath.
The scheme provided by the embodiment of the present invention, carries out when calling of Config service, service end at application end equipment Equipment is feedback message after the state of receiving knows message, thus ensures that application end equipment obtains the operation of current service end equipment When state is normal, then send dispatch request to server device, improve and call success rate.
In a kind of possible implementation, described destination service is for restarting described server device or resetting described clothes Business end device parameter, described method also includes:
Described server device receive described application end equipment send for invocation target service call request after, Described server device sends the first notification message to described application end equipment;Described first notification message is used for notifying described answering With end equipment, the execution of described server device is restarted or the reason of parameter reconfiguration is to receive calling of application end equipment transmission Request.
Pass through such scheme, it is possible to application end equipment is known timely, and server device is restarted or parameter reconfiguration Reason.
In a kind of possible implementation, described method also includes:
Described server device receive described application end equipment send for invocation target service call request after, By in pre-configured data partition storage be used for indicate server device to restart or parameter reconfiguration reason parameter value amendment It it is the first value;Described first value is for showing described server device and restart or the reason of parameter reconfiguration being for receiving described application The call request that end equipment sends.
In a kind of possible implementation, described server device receive described application end equipment send for adjusting After the call request of destination service, described method also includes: described server device performs described destination service;Described service End equipment sends the first notification message to described application end equipment, including:
Described server device detects when in described pre-configured data partition, the described parameter value of storage is the first value, Described server device sends the first notification message to described application end equipment.
In a kind of possible implementation, described server device sends the first notification message to described application end equipment After, parameter value corresponding for the described parameter of storage in described pre-configured data partition is set to sky or is revised as default value.
In a kind of possible implementation, described method also includes:
Described server device is not receiving asking for calling of invocation target service of described application end equipment transmission Perform in the case of asking to restart or parameter reconfiguration, detected that in described pre-configured data partition, the described parameter value of storage is Empty or be default value;
Described server device sends the second notification message to described application end equipment;Described first notification message is used for leading to Knowing described application end equipment, the execution of described server device is restarted or the reason of parameter reconfiguration is non-reception call request.
The embodiment of the present invention additionally provides a kind of equipment service calling method based on AllJoyn service framework, including:
Application end equipment sends the call request being used for calling the destination service of described server device to server device, Described destination service is for restarting or resetting described server device parameter;
Described application end equipment receives the first notification message that described server device sends, and described first notification message is used In notifying that described application end equipment is restarted described server device or resets the reason of described server device parameter for receiving The call request sent to application end equipment.
In a kind of possible design, also include:
Described application end equipment is not sending the destination service for calling institute's server device to described server device Call request in the case of, receive described server device send the second notification message, described second notification message is used for Notifying described application end equipment, the execution of described server device is restarted or parameter reconfiguration reason is non-reception call request;
Described application end equipment determines that described server device exists fault.
The embodiment of the present invention additionally provides a kind of equipment service calling method based on AllJoyn framework, including:
Described server device receives the call request for invocation target service that described application end equipment sends, institute State destination service for restarting described server device or resetting described server device parameter;
Described server device sends the first notification message to described application end equipment;Described first notification message is used for leading to Knowing described application end equipment, the execution of described server device is restarted or the reason of parameter reconfiguration is sent out for receiving application end equipment The call request sent.
In a kind of possible implementation, described server device receive described application end equipment send for adjusting After the call request of destination service, by pre-configured data partition storage be used for indicate server device to restart or reset The parameter value of the reason of parameter is revised as the first value;Described first value is used for showing that described server device is restarted or parameter reconfiguration Reason be receive described application end equipment send call request.
In a kind of possible implementation, described server device receive described application end equipment send for adjusting After the call request of destination service, described method also includes: described server device performs described destination service;Described service End equipment sends the first notification message to described application end equipment, including:
Described server device detects when in described pre-configured data partition, the described parameter value of storage is the first value, Described server device sends the first notification message to described application end equipment.
In a kind of possible implementation, described server device sends the first notification message to described application end equipment After, parameter value corresponding for the described parameter of storage in described pre-configured data partition is set to sky or is revised as default value.
In a kind of possible implementation, described method also includes:
Described server device is not receiving asking for calling of invocation target service of described application end equipment transmission Perform in the case of asking to restart or parameter reconfiguration, and the described parameter value of storage in described pre-configured data partition detected For empty or when being default value, described server device sends the second notification message to described application end equipment;Described first leads to Know message for notifying described application end equipment, described server device performs to restart or the reason of parameter reconfiguration is non-reception Call request.
The embodiment of the present invention additionally provides a kind of device service calling device based on AllJoyn service framework, is applied to Application end equipment, including:
Sending module, for sending the destination service for calling described server device to described server device Before call request, send state to server device and know that message, described state know that message is for knowing described service end Equipment current state;
Receiver module, for receive in the first preset duration described server device send for feeding back described state Know the feedback message of message;
Described sending module, being additionally operable to please for calling calling of described destination service to the transmission of described server device Ask.
In a kind of possible implementation, described destination service is for restarting or resetting described server device parameter;
Described receiver module, is additionally operable to send for calling described service to described server device at described sending module After the call request of the destination service of end equipment, receive described server device send the first notification message, described first Notification message is for notifying that described application end equipment is restarted described server device or resets described server device parameter Reason is to receive the call request that application end equipment sends.
In a kind of possible implementation, described receiver module, it is additionally operable at described sending module not to described service End equipment sends in the case of the call request of the destination service calling institute's server device, receives described server device The second notification message sent, described second notification message is used for notifying described application end equipment, and described server device performs Restart or parameter reconfiguration reason is non-reception call request;
Described device also comprises determining that module, is used for when described receiver module receives described second notification message, really There is fault in fixed described server device.
In a kind of possible implementation, described sending module, it is additionally operable to described reception mould in the first preset duration Block do not receive that described server device sends for feeding back feedback message that described state knows message time, to server device Repeat transmission state and know message;Described device also includes:
Determining module, the state repeating to send pre-determined number to described server device at described sending module knows message After, when described receiver module does not receives the described feedback message that described server device sends, determine that described server device is deposited In fault.
The embodiment of the present invention additionally provides a kind of device service calling device based on AllJoyn service framework, is applied to Server device, including:
Receiver module, for receive described application end equipment send for invocation target service call request it Before, server device receives the state of application end equipment transmission and knows that message, described state know that message is for knowing described clothes Business end equipment current state;
Sending module, knows that the feedback of message disappears for send to described application end equipment for feeding back described state Breath.
In a kind of possible implementation, described destination service is for restarting described server device or resetting described clothes Business end device parameter, described sending module, be additionally operable to described receiver module receive described application end equipment send for After the call request of invocation target service, send the first notification message to described application end equipment;Described first notification message is used In notifying described application end equipment, the execution of described server device is restarted or the reason of parameter reconfiguration sets for receiving application end The call request that preparation is sent.
In a kind of possible implementation, described device also includes:
Modified module, for described receiver module receive described application end equipment send for invocation target service Call request after, by pre-configured data partition storage be used for indicate server device to restart or the reason of parameter reconfiguration Parameter value be revised as the first value;Described first value is for showing described server device and restart or the reason of parameter reconfiguration being for connecing Receive the call request that described application end equipment sends.
In a kind of possible implementation, described device also includes:
Perform module, for described receiver module receive described application end equipment send for invocation target service Call request after, perform described destination service;
Detection module, for detecting that in described pre-configured data partition, the described parameter value of storage is the first value, then Described sending module sends the first notification message to described application end equipment.
In a kind of possible implementation, described modified module, it is additionally operable at described sending module to described application end After equipment sends the first notification message, parameter value corresponding for the described parameter of storage in described pre-configured data partition is set to Empty or be revised as default value.
In a kind of possible implementation, described detection module, it is additionally operable to not receive at described receiver module described Application end equipment send in the case of the call request of invocation target service, described execution module has performed to restart or heavily When putting parameter, detect that in described pre-configured data partition, the described parameter value of storage for sky or is default value;
Described sending module, is additionally operable to send the second notification message to described application end equipment;Described first notification message For notifying described application end equipment, the execution of described server device is restarted or the reason of parameter reconfiguration is that non-reception calling please Ask.
Embodiments provide a kind of device service calling device based on AllJoyn service framework, be applied to With end equipment, including:
Sending module, please for sending the calling of destination service for calling described server device to server device Asking, described destination service is for restarting or resetting described server device parameter;
Receiver module, for receiving the first notification message that described server device sends, described first notification message is used In notifying that described application end equipment is restarted described server device or resets the reason of described server device parameter for receiving The call request sent to application end equipment.
In a kind of possible implementation, described receiver module, it is additionally operable at described sending module not to described service End equipment sends in the case of the call request of the destination service calling institute's server device, receives described server device The second notification message sent, described second notification message is used for notifying described application end equipment, and described server device performs Restart or parameter reconfiguration reason is non-reception call request;
Described device also includes:
Determine module, be used for determining that described server device exists fault.
Embodiments provide a kind of device service calling device based on AllJoyn framework, be applied to service end Equipment, including:
Receiver module, for receiving the call request for invocation target service that described application end equipment sends, institute State destination service for restarting described server device or resetting described server device parameter;
Sending module, for sending the first notification message to described application end equipment;Described first notification message is used for leading to Knowing described application end equipment, the execution of described server device is restarted or the reason of parameter reconfiguration is sent out for receiving application end equipment The call request sent.
In a kind of possible implementation, described device also includes:
Modified module, for described receiver module receive described application end equipment send for invocation target service Call request after, by pre-configured data partition storage be used for indicate server device to restart or the reason of parameter reconfiguration Parameter value be revised as the first value;Described first value is for showing described server device and restart or the reason of parameter reconfiguration being for connecing Receive the call request that described application end equipment sends.
In a kind of possible implementation, described device also includes:
Perform module, for described receiver module receive described application end equipment send for invocation target service Call request after, perform described destination service;
Detection module, for detecting that in described pre-configured data partition, the described parameter value of storage is the first value, then Described sending module sends the first notification message to described application end equipment.
In a kind of possible implementation, described modified module, it is additionally operable at described sending module to described application end After equipment sends the first notification message, parameter value corresponding for the described parameter of storage in described pre-configured data partition is set to Empty or be revised as default value.
In a kind of possible implementation, described sending module, it is additionally operable to not receive at described receiver module described Application end equipment send in the case of the call request of invocation target service, described execution module has performed to restart or heavily After putting parameter, described detection module detects that in described pre-configured data partition, the described parameter value of storage for sky or is silent When recognizing value, send the second notification message to described application end equipment;Described first notification message is used for notifying that described application end sets Standby, the execution of described server device is restarted or the reason of parameter reconfiguration is non-reception call request.
Accompanying drawing explanation
A kind of equipment based on AllJoyn framework clothes being applied to application end equipment that Fig. 1 provides for the embodiment of the present invention Business call method flow chart;
Fig. 2 is applied to the equipment based on AllJoyn framework of application end equipment for the another kind that the embodiment of the present invention provides Service calling method flow chart;
A kind of equipment based on AllJoyn framework clothes being applied to server device that Fig. 3 provides for the embodiment of the present invention Business call method flow chart;
Fig. 4 provide for the embodiment of the present invention another be applied to the equipment based on AllJoyn framework of application end equipment Service calling method flow chart;
Fig. 5 is applied to the equipment based on AllJoyn framework of server device for the another kind that the embodiment of the present invention provides Service calling method flow chart;
A kind of based on AllJoyn framework the equipment service calling method schematic diagram that Fig. 6 provides for the embodiment of the present invention;
A kind of equipment based on AllJoyn framework clothes being applied to application end equipment that Fig. 7 provides for the embodiment of the present invention Business calling device schematic diagram;
A kind of equipment based on AllJoyn framework clothes being applied to server device that Fig. 8 provides for the embodiment of the present invention Business calling device schematic diagram;
Fig. 9 is applied to the equipment based on AllJoyn framework of application end equipment for the another kind that the embodiment of the present invention provides Service call device schematic diagram;
Figure 10 is applied to the equipment based on AllJoyn framework of server device for the another kind that the embodiment of the present invention provides Service call device schematic diagram.
Detailed description of the invention
In order to make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing the present invention made into One step ground describes in detail, it is clear that described embodiment is only a part of embodiment of the present invention rather than whole enforcement Example.Based on the embodiment in the present invention, those of ordinary skill in the art are obtained under not making creative work premise All other embodiments, broadly fall into the scope of protection of the invention.
The embodiment of the present invention provides a kind of equipment service calling method based on AllJoyn framework and device, in order to solve Present in prior art, user cannot judge whether the configuration infrastructure service called calls successful problem.Wherein, method and Device is based on same inventive concept, owing to the principle of method and device solution problem is similar, the therefore reality of apparatus and method Execute and can repeat no more in place of repetition with cross-reference.
The most first the application is related to technical term to explain.
Configuration (Config) service: infrastructure service function based on AllJoyn.Mainly include amendment equipment implementor name, The default language of equipment, password amendment (for the password of equipment configuration service), equipment is restarted, parameter replacement etc..
Notice (Notification) service: infrastructure service function based on AllJoyn, sends in being included in LAN and deposits The broadcast of live time, this message can be survived a period of time in network internal storage, within the message time-to-live, adds network AllJoyn application end equipment also can receive this message.
Service call: AllJoyn server device can provide some services (with method form) by other equipment or to answer With calling.Other application or equipment in same LAN are getting the interface name of server device, path, method name and ginseng The data such as number type, it is possible to call the service that this server device provides, such as in config service, parameter resets or equipment Restart.
Three-way handshake: three-way handshake agreement refers to need to send the preparatory stage of data, application end equipment and clothes at equipment Business end equipment needs to be set up alternately connection by three-message.
Application end equipment mentioned in the application refers to the machinery equipment of the requesting party as invocation target service, application End equipment is used for executive control operation, such as: mobile phone, intelligent watch etc..Application end equipment has run AllJoyn framework, is used for The config service that invoking server equipment end provides.Some Config service and each Config is known at application end equipment After the interface of service (corresponding method), call according to information such as method name, interface name, paths.Application end equipment is also message Receiving terminal, receives the message beamed back from server device.
Server device refers to the machinery equipment of the called side as the destination service with requesting party institute request call, Such as: the electronic equipments such as air-conditioning, refrigerator, television set.Server device is used for providing status information and service call, and service sets Standby be provided with Config infrastructure service function based on AllJoyn in advance, server device and application end equipment set up session it After, the Config service that can be called concrete.
Embodiments provide a kind of equipment service calling method based on AllJoyn framework, as it is shown in figure 1, institute The method of stating includes:
S101, application end equipment is sending the destination service for calling described server device to described server device Call request before, to server device send state know that message, described state know that message is for knowing described service End equipment current state.
The destination service mentioned in the embodiment of the present invention can be any one service in Config service.
S102, described application end receive in the first preset duration described server device send for feeding back described shape When state knows the feedback message of message, send the call request for calling described destination service to described server device.
The scheme provided by the embodiment of the present invention, carries out when calling of Config service, service end at application end equipment Equipment is feedback message after the state of receiving knows message, thus ensures that application end equipment obtains the operation of current service end equipment State is normal, thus sends the call request of destination service again to server device, improves the success rate called.
Described application end do not receive in the first preset duration described server device send for feeding back described state When knowing the feedback message of message, repeat transmission state to server device and know message;And to described server device weight After pre-determined number is sent in recurrence, when not receiving the described feedback message that described server device sends, determine described server device There is fault.
As in figure 2 it is shown, be equipment service calling method schematic flow sheet.
S201, knows message sending state to described server device;Perform S202.
S202, described application end equipment whether receive in determining the first preset duration described server device send for Feed back described state and know the feedback message of message, if so, perform S203, if it is not, perform S204.
S203, application end equipment sends the call request for calling described destination service to described server device.
S204, application end equipment determines that sending state to described server device knows that whether the number of times of message is more than predetermined Number of times, if so, performs S205, if it is not, perform S201.
S205, application end equipment determines that described server device exists fault.
There is fault can be server device less stable or busy or device damage etc..Determining clothes When business end equipment exists fault, no longer send call request to server device.
Alternatively, application end equipment, when determining that server device exists fault, is shown to use to by the form of message Family.Thus user is after determining server device fault, server device is carried out on-call maintenance.
Alternatively, described destination service is that described server device is restarted or parameter reconfiguration;Described application end equipment to Described server device sends after the call request of the destination service calling institute's server device, and described method is all right Including:
Described application end equipment receives the first notification message that described server device sends, and described first notification message is used In notifying that described application end equipment is restarted or the reason of parameter reconfiguration is to receive the call request that application end equipment sends.
Alternatively, described application end equipment is not sending the mesh for calling institute's server device to described server device In the case of the call request of mark service, receiving the second notification message that described server device sends, described second notice disappears Breath is used for notifying that described application end equipment, the execution of described server device are restarted or parameter reconfiguration reason is that non-reception calling please Ask;Described application end equipment determines that described server device exists fault.
By such scheme, restart or after parameter reconfiguration in server device, send reason to application end equipment so that Application end equipment knows whether server device exists fault timely.
Can there is the message of fault to server device and be shown to user in application end equipment, thus user is determining service After end equipment fault, server device is carried out on-call maintenance.
The embodiment of the present invention additionally provides a kind of equipment service calling method based on AllJoyn framework, as it is shown on figure 3, The method includes:
S301, server device receive described application end equipment send for invocation target service call request it Before, server device receives the state of application end equipment transmission and knows that message, described state know that message is for knowing described clothes Business end equipment current state.
Destination service can be any one service in config service.
S302, described server device knows the anti-of message to what described application end equipment sent for feeding back described state Feedback message.
The scheme provided by the embodiment of the present invention, carries out when calling of Config service, service end at application end equipment Equipment is feedback message after the state of receiving knows message, thus ensures that application end equipment obtains the operation of current service end equipment When state is normal, then send dispatch request to server device, improve and call success rate.
Alternatively, described destination service is for restarting described server device or resetting described server device parameter, institute Method of stating also includes:
S303, described server device receives asking for calling of invocation target service of described application end equipment transmission After asking, described server device sends the first notification message to described application end equipment;Described first notification message is used for notifying Described application end equipment, the execution of described server device is restarted or the reason of parameter reconfiguration sends for receiving application end equipment Call request.
Pass through such scheme, it is possible to application end equipment is known timely, and server device is restarted or parameter reconfiguration Reason.
Alternatively, described server device receives the calling for invocation target service that described application end equipment sends After request, by pre-configured data partition storage be used for indicate server device to restart or the parameter of reason of parameter reconfiguration Value is revised as the first value;Described first value is for showing described server device and restart or the reason of parameter reconfiguration being for receiving State the call request that application end equipment sends.
Described server device receive described application end equipment send for invocation target service call request after, Described server device performs described destination service;Thus described server device detects in described pre-configured data partition When the described parameter value of storage is the first value, described server device sends the first notification message to described application end equipment.
The parameter of data partition storage can be boolean (Boolean) data type, as parameter value true, shows described Server device is restarted or the reason of parameter reconfiguration is to receive the call request that described application end equipment sends.Parameter value is given tacit consent to Value is false.Default value shows that described server device is restarted or the reason of parameter reconfiguration is non-call request, i.e. other reasons Cause.
By such scheme, pre-configuration data subregion, and storage is used for indicating server device to restart in data partition Or the parameter value of the reason of parameter reconfiguration, these data will not because of equipment restart or parameter reconfiguration and be wiped free of, thus Restart or parameter reconfiguration checked the parameter value in data partition later at equipment, send to application end equipment logical based on parameter value Know message.
Alternatively, described server device is after described application end equipment sends the first notification message, by described pre-configured Data partition in the parameter value corresponding to described parameter of storage be set to sky or be revised as default value.Parameter value is for sky or is Default value shows that server device is restarted or the reason of parameter reconfiguration is other reasons, non-scheduled request.
Alternatively, described method also includes: described server device is not receiving the use that described application end equipment sends Perform to restart or parameter reconfiguration in the case of the call request of invocation target service, detected that described pre-configured data are divided In district, the described parameter value of storage is empty or is default value;Described server device sends second to described application end equipment and leads to Know message;Described first notification message is used for notifying described application end equipment, and described server device performs restart or reset The reason of parameter is non-reception call request.
The embodiment of the present invention additionally provides a kind of equipment service calling method based on AllJoyn framework, as shown in Figure 4, The method includes:
S401, application end equipment sends the calling of destination service for calling described server device to server device Request, described destination service is for restarting or resetting described server device parameter.
S402, described application end equipment receives the first notification message that described server device sends, described first notice Message is for notifying that described application end equipment is restarted described server device or resets the reason of described server device parameter For receiving the call request that application end equipment sends.
Pass through such scheme, it is possible to application end equipment is known timely, and server device is restarted or parameter reconfiguration Reason.
Alternatively, described application end equipment is not sending the mesh for calling institute's server device to described server device In the case of the call request of mark service, receiving the second notification message that described server device sends, described second notice disappears Breath is used for notifying that described application end equipment, the execution of described server device are restarted or parameter reconfiguration reason is that non-reception calling please Ask;Described application end equipment determines that described server device exists fault.
The embodiment of the present invention additionally provides a kind of equipment service calling method based on AllJoyn framework, as it is shown in figure 5, The method includes:
S501, described server device receives asking for calling of invocation target service of described application end equipment transmission Asking, described destination service is for restarting described server device or resetting described server device parameter;
S502, described server device sends the first notification message to described application end equipment;Described first notification message For notifying described application end equipment, described server device performs to restart or the reason of parameter reconfiguration is for receiving application end The call request that equipment sends.
Pass through such scheme, it is possible to application end equipment is known timely, and server device is restarted or parameter reconfiguration Reason.
Alternatively, described server device receives the calling for invocation target service that described application end equipment sends After request, by pre-configured data partition storage be used for indicate server device to restart or the parameter of reason of parameter reconfiguration Value is revised as the first value;Described first value is for showing described server device and restart or the reason of parameter reconfiguration being for receiving State the call request that application end equipment sends.
Alternatively, described server device receives the calling for invocation target service that described application end equipment sends After request, described method also includes: described server device performs described destination service;
Described server device sends the first notification message to described application end equipment, including:
Described server device detects when in described pre-configured data partition, the described parameter value of storage is the first value, Described server device sends the first notification message to described application end equipment.
Alternatively, described server device is after described application end equipment sends the first notification message, by described pre-configured Data partition in the parameter value corresponding to described parameter of storage be set to sky or be revised as default value.
Alternatively, described method can also include:
Described server device is not receiving asking for calling of invocation target service of described application end equipment transmission Perform in the case of asking to restart or parameter reconfiguration, and the described parameter value of storage in described pre-configured data partition detected For empty or when being default value, described server device sends the second notification message to described application end equipment;Described second leads to Know message for notifying described application end equipment, described server device performs to restart or the reason of parameter reconfiguration is non-reception Call request.
Below in conjunction with concrete application scenarios, the embodiment of the present invention is illustrated.
Device service calling system includes application end equipment, server device.The embodiment of the present invention is to include two services Illustrate as a example by end equipment, respectively first service end equipment and second service end equipment.
Wherein, first service end equipment and second service end equipment are connected respectively in a LAN.Application end sets Back-up sets up session after not passing through three-way handshake with first service end equipment and second service end equipment.
Seeing Fig. 6 is that device service calls schematic diagram.
S601, application end equipment sends state to first service end equipment and knows message.
S602, first service end equipment, after the state of receiving knows message, sends feedback to described application end equipment and disappears Breath.Thus application end equipment receives feedback message in preset duration.
S603, described application end equipment sends call request to described first service end equipment.Call request is used for calling The destination service of described first service end equipment.Destination service includes restarting first service end equipment or resetting first service setting Standby parameter.Restart first service end equipment at this as a example by.
S604, described first service end equipment is after receiving described call request, by the boolean in data partition (Boolean) parameter value of data type is revised as true.
S605, described first service end equipment performs reboot operation.
S606, the parameter value of boolean (Boolean) data type in described first service end equipment Inspection data partition For true.
S607, described first service end equipment sends the first notification message to described application end equipment.
Described first notification message is used for notifying described application end equipment, and it is former that the execution of described first service end equipment is restarted Because receiving the call request that application end equipment sends.
S608, described first service end equipment is by the parameter of boolean (Boolean) data type in described data partition Value is revised as false.
S609, described second service end equipment do not receive that application end equipment sends for the call request restarted, perform Reboot operation;
S610, checks the parameter value of boolean (Boolean) data type in the data partition that second service end equipment is corresponding For false.
S611, described second service end equipment sends the second notification message to described application end equipment.
Described second notification message is used for notifying described application end equipment, and described server device performs restart or reset The reason of parameter is non-reception call request.
S612, described application end equipment determines that described second service end equipment exists fault.Described application end equipment is permissible Second service equipment is existed the message display of fault to user, allow user recognize the reason that equipment is restarted.
In the embodiment of the present invention before sending call request, transmission state knows that message understands the shape of server device State, improves the success rate called, and enhances reliability and the stability of the configuration of application end equipment.Server device is at weight Send to application apparatus after opening equipment or parameter reconfiguration and restart or parameter reconfiguration cause value, so that user obtains timely Know that server device is restarted or parameter reconfiguration reason, if fault causes, can keep in repair timely.
Based on the inventive concept as embodiment of the method, the embodiment of the present invention additionally provides a kind of based on AllJoyn clothes The device service calling device of business framework, this device is applied to application end equipment, as it is shown in fig. 7, comprises:
Sending module 701, for sending the target clothes for calling described server device to described server device Before the call request of business, send state to server device and know that message, described state know that message is for knowing described clothes Business end equipment current state;
Receiver module 702, for receiving the described for feeding back of described server device transmission in the first preset duration State knows the feedback message of message;
Described sending module 701, is additionally operable to send for calling calling of described destination service to described server device Request.
In a kind of possible implementation, described destination service can be to restart or reset described server device ginseng Number;The most described receiver module 702, is additionally operable to send for calling described at described sending module 701 to described server device After the call request of the destination service of server device, receive the first notification message that described server device sends, described First notification message is used for notifying that described application end equipment is restarted described server device or resets described server device ginseng The reason of number is to receive the call request that application end equipment sends.
In a kind of possible implementation, described receiver module 702, it is additionally operable at described sending module 701 not to institute State server device transmission and in the case of the call request of the destination service of server device, receive described service for calling The second notification message that end equipment sends, described second notification message is used for notifying described application end equipment, and described service end sets Standby execution is restarted or parameter reconfiguration reason is non-reception call request;The most described device also comprises determining that module 703, is used for When described receiver module 702 receives described second notification message, determine that described server device exists fault.
In a kind of possible implementation, described sending module 701, it is additionally operable to described reception in the first preset duration Module 702 do not receive that described server device sends for feeding back feedback message that described state knows message time, to service End equipment repeats transmission state knows message;Described determine module 703, at described sending module 701 to described server device Repeat send pre-determined number state know message after, described receiver module 702 do not receive described server device send institute When stating feedback message, determine that described server device exists fault.
In the embodiment of the present invention, the division to unit is schematic, is only a kind of logic function and divides, actual realization Time can have other dividing mode, it addition, each functional unit in each embodiment of the application can be integrated at one In reason device, it is also possible to be individually to be physically present, it is also possible to two or more unit are integrated in a unit.Above-mentioned integrated Unit both can realize to use the form of hardware, it would however also be possible to employ the form of software function module realizes.
The device service calling device based on AllJoyn service framework that the embodiment of the present invention provides can include processing Device, can be specifically by above-mentioned modules all can integrated in a processor, it is single that this processor can be that central authorities process Unit's (English: Central Process Unit, to be called for short CPU).This device also includes memorizer, then memorizer is used for storing process The program code that device performs, can be volatile memory (English: volatile memory), such as random access memory (English: random-access memory, abbreviation: RAM);Memorizer can also be that nonvolatile memory is (English: non- Volatile memory), such as read only memory (English: read-only memory, abbreviation: ROM), flash memory (English Literary composition: flash memory), and hard disk (English: hard disk drive, HDD) or solid state hard disc is (English: solid-abbreviation: State drive, SSD) or memorizer can be used for carrying or store and has instruction or data structure form abbreviation: Desired program code also by any other medium of computer access, but can be not limited to this.Memorizer can be above-mentioned depositing The combination of reservoir.
The embodiment of the present invention additionally provides a kind of device service calling device based on AllJoyn service framework, is applied to Server device, as shown in Figure 8, described device includes:
Receiver module 801, for receiving asking for calling of invocation target service of described application end equipment transmission Before asking, server device receives the state of application end equipment transmission and knows that message, described state know that message is for knowing State server device current state;
Sending module 802, knows the feedback of message for send to described application end equipment for feeding back described state Message.
In a kind of possible implementation, described destination service is for restarting described server device or resetting described clothes Business end device parameter, described sending module 802, it is additionally operable to receive described application end equipment at described receiver module 801 and sends For invocation target service call request after, send the first notification message to described application end equipment;Described first notice Message is used for notifying that described application end equipment, the execution of described server device are restarted or the reason of parameter reconfiguration should for receiving The call request sent with end equipment.
Alternatively, described device can also include: modified module 803, described for receiving at described receiver module 801 Application end equipment send for invocation target service call request after, by pre-configured data partition storage be used for refer to Show that server device is restarted or the parameter value of reason of parameter reconfiguration is revised as the first value;Described first value is used for showing described clothes Business end equipment is restarted or the reason of parameter reconfiguration is to receive the call request that described application end equipment sends.
Alternatively, described device also includes: perform module 804, for receiving described application at described receiver module 801 End equipment send for invocation target service call request after, perform described destination service;
Detection module 805, for detecting that in described pre-configured data partition, the described parameter value of storage is the first value, The most described sending module 802 sends the first notification message to described application end equipment.
Alternatively, described modified module 803, it is additionally operable to send the at described sending module 802 to described application end equipment After one notification message, parameter value corresponding for the described parameter of storage in described pre-configured data partition is set to sky or amendment For default value.
Alternatively, described detection module 805, it is additionally operable to not receive described application end equipment at described receiver module 801 Send for invocation target service call request in the case of, described execution module 804 has performed to restart or parameter reconfiguration Time, detect that in described pre-configured data partition, the described parameter value of storage for sky or is default value;
Described sending module 802, is additionally operable to send the second notification message to described application end equipment;Described first notice disappears Breath is used for notifying described application end equipment, and the execution of described server device is restarted or the reason of parameter reconfiguration is non-reception calling Request.
In the embodiment of the present invention, the division to unit is schematic, is only a kind of logic function and divides, actual realization Time can have other dividing mode, it addition, each functional unit in each embodiment of the application can be integrated at one In reason device, it is also possible to be individually to be physically present, it is also possible to two or more unit are integrated in a unit.Above-mentioned integrated Unit both can realize to use the form of hardware, it would however also be possible to employ the form of software function module realizes.
The device service calling device based on AllJoyn service framework that the embodiment of the present invention provides can include processing Device, can be specifically by above-mentioned modules all can integrated in a processor, this processor can be CPU.This device Also include memorizer, then memorizer is for storing the program code that processor performs, and can be volatile memory, such as RAM;Memorizer can also be non-volatile memory, such as ROM, flash memory, HDD or SSD or storage Device can be used for carrying or storing to be had instruction or the desired program code of data structure form and can be deposited by computer Any other medium taken, but it is not limited to this.Memorizer can be the combination of above-mentioned memorizer.
The embodiment of the present invention additionally provides a kind of device service calling device based on AllJoyn service framework, is applied to Application end equipment, as it is shown in figure 9, include:
Sending module 901, for sending the tune of the destination service for calling described server device to server device With request, described destination service is for restarting or resetting described server device parameter;
Receiver module 902, for receiving the first notification message that described server device sends, described first notification message For notifying that described application end equipment is restarted described server device or resets the reason of described server device parameter for connecing Receive the call request that application end equipment sends.
Alternatively, described receiver module 902, it is additionally operable to not send to described server device at described sending module 901 For calling in the case of the call request of the destination service of server device, receive the second of the transmission of described server device Notification message, described second notification message is used for notifying described application end equipment, and described server device performs to restart or weight Putting parameter reason is non-reception call request;Described device also comprises determining that module 903, is used for determining described server device There is fault.
In the embodiment of the present invention, the division to unit is schematic, is only a kind of logic function and divides, actual realization Time can have other dividing mode, it addition, each functional unit in each embodiment of the application can be integrated at one In reason device, it is also possible to be individually to be physically present, it is also possible to two or more unit are integrated in a unit.Above-mentioned integrated Unit both can realize to use the form of hardware, it would however also be possible to employ the form of software function module realizes.
The device service calling device based on AllJoyn service framework that the embodiment of the present invention provides can include processing Device, can be specifically by above-mentioned modules all can integrated in a processor, this processor can be CPU.This device Also include memorizer, then memorizer is for storing the program code that processor performs, and can be volatile memory, such as RAM;Memorizer can also be non-volatile memory, such as ROM, flash memory, HDD or SSD or storage Device can be used for carrying or storing to be had instruction or the desired program code of data structure form and can be deposited by computer Any other medium taken, but it is not limited to this.Memorizer can be the combination of above-mentioned memorizer.
The embodiment of the present invention additionally provides a kind of device service calling device based on AllJoyn framework, is applied to service End equipment, as shown in Figure 10, described device includes:
Receiver module 1001, for receiving asking for calling of invocation target service of described application end equipment transmission Asking, described destination service is for restarting described server device or resetting described server device parameter;
Sending module 1002, for sending the first notification message to described application end equipment;Described first notification message is used In notifying described application end equipment, the execution of described server device is restarted or the reason of parameter reconfiguration sets for receiving application end The call request that preparation is sent.
Alternatively, described device also includes: modified module 1003, for receiving described answering at described receiver module 1001 With end equipment send for invocation target service call request after, by pre-configured data partition storage be used for indicate Server device is restarted or the parameter value of reason of parameter reconfiguration is revised as the first value;Described first value is used for showing described service End equipment is restarted or the reason of parameter reconfiguration is to receive the call request that described application end equipment sends.
Alternatively, described device also includes: perform module 1004, for receiving described answering at described receiver module 1001 With end equipment send for invocation target service call request after, perform described destination service;Detection module 1005, is used for Detecting that in described pre-configured data partition, the described parameter value of storage is the first value, the most described sending module 1002 is to described Application end equipment sends the first notification message.
Alternatively, described modified module 1003, it is additionally operable to send to described application end equipment at described sending module 1002 After first notification message, parameter value corresponding for the described parameter of storage in described pre-configured data partition is set to sky or repaiies Change default value into.
Alternatively, described sending module 1002, it is additionally operable to not receive described application end at described receiver module 1001 and sets Preparation send for invocation target service call request in the case of, described execution module 1004 has performed to restart or reset ginseng After number, described detection module 1005 detects that in described pre-configured data partition, the described parameter value of storage for sky or is silent When recognizing value, send the second notification message to described application end equipment;Described first notification message is used for notifying that described application end sets Standby, the execution of described server device is restarted or the reason of parameter reconfiguration is non-reception call request.
In the embodiment of the present invention, the division to unit is schematic, is only a kind of logic function and divides, actual realization Time can have other dividing mode, it addition, each functional unit in each embodiment of the application can be integrated at one In reason device, it is also possible to be individually to be physically present, it is also possible to two or more unit are integrated in a unit.Above-mentioned integrated Unit both can realize to use the form of hardware, it would however also be possible to employ the form of software function module realizes.
The device service calling device based on AllJoyn service framework that the embodiment of the present invention provides can include processing Device, can be specifically by above-mentioned modules all can integrated in a processor, this processor can be CPU.This device Also include memorizer, then memorizer is for storing the program code that processor performs, and can be volatile memory, such as RAM;Memorizer can also be non-volatile memory, such as ROM, flash memory, HDD or SSD or storage Device can be used for carrying or storing to be had instruction or the desired program code of data structure form and can be deposited by computer Any other medium taken, but it is not limited to this.Memorizer can be the combination of above-mentioned memorizer.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or computer program Product.Therefore, the reality in terms of the present invention can use complete hardware embodiment, complete software implementation or combine software and hardware Execute the form of example.And, the present invention can use at one or more computers wherein including computer usable program code The upper computer program product implemented of usable storage medium (including but not limited to disk memory, CD-ROM, optical memory etc.) The form of product.
The present invention is with reference to method, equipment (system) and the flow process of computer program according to embodiments of the present invention Figure and/or block diagram describe.It should be understood that can the most first-class by computer program instructions flowchart and/or block diagram Flow process in journey and/or square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided Instruction arrives the processor of general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce A raw machine so that the instruction performed by the processor of computer or other programmable data processing device is produced for real The device of the function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame now.
These computer program instructions may be alternatively stored in and computer or other programmable data processing device can be guided with spy Determine in the computer-readable memory that mode works so that the instruction being stored in this computer-readable memory produces and includes referring to Make the manufacture of device, this command device realize at one flow process of flow chart or multiple flow process and/or one square frame of block diagram or The function specified in multiple square frames.
These computer program instructions also can be loaded in computer or other programmable data processing device so that at meter Perform sequence of operations step on calculation machine or other programmable devices to produce computer implemented process, thus at computer or The instruction performed on other programmable devices provides for realizing at one flow process of flow chart or multiple flow process and/or block diagram one The step of the function specified in individual square frame or multiple square frame.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know basic creation Property concept, then can make other change and amendment to these embodiments.So, claims are intended to be construed to include excellent Select embodiment and fall into all changes and the amendment of the scope of the invention.
Obviously, those skilled in the art can carry out various change and the modification essence without deviating from the present invention to the present invention God and scope.So, if these amendments of the present invention and modification belong to the scope of the claims in the present invention and equivalent technologies thereof Within, then the present invention is also intended to comprise these change and modification.

Claims (34)

1. an equipment service calling method based on AllJoyn service framework, it is characterised in that including:
Application end equipment is being asked for calling calling of the destination service of described server device to the transmission of described server device Before asking, send state to server device and know that message, described state know that message is for knowing that described server device is worked as Front state;
What described application end equipment received in the first preset duration that described server device sends obtains for feeding back described state When knowing the feedback message of message, send the call request for calling described destination service to described server device.
2. the method for claim 1, it is characterised in that described destination service sets for restarting or resetting described service end Standby parameter;Described application end equipment sends the tune being used for calling the destination service of described server device to described server device After request, described method also includes:
Described application end equipment receives the first notification message that described server device sends, and described first notification message is used for leading to Know described application end equipment restart described server device or reset the reason of described server device parameter should for receiving The call request sent with end equipment.
3. the method for claim 1, it is characterised in that also include:
Described application end equipment is not sending the tune being used for calling the destination service of institute's server device to described server device In the case of request, receiving the second notification message that described server device sends, described second notification message is used for notifying Described application end equipment, the execution of described server device is restarted or parameter reconfiguration reason is non-reception call request;Described should Determine that described server device exists fault with end equipment.
4. the method as described in any one of claims 1 to 3, it is characterised in that also include:
Described application end equipment do not receive in the first preset duration described server device send for feeding back described state When knowing the feedback message of message, repeat transmission state to server device and know message;And to described server device weight After pre-determined number is sent in recurrence, when not receiving the described feedback message that described server device sends, determine described server device There is fault.
5. an equipment service calling method based on AllJoyn service framework, it is characterised in that including:
Server device receive described application end equipment send for invocation target service call request before, service end Equipment receives the state of application end equipment transmission and knows that message, described state know that message is for knowing that described server device is worked as Front state;
Described server device knows the feedback message of message to what described application end equipment sent for feeding back described state.
6. method as claimed in claim 5, it is characterised in that described destination service is for restarting described server device or weight Putting described server device parameter, described method also includes:
Described server device receive described application end equipment send for invocation target service call request after, described Server device sends the first notification message to described application end equipment;Described first notification message is used for notifying described application end Equipment, the execution of described server device is restarted or the reason of parameter reconfiguration is to receive calling of application end equipment transmission to ask Ask.
7. method as claimed in claim 6, it is characterised in that described method also includes:
Described server device receive that described application end equipment sends after the call request of invocation target service, will be pre- Storage for indicating server device to restart or the parameter value of reason of parameter reconfiguration is revised as the in the data partition of configuration One value;Described first value is for showing that described server device is restarted or the reason of parameter reconfiguration sets for receiving described application end The call request that preparation is sent.
8. method as claimed in claim 7, it is characterised in that described server device receives described application end equipment and sends For invocation target service call request after, described method also includes:
Described server device performs described destination service;
Described server device sends the first notification message to described application end equipment, including:
Described server device detects when in described pre-configured data partition, the described parameter value of storage is the first value, described Server device sends the first notification message to described application end equipment.
9. method as claimed in claim 8, it is characterised in that described server device sends first to described application end equipment After notification message, parameter value corresponding for the described parameter of storage in described pre-configured data partition is set to sky or is revised as Default value.
10. method as claimed in claim 9, it is characterised in that described method also includes:
Described server device is not receiving the call request feelings for invocation target service that described application end equipment sends Performed under condition to restart or parameter reconfiguration, detect in described pre-configured data partition the described parameter value of storage for empty or Person is default value;
Described server device sends the second notification message to described application end equipment;Described first notification message is used for notifying institute Stating application end equipment, the execution of described server device is restarted or the reason of parameter reconfiguration is non-reception call request.
11. 1 kinds of equipment service calling methods based on AllJoyn service framework, it is characterised in that including:
Application end equipment sends the call request being used for calling the destination service of described server device to server device, described Destination service is for restarting or resetting described server device parameter;
Described application end equipment receives the first notification message that described server device sends, and described first notification message is used for leading to Know described application end equipment restart described server device or reset the reason of described server device parameter should for receiving The call request sent with end equipment.
12. methods as claimed in claim 11, it is characterised in that also include:
Described application end equipment is not sending the tune being used for calling the destination service of institute's server device to described server device In the case of request, receiving the second notification message that described server device sends, described second notification message is used for notifying Described application end equipment, the execution of described server device is restarted or parameter reconfiguration reason is non-reception call request;
Described application end equipment determines that described server device exists fault.
13. 1 kinds of equipment service calling methods based on AllJoyn framework, it is characterised in that including:
Described server device receives the call request for invocation target service that described application end equipment sends, described mesh Mark service is for restarting described server device or resetting described server device parameter;
Described server device sends the first notification message to described application end equipment;Described first notification message is used for notifying institute Stating application end equipment, the execution of described server device is restarted or the reason of parameter reconfiguration is to receive application end equipment to send Call request.
14. methods as claimed in claim 13, it is characterised in that described server device receives described application end equipment and sends out Send for invocation target service call request after, by pre-configured data partition storage be used for indicate server device Restart or the parameter value of reason of parameter reconfiguration is revised as the first value;Described first value is used for showing that described server device is restarted Or the reason of parameter reconfiguration is to receive the call request that described application end equipment sends.
15. methods as claimed in claim 14, it is characterised in that described server device receives described application end equipment and sends out Send for invocation target service call request after, described method also includes:
Described server device performs described destination service;
Described server device sends the first notification message to described application end equipment, including:
Described server device detects when in described pre-configured data partition, the described parameter value of storage is the first value, described Server device sends the first notification message to described application end equipment.
16. methods as claimed in claim 15, it is characterised in that described server device sends the to described application end equipment After one notification message, parameter value corresponding for the described parameter of storage in described pre-configured data partition is set to sky or amendment For default value.
17. methods as claimed in claim 16, it is characterised in that described method also includes:
Described server device is not receiving the call request feelings for invocation target service that described application end equipment sends Perform under condition to restart or parameter reconfiguration, and detected that in described pre-configured data partition, the described parameter value of storage is sky Or when being default value, described server device sends the second notification message to described application end equipment;Described first notice disappears Breath is used for notifying described application end equipment, and the execution of described server device is restarted or the reason of parameter reconfiguration is non-reception calling Request.
18. 1 kinds of device service calling devices based on AllJoyn service framework, it is characterised in that be applied to application end equipment, Including:
Sending module, for sending calling of the destination service for calling described server device to described server device Before request, send state to server device and know that message, described state know that message is for knowing described server device Current state;
Receiver module, knows for feeding back described state for receive in the first preset duration that described server device sends The feedback message of message;
Described sending module, is additionally operable to send for the call request calling described destination service to described server device.
19. devices as claimed in claim 18, it is characterised in that described destination service is for restarting or resetting described service end Device parameter;
Described receiver module, is additionally operable to set for calling described service end to the transmission of described server device at described sending module After the call request of standby destination service, receive the first notification message that described server device sends, described first notice Message is for notifying that described application end equipment is restarted described server device or resets the reason of described server device parameter For receiving the call request that application end equipment sends.
20. devices as claimed in claim 18, it is characterised in that described receiver module, are additionally operable at described sending module not Send in the case of the call request of the destination service calling institute's server device to described server device, receive described The second notification message that server device sends, described second notification message is used for notifying described application end equipment, described service The execution of end equipment is restarted or parameter reconfiguration reason is non-reception call request;
Described device also includes:
Determine module, for when described receiver module receives described second notification message, determine that described server device is deposited In fault.
21. devices as described in any one of claim 18 to 20, it is characterised in that described sending module, are additionally operable to first What in preset duration, described receiver module did not received that described server device sends knows the anti-of message for feeding back described state During feedback message, repeat transmission state to server device and know message;
Described device also includes:
Determine module, described sending module to described server device repeat send pre-determined number state know message after, When described receiver module does not receives the described feedback message that described server device sends, determine that described server device exists event Barrier.
22. 1 kinds of device service calling devices based on AllJoyn service framework, it is characterised in that be applied to server device, Including:
Receiver module, for receive described application end equipment send for invocation target service call request before, Server device receives the state of application end equipment transmission and knows that message, described state know that message is for knowing described service end Equipment current state;
Sending module, knows the feedback message of message for send to described application end equipment for feeding back described state.
23. devices as claimed in claim 22, it is characterised in that described destination service for restart described server device or Reset described server device parameter, described sending module, be additionally operable to receive described application end equipment at described receiver module Send for invocation target service call request after, send the first notification message to described application end equipment;Described first Notification message is used for notifying that described application end equipment, the execution of described server device are restarted or the reason of parameter reconfiguration is reception The call request sent to application end equipment.
24. devices as claimed in claim 23, it is characterised in that described device also includes:
Modified module, for receiving, at described receiver module, the tune for invocation target service that described application end equipment sends After request, by pre-configured data partition storage be used for indicate server device to restart or the ginseng of reason of parameter reconfiguration Numerical value is revised as the first value;Described first value is for showing described server device and restart or the reason of parameter reconfiguration being for receiving The call request that described application end equipment sends.
25. devices as claimed in claim 24, it is characterised in that described device also includes:
Perform module, for receiving, at described receiver module, the tune for invocation target service that described application end equipment sends After request, perform described destination service;
Detection module, for detecting that in described pre-configured data partition, the described parameter value of storage is the first value, then described Sending module sends the first notification message to described application end equipment.
26. devices as claimed in claim 25, it is characterised in that described modified module, be additionally operable to described sending module to After described application end equipment sends the first notification message, by corresponding for the described parameter of storage in described pre-configured data partition Parameter value is set to sky or is revised as default value.
27. devices as claimed in claim 26, it is characterised in that described detection module, are additionally operable at described receiver module not Receive described application end equipment send for invocation target service call request in the case of, described execution module has performed Restart or during parameter reconfiguration, detect in described pre-configured data partition that the described parameter value of storage is for empty or for acquiescence Value;
Described sending module, is additionally operable to send the second notification message to described application end equipment;Described first notification message is used for Notifying described application end equipment, the execution of described server device is restarted or the reason of parameter reconfiguration is non-reception call request.
28. 1 kinds of device service calling devices based on AllJoyn service framework, it is characterised in that be applied to application end equipment, Including:
Sending module, for sending the call request of the destination service for calling described server device to server device, Described destination service is for restarting or resetting described server device parameter;
Receiver module, for receiving the first notification message that described server device sends, described first notification message is used for leading to Know described application end equipment restart described server device or reset the reason of described server device parameter should for receiving The call request sent with end equipment.
29. devices as claimed in claim 28, it is characterised in that described receiver module, are additionally operable at described sending module not Send in the case of the call request of the destination service calling institute's server device to described server device, receive described The second notification message that server device sends, described second notification message is used for notifying described application end equipment, described service The execution of end equipment is restarted or parameter reconfiguration reason is non-reception call request;
Described device also includes:
Determine module, be used for determining that described server device exists fault.
30. 1 kinds of device service calling devices based on AllJoyn framework, it is characterised in that be applied to server device, bag Include:
Receiver module, for receiving the call request for invocation target service that described application end equipment sends, described mesh Mark service is for restarting described server device or resetting described server device parameter;
Sending module, for sending the first notification message to described application end equipment;Described first notification message is used for notifying institute Stating application end equipment, the execution of described server device is restarted or the reason of parameter reconfiguration is to receive application end equipment to send Call request.
31. devices as claimed in claim 30, it is characterised in that described device also includes:
Modified module, for receiving, at described receiver module, the tune for invocation target service that described application end equipment sends After request, by pre-configured data partition storage be used for indicate server device to restart or the ginseng of reason of parameter reconfiguration Numerical value is revised as the first value;Described first value is for showing described server device and restart or the reason of parameter reconfiguration being for receiving The call request that described application end equipment sends.
32. devices as claimed in claim 31, it is characterised in that described device also includes:
Perform module, for receiving, at described receiver module, the tune for invocation target service that described application end equipment sends After request, perform described destination service;
Detection module, for detecting that in described pre-configured data partition, the described parameter value of storage is the first value, then described Sending module sends the first notification message to described application end equipment.
33. devices as claimed in claim 32, it is characterised in that described modified module, be additionally operable to described sending module to After described application end equipment sends the first notification message, by corresponding for the described parameter of storage in described pre-configured data partition Parameter value is set to sky or is revised as default value.
34. devices as claimed in claim 33, it is characterised in that described sending module, are additionally operable at described receiver module not Receive described application end equipment send for invocation target service call request in the case of, described execution module has performed Restarting or after parameter reconfiguration, described detection module detects that in described pre-configured data partition, the described parameter value of storage is Empty or when being default value, send the second notification message to described application end equipment;Described first notification message is used for notifying institute Stating application end equipment, the execution of described server device is restarted or the reason of parameter reconfiguration is non-reception call request.
CN201610533797.0A 2016-06-30 2016-06-30 Equipment service calling method and device based on AllJoyn framework Active CN106230878B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610533797.0A CN106230878B (en) 2016-06-30 2016-06-30 Equipment service calling method and device based on AllJoyn framework

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610533797.0A CN106230878B (en) 2016-06-30 2016-06-30 Equipment service calling method and device based on AllJoyn framework

Publications (2)

Publication Number Publication Date
CN106230878A true CN106230878A (en) 2016-12-14
CN106230878B CN106230878B (en) 2020-02-14

Family

ID=57519202

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610533797.0A Active CN106230878B (en) 2016-06-30 2016-06-30 Equipment service calling method and device based on AllJoyn framework

Country Status (1)

Country Link
CN (1) CN106230878B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108055072A (en) * 2017-11-20 2018-05-18 大唐软件技术股份有限公司 A kind of network failure investigates method and apparatus
WO2020191669A1 (en) * 2019-03-27 2020-10-01 京东方科技集团股份有限公司 System of internet of things, central control device, application device, and communication method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110243092A1 (en) * 2008-07-01 2011-10-06 Telefonaktiebolaget Lm Ericsson Establishing channels between a domain manager and managed nodes
CN103488499A (en) * 2013-09-05 2014-01-01 华为数字技术(成都)有限公司 Remote procedure calling method and remote procedure calling device
CN103916395A (en) * 2014-04-09 2014-07-09 北京京东尚科信息技术有限公司 Method, device and system for service calling
CN105592022A (en) * 2014-11-07 2016-05-18 北京海尔广科数字技术有限公司 Equipment service call method and apparatus based on Alljoyn gateway

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110243092A1 (en) * 2008-07-01 2011-10-06 Telefonaktiebolaget Lm Ericsson Establishing channels between a domain manager and managed nodes
CN103488499A (en) * 2013-09-05 2014-01-01 华为数字技术(成都)有限公司 Remote procedure calling method and remote procedure calling device
CN103916395A (en) * 2014-04-09 2014-07-09 北京京东尚科信息技术有限公司 Method, device and system for service calling
CN105592022A (en) * 2014-11-07 2016-05-18 北京海尔广科数字技术有限公司 Equipment service call method and apparatus based on Alljoyn gateway

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108055072A (en) * 2017-11-20 2018-05-18 大唐软件技术股份有限公司 A kind of network failure investigates method and apparatus
WO2020191669A1 (en) * 2019-03-27 2020-10-01 京东方科技集团股份有限公司 System of internet of things, central control device, application device, and communication method
US11622005B2 (en) 2019-03-27 2023-04-04 Boe Technology Group Co., Ltd. Internet of Things system, central control device, application device and communication methods

Also Published As

Publication number Publication date
CN106230878B (en) 2020-02-14

Similar Documents

Publication Publication Date Title
AU2015218550C1 (en) Methods and apparatus for transmitting data
CN106664560A (en) Network capacity information acquisition method and device
CN112600693B (en) Service request processing method, system, electronic equipment and computer storage medium
WO2016173280A1 (en) Monitoring management method and apparatus
CN104936282A (en) Method and device for registering converged communication service
CN113630266B (en) Method and device for instantiating edge application server
CN107005435A (en) A kind of network service descriptor restocking method and device
CN105208654B (en) Notification message sending method and device
US11166176B2 (en) Method for determining establishment reason, and terminal
CN110912742B (en) Slice management method, device and system
US11930499B2 (en) Network monitoring in service enabler architecture layer (SEAL)
CN105323743A (en) Method and device for subscribing to resource change notices
CN105933271B (en) Data processing method and device based on encryption machine
CN106230878A (en) A kind of equipment service calling method based on AllJoyn framework and device
CN109600769B (en) Communication method and device
WO2022216315A1 (en) Location reporting for service enabler architecture layer (seal)
CN109873730B (en) Network slice test management method and related product
CN105263163A (en) Notification message sending method, device and system
WO2016197783A2 (en) Method and apparatus for controlling message transmission
CN109450702A (en) A kind of data processing method and device
CN108462657B (en) Method and equipment for acquiring resources and information of SDN (software defined network) of different operators
CN113676894B (en) Service processing method and equipment
CN112153580B (en) Method, equipment and system for setting MCPTT group
CN107211479B (en) Method and device for selecting access network
CN110996359B (en) Network control method, terminal and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant