CN116760800A - Query method and device capable of supporting equipment number, electronic equipment and readable medium - Google Patents

Query method and device capable of supporting equipment number, electronic equipment and readable medium Download PDF

Info

Publication number
CN116760800A
CN116760800A CN202310640183.2A CN202310640183A CN116760800A CN 116760800 A CN116760800 A CN 116760800A CN 202310640183 A CN202310640183 A CN 202310640183A CN 116760800 A CN116760800 A CN 116760800A
Authority
CN
China
Prior art keywords
equipment
query range
range
local
equipment number
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310640183.2A
Other languages
Chinese (zh)
Inventor
史鑫
龙宇锋
高锋
范科倩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Visionvera Information Technology Co Ltd
Original Assignee
Visionvera Information Technology 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 Visionvera Information Technology Co Ltd filed Critical Visionvera Information Technology Co Ltd
Priority to CN202310640183.2A priority Critical patent/CN116760800A/en
Publication of CN116760800A publication Critical patent/CN116760800A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5046Resolving address allocation conflicts; Testing of addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/14Systems for two-way working
    • H04N7/141Systems for two-way working between two video terminals, e.g. videophone
    • H04N7/147Communication arrangements, e.g. identifying the communication as a video-communication, intermediate storage of the signals

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Multimedia (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application provides a query method and device capable of supporting equipment numbers, electronic equipment and a readable medium, and belongs to the technical field of computers. The method comprises the following steps: taking the intermediate number in the equipment number query range of the local terminal equipment to obtain candidate equipment numbers; sending a test data packet through the server-side home terminal equipment based on the candidate equipment number; under the condition that the local terminal equipment receives the test data packet in the target time period, narrowing the upper boundary of the equipment number query range based on the candidate equipment number; under the condition that the local terminal equipment does not receive the test data packet in the target time period, increasing the lower boundary of the equipment number query range based on the candidate equipment number; under the condition that a reducible interval exists in the adjusted equipment number query range, re-executing the process of sending the test data packet to the local terminal equipment; and under the condition that the reduced equipment number query range does not have a reducible section, determining the value range of the supportable equipment number of the local equipment based on the adjusted equipment number query range.

Description

Query method and device capable of supporting equipment number, electronic equipment and readable medium
Technical Field
The application belongs to the technical field of computers, and particularly relates to a query method and device capable of supporting equipment numbers, electronic equipment and a readable medium.
Background
The service terminals typically carry out videophone multiplexing services through the device's sub-device number. If the device only supports 1 sub-device number, the usable range of the sub-device number is [0,0], and the terminal can only dial a video phone at the same time; if the device supports n sub-device numbers, the sub-device numbers may be available in the range of 0, n-1, and the terminal may dial up to n videophones at the same time.
When using the video telephone service of the terminal, sometimes the dialing of the video telephone is unsuccessful. This is because the number of the sub-device that is not supported by the device is used when the video phone is dialed, and thus the range of the number of the sub-device supported by the device needs to be known in advance to perform the service normally. The related art usually obtains the number range of the sub-device supported by the device by querying the network manager, but this approach is very inconvenient because the general user has no querying authority. Or alternatively, the possible sub-device numbers are sent to the devices in turn, and this way obviously requires a lot of time to be consumed when the range of the possible values of the sub-device numbers is larger, and the query process is tedious and has low efficiency.
Disclosure of Invention
The application provides a query method and device capable of supporting equipment numbers, electronic equipment and a readable medium.
Some embodiments of the present application provide a method for querying a supportable device number, where the method includes:
taking the intermediate number from the equipment number query range of the local equipment to obtain candidate equipment numbers;
the candidate equipment numbers are used as local sub-equipment numbers and remote sub-equipment numbers at the same time, and test data packets are sent through the local equipment at the server side;
narrowing the upper boundary of the equipment number query range based on the candidate equipment number under the condition that the local equipment receives the test data packet in the target time period;
under the condition that the local terminal equipment does not receive the test data packet in a target time period, increasing the lower boundary of the equipment number query range based on the candidate equipment number;
under the condition that a reducible section exists in the adjusted equipment number query range, re-executing the process of sending the test data packet to the local terminal equipment by utilizing the adjusted equipment number query range;
and under the condition that the reduced equipment number query range does not have a reducible section, determining the value range of the supportable equipment number of the local equipment based on the adjusted equipment number query range.
Optionally, the narrowing the upper boundary of the device number query range based on the candidate device number includes:
taking the value obtained after adding 1 to the candidate equipment number as the upper boundary of the equipment number query range;
the increasing the lower boundary of the device number query range based on the candidate device number includes:
and taking the value obtained after subtracting 1 from the candidate equipment number as the lower boundary of the equipment number query range.
Optionally, the determining the value range of the supportable device number of the home device based on the adjusted device number query range includes:
under the condition that the lower boundary value of the adjusted equipment number query range is positive, taking the lower boundary value of the adjusted equipment number query range as the maximum sub-equipment number of the local equipment;
and taking the value range from 0 to the maximum sub-equipment number as the value range of the supportable equipment number of the local terminal equipment.
Optionally, before the determining the value range of the supportable device number of the home device based on the adjusted device number query range, the method further includes:
and under the condition that the lower boundary value of the adjusted equipment number query range is negative, confirming that the transparent transmission service of the local terminal equipment has faults.
Optionally, after the determining the value range of the supportable device number of the home device based on the adjusted device number query range, the method further includes:
responding to the received dialing request, and taking a value from the value range of the supportable equipment number as a local sub-equipment number;
dialing is performed based on the local sub-device number.
Optionally, the sending, by the server, the test data packet by the local device includes:
and sending test data packets carrying the candidate devices to the local terminal device at intervals of a target time interval until a target number of the test data packets are sent.
Optionally, the method further comprises:
the target time period is determined based on the target time interval and the target number.
Some embodiments of the present application provide a query apparatus capable of supporting a device number, the apparatus including:
the sending module is used for obtaining the intermediate number from the equipment number query range of the local equipment to obtain candidate equipment numbers;
the candidate equipment numbers are used as local sub-equipment numbers and remote sub-equipment numbers at the same time, and test data packets are sent through the local equipment at the server side;
the adjusting module is used for reducing the upper boundary of the equipment number query range based on the candidate equipment number under the condition that the local equipment receives the test data packet in the target time period;
under the condition that the local terminal equipment does not receive the test data packet in a target time period, increasing the lower boundary of the equipment number query range based on the candidate equipment number;
under the condition that a reducible section exists in the adjusted equipment number query range, re-executing the process of sending the test data packet to the local terminal equipment by utilizing the adjusted equipment number query range;
and the query module is used for determining the value range of the supportable equipment number of the local equipment based on the adjusted equipment number query range under the condition that the reduced equipment number query range does not have a reducible section.
Optionally, the adjusting module is further configured to:
taking the value obtained after adding 1 to the candidate equipment number as the upper boundary of the equipment number query range;
and taking the value obtained after subtracting 1 from the candidate equipment number as the lower boundary of the equipment number query range.
Optionally, the adjusting module is further configured to:
under the condition that the lower boundary value of the adjusted equipment number query range is positive, taking the lower boundary value of the adjusted equipment number query range as the maximum sub-equipment number of the local equipment;
and taking the value range from 0 to the maximum sub-equipment number as the value range of the supportable equipment number of the local terminal equipment.
Optionally, the adjusting module is further configured to:
and under the condition that the lower boundary value of the adjusted equipment number query range is negative, confirming that the transparent transmission service of the local terminal equipment has faults.
Optionally, the apparatus further comprises: a dialing module for:
responding to the received dialing request, and taking a value from the value range of the supportable equipment number as a local sub-equipment number;
dialing is performed based on the local sub-device number.
Optionally, the sending module is further configured to:
and sending test data packets carrying the candidate devices to the local terminal device at intervals of a target time interval until a target number of the test data packets are sent.
Optionally, the sending module is further configured to:
the target time period is determined based on the target time interval and the target number.
Some embodiments of the application provide a computing processing device comprising:
a memory having computer readable code stored therein;
one or more processors, the computing processing device performing the method of querying supportable device numbers as described above when the computer readable code is executed by the one or more processors.
Some embodiments of the present application provide a non-transitory computer readable medium storing computer readable code which, when executed on a computing processing device, causes the computing processing device to perform the above-described method of querying supportable device numbers.
According to the query method, the query device, the electronic equipment and the readable medium for the supportable equipment number, the middle number is taken from the equipment number query range of the local terminal equipment to serve as the local terminal equipment number and the remote terminal equipment number, so that the service end sends the test data packet to the service end, the equipment number query range is narrowed according to the receiving condition of the test data packet, the equipment number query range is gradually narrowed until the equipment number query range cannot be further narrowed, the supportable equipment number value range of the local terminal equipment is determined based on the final equipment number query range, and the supportable equipment number value range of the equipment can be rapidly detected in a short time.
The foregoing description is only an overview of the present application, and is intended to be implemented in accordance with the teachings of the present application in order that the same may be more clearly understood and to make the same and other objects, features and advantages of the present application more readily apparent.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 schematically illustrates a flowchart of a method for querying a supportable device number according to some embodiments of the present application;
fig. 2 schematically illustrates a data transmission schematic diagram of a method for querying a supportable device number according to some embodiments of the present application;
FIG. 3 schematically illustrates a logic diagram of a method for querying a supportable device number according to some embodiments of the present application;
fig. 4 schematically illustrates a structural diagram of a query device capable of supporting device numbers according to some embodiments of the present application;
FIG. 5 schematically illustrates a block diagram of a computing processing device for performing methods according to some embodiments of the application;
fig. 6 schematically illustrates a memory unit for holding or carrying program code for implementing methods according to some embodiments of the application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Fig. 1 schematically shows a flow chart of a method for querying a supportable device number, where the method includes:
and step 101, taking the intermediate number from the equipment number query range of the local equipment to obtain candidate equipment numbers.
It should be noted that, the home terminal device may use a plurality of sub device numbers to initiate a plurality of electronic devices for video calls at the same time. The device number query range refers to a range of values of the sub-device number of the local device, which is usually determined by the software and hardware configuration of the local device, so that the device number query range of the local device is generally known, but the specific setting range of the sub-device number can be set by the user, and is not necessarily the same as the device number query range. In general, the device number query range is in the form of [ left, right ], then left is the upper boundary of the device number query range, right is the lower boundary of the device number query range, and in the case that the sub-device numbers are integers, for the local device capable of supporting multiple sub-device numbers, the value right of the lower boundary needs to be greater than the value left of the upper boundary, so as to ensure that the sub-device numbers can take multiple values.
In the embodiment of the application, before the user initiates the visual call by using the local terminal device, if the value range of the supportable device number of the local terminal device is not known, the situation that the visual call cannot be used possibly because the input sub-device number is not in the value range can be indicated, and at the moment, the local terminal device can be indicated to start to inquire the value range of the supportable device number by inputting the supportable device number inquiry request to the local terminal device.
Specifically, the local device obtains a device number query range of the local device by querying its own configuration, and then takes an intermediate value of the device number query range as a candidate device number. For example, when the upper boundary left of the device number query range is 0 and the lower boundary right is 199, the intermediate value 99 may be taken as the candidate device number, which is only described herein as an example, and the device number query range may be set according to the actual requirement, which is not limited herein.
Step 102, the candidate device number is used as a local sub-device number and a remote sub-device number at the same time, and a test data packet is sent through the local device at the server side.
In the embodiment of the present application, referring to fig. 2, in order to probe the value range of the supportable device number of the local device, the local device uses the candidate device number as the sub-device number and the remote terminal device number of the local terminal first based on the candidate device number, sends a test data packet carrying the candidate device number to the server, and after receiving the test data packet, the server sends the test data packet back to the local device.
Step 103, judging whether the local terminal equipment receives the test data packet in the target time terminal.
And 104, reducing the upper boundary of the equipment number query range based on the candidate equipment number under the condition that the local equipment receives the test data packet in the target time period.
Step 105, increasing the lower boundary of the device number query range based on the candidate device number under the condition that the local device does not receive the test data packet in the target time period.
In the embodiment of the application, if the local terminal equipment receives the test data packet, the candidate equipment number carried in the test data packet is in the value range of the supportable equipment number of the local terminal equipment. If the local terminal device does not receive the test data packet, the candidate device number carried in the test data packet is not in the value range of the supportable device number of the local terminal device. For both cases, the device number query range can be adjusted from the right side or the left side of the candidate device number based on the value of the candidate device number, so that the device number query range is reduced, and the adjusted device number query range gradually approaches to the value range of the supportable device number of the local device.
In the embodiment of the present application, the target time period may be 200ms, 300ms, 500ms, etc., and may specifically be set according to actual requirements, which is not limited herein. After the local terminal device sends the test data packet, the data packet received by the local terminal device is detected, if the test data packet is received in the target time period, it is indicated that the candidate device number is in the range of the supportable device number, at this time, the upper boundary of the query range of the device number can be adjusted based on the candidate device number, for example, the candidate device number is taken as the upper boundary, or the value adjacent to the candidate device number is taken as the new upper boundary, etc., and specifically, the adjustment mode of the upper boundary can be set according to the actual requirement, which is not limited herein. If the local device does not receive the test data packet within the target time period, it indicates that the candidate device number is out of the value range of the supportable device number, and at this time, the lower boundary of the device number query range may be adjusted based on the candidate device number, for example, the candidate device number is taken as a lower boundary, or data adjacent to the candidate device number is taken as a new lower boundary, etc., and specifically, an adjustment manner of the lower boundary may be set according to the actual requirement, which is not limited herein.
And step 106, judging whether a reducible section exists in the adjusted equipment number query range.
In the embodiment of the present application, the reducible section refers to a section in which at least two available integer values exist in the device number query range, and it can be understood that if only 1 available integer value exists in the adjusted device number query range, continuing to reduce the device number query range will not select the candidate device number, and the query process cannot be continued.
And step 107, when the reducible section exists in the adjusted equipment number query range, re-executing the process of sending the test data packet to the local terminal equipment by utilizing the adjusted equipment number query range.
In the embodiment of the present application, if the upper boundary of the adjusted equipment number query range is greater than the lower boundary, it is indicated that there is still a reducible section, and the value in the adjusted equipment number query range can be reduced to reduce the equipment number query range, and at this time, the adjusted equipment number query range can be used to execute steps 101 to 106 again to reduce the equipment number query range.
And step 108, determining the value range of the supportable equipment number of the local equipment based on the adjusted equipment number query range under the condition that the reduced equipment number query range does not have a reducible section.
In the embodiment of the application, if the upper boundary of the adjusted equipment number query range is smaller than or equal to the lower boundary, the adjusted equipment number query range is only an integer value, no reducible section exists, and the equipment number query range can not be continuously reduced again, so that the adjustment of the equipment number query range can be stopped. At this time, the lower boundary of the device number query range is the maximum device number supportable by the local device, so that the candidate device number from 0 to the value range of the supportable device number of the local device can be determined.
Assuming that the maximum possible value of the number of the sub-device is x, that is, the initial lower boundary of the device number query range of the local device is x, the longest query time Tmax of a query method capable of supporting the device number provided by some embodiments of the present application may refer to the following formula (1):
Tmax=100*3*(log2(x)+1) (1)
assuming that the maximum possible value of the sub-device number of the home device is 199, the longest query time required by the query method capable of supporting the device number according to some embodiments of the present application is 100×3×3 (log 2 (199) +1) =2400 ms, but the general query time is only several hundred ms in practical use. If the maximum possible value of the child device number of the home device is 65535, the longest query time is 100×3 (log 2 (65535) +1) =4800 ms.
The embodiment of the application takes the intermediate number from the equipment number query range of the local terminal equipment as the local terminal equipment number and the remote terminal equipment number, so that the server sends the test data packet to the server, and the equipment number query range is narrowed according to the receiving condition of the test data packet, so that the equipment number query range is gradually narrowed until the equipment number query range cannot be further narrowed, and the value range of the supportable equipment number of the local terminal equipment is determined based on the final equipment number query range, so that the value range of the supportable equipment number of the equipment can be rapidly detected in a short time.
Optionally, the step 103 includes: and taking the value obtained after adding 1 to the candidate equipment number as the upper boundary of the equipment number query range.
The step 104 includes: and taking the value obtained after subtracting 1 from the candidate equipment number as the lower boundary of the equipment number query range.
In the embodiment of the application, when the local terminal device receives the test data packet in the target time period, the candidate device number is added with 1 to be set as the upper boundary of the device number query range, so that the device number query range is gradually narrowed. In the case that the local device does not receive the test data packet within the target time period, the candidate device number is reduced by 1, and the candidate device number is reduced by 1 to be the lower boundary of the device number query range, so that the device number query range can be gradually reduced.
According to the embodiment of the application, the candidate device numbers are added or subtracted by 1 according to the receiving condition of the local terminal device on the test data packet to reduce the device number query range one by one, so that the value range of the supportable device number of the device can be queried rapidly, and each device number can be ensured not to be missed.
Optionally, the step 108 includes:
step 1081, when the lower boundary value of the adjusted device number query range is positive, using the lower boundary value of the adjusted device number query range as the maximum sub-device number of the home terminal device.
And step 1082, taking the range from 0 to the maximum sub-device number as the range of the supportable device number of the local terminal device.
In the embodiment of the application, when the lower boundary of the adjusted equipment number query range is a positive number, the transparent transmission service of the local equipment is described as having no fault, and the equipment number query range already contains the maximum sub-equipment number supportable by the local equipment, and at this time, the lower boundary of the equipment number query range is the maximum sub-equipment number of the local equipment because the lower boundary is greater than or equal to the upper boundary, and the value range of the supportable equipment number of the local equipment is 0 to the maximum sub-equipment number.
The embodiment of the application uses the lower boundary value of the finally obtained equipment number query range as the maximum supportable equipment number of the local equipment, thereby using 0 to the maximum sub-equipment number as the supportable equipment number value range of the local equipment, and rapidly querying the supportable equipment number value range of the equipment.
Optionally, before the step 108, the method further includes:
step 1083, when the lower boundary value of the adjusted device number query range is negative, determining that the transmission service of the local device has a fault.
In the embodiment of the application, the number of the sub-device supported by the device is usually a positive integer from 0 to n, so that the local device can also receive the test data packet under the condition that the lower boundary value is a negative number, which indicates that the transparent transmission service of the local device has a fault and can erroneously receive the test data packet carrying the device number outside the query range of the device number. At this time, a fault prompt can be sent out, the result of the query process is not adopted, and the query process is carried out again after the equipment is maintained normally.
When the lower boundary value of the equipment number query range is negative, the embodiment of the application confirms that the transparent transmission service has faults, and can discover equipment faults in time, thereby avoiding the influence of the equipment faults on the accuracy of the query process result and improving the accuracy of equipment supportable equipment number query.
Optionally, the step 102 includes: and sending test data packets carrying the candidate devices to the local terminal device at intervals of a target time interval until a target number of the test data packets are sent.
In the embodiment of the application, the network fluctuation of the transparent transmission service of the local terminal equipment is considered, and the test data packet can not be successfully transmitted at one time due to the network problem, so that the local terminal equipment can transmit 3, 4 and 5 test data packets to the local terminal equipment according to the target time intervals of 50ms, 100ms and 200ms, for example, so that the test data packet can be received by the local terminal equipment as much as possible when the candidate equipment number is in the value range of the supportable equipment number, and the success rate of the local terminal equipment for receiving the test data packet is improved.
Optionally, after the step 108, the method further includes:
in step 201, in response to the received dialing request, a value is taken as a local sub-device number from the range of values of the supportable device numbers.
Step 202, dialing based on the local sub-device number.
In the embodiment of the application, after the value range of the supportable equipment number of the local equipment is obtained by the query method of the supportable equipment numbers provided by some embodiments of the application, when a user sends a dialing request, the value in the value range of the supportable equipment number is used as a sub-equipment number and is distributed to a visual call, and the distributed sub-equipment number is used for dialing.
According to the embodiment of the application, the sub-equipment numbers extracted from the queried value range of the supportable equipment numbers are used for dialing, so that the condition that the visual call fails due to invalid value of the sub-equipment numbers is avoided, and the reliability of the visual call is ensured.
Optionally, the method further comprises: the target time period is determined based on the target time interval and the target number.
In the embodiment of the present application, the time for the home terminal device to wait for receiving the test data packet after sending the test data packet may be related to the target number and the target time interval for the home terminal device to send the test data packet, for example, the target time period may be set to be not less than 400ms when the home terminal device sends one test data packet every 100ms for a total of 4, and the target time period may be set to be not less than 450ms when the home terminal device sends one test data packet every 150ms for a total of 3. Of course, the description is merely exemplary in nature and, thus, may be set forth in accordance with the actual needs and is not limited in this regard,
for example, referring to fig. 3, assuming that the device number query range of the local device is 0-199, the method for querying supportable device numbers according to some embodiments of the present application may query the maximum sub-device number of the local device by:
s1, let left (lower boundary) be 0, right (upper boundary) be 199, and query scope be [ left, right ];
s2, calculating an intermediate value, and marking the intermediate value as mid (intermediate value);
s3, using mid as a local sub-equipment number and a remote sub-equipment number in the transparent transmission parameter, recording the mid in a data part, and sending a test data packet to the user. Every 100ms, 3 in total;
s4, whether at least one packet with the data part of mid is received in 300 ms;
s5, if yes, mac (local terminal equipment) supports sub-equipment number mid, left is updated to mid+1, namely the next query range is [ mid+1, right ];
s6, if not, mac does not support the sub-device number mid, and updating right to mid-1, namely, the next query range is [ left, mid-1];
s7, whether the updated query range meets the following conditions: left < = right; if yes, repeating the steps S2-S7;
s8, if not, the right value right of the query range is the maximum sub-equipment number supported by mac; if right is equal to-1, the transparent transmission service has a problem; if right is not equal to-1, then the supported range is [0, right ].
Fig. 4 schematically illustrates a schematic structural diagram of a device number supportable query apparatus 30 according to the present application, where the apparatus includes:
a sending module 301, configured to obtain a candidate device number by taking a middle number from a device number query range of the local device;
the candidate equipment numbers are used as local sub-equipment numbers and remote sub-equipment numbers at the same time, and test data packets are sent through the local equipment at the server side;
an adjustment module 302, configured to reduce, when the local device receives the test data packet in the target period of time, an upper boundary of the device number query range based on the candidate device number;
under the condition that the local terminal equipment does not receive the test data packet in a target time period, increasing the lower boundary of the equipment number query range based on the candidate equipment number;
under the condition that a reducible section exists in the adjusted equipment number query range, re-executing the process of sending the test data packet to the local terminal equipment by utilizing the adjusted equipment number query range;
and a query module 303, configured to determine a value range of the supportable device number of the home terminal device based on the adjusted device number query range when the reduced device number query range does not have a reducible section.
Optionally, the adjusting module 302 is further configured to:
taking the value obtained after adding 1 to the candidate equipment number as the upper boundary of the equipment number query range;
and taking the value obtained after subtracting 1 from the candidate equipment number as the lower boundary of the equipment number query range.
Optionally, the adjusting module 302 is further configured to:
under the condition that the lower boundary value of the adjusted equipment number query range is positive, taking the lower boundary value of the adjusted equipment number query range as the maximum sub-equipment number of the local equipment;
and taking the value range from 0 to the maximum sub-equipment number as the value range of the supportable equipment number of the local terminal equipment.
Optionally, the adjusting module 302 is further configured to:
and under the condition that the lower boundary value of the adjusted equipment number query range is negative, confirming that the transparent transmission service of the local terminal equipment has faults.
Optionally, the apparatus further comprises: a dialing module for:
responding to the received dialing request, and taking a value from the value range of the supportable equipment number as a local sub-equipment number;
dialing is performed based on the local sub-device number.
Optionally, the sending module 301 is further configured to:
and sending test data packets carrying the candidate devices to the local terminal device at intervals of a target time interval until a target number of the test data packets are sent.
Optionally, the sending module 301 is further configured to:
the target time period is determined based on the target time interval and the target number.
The embodiment of the application takes the intermediate number from the equipment number query range of the local terminal equipment as the local terminal equipment number and the remote terminal equipment number, so that the server sends the test data packet to the server, and the equipment number query range is narrowed according to the receiving condition of the test data packet, so that the equipment number query range is gradually narrowed until the equipment number query range cannot be further narrowed, and the value range of the supportable equipment number of the local terminal equipment is determined based on the final equipment number query range, so that the value range of the supportable equipment number of the equipment can be rapidly detected in a short time.
The above described embodiments of the apparatus are only illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present application without undue burden.
Various component embodiments of the application may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that some or all of the functions of some or all of the components in a computing processing device according to embodiments of the present application may be implemented in practice using a microprocessor or Digital Signal Processor (DSP). The present application can also be implemented as an apparatus or device program (e.g., a computer program and a computer program product) for performing a portion or all of the methods described herein. Such a program embodying the present application may be stored on a non-transitory computer readable medium, or may have the form of one or more signals. Such signals may be downloaded from an internet website, provided on a carrier signal, or provided in any other form.
For example, FIG. 5 illustrates a computing processing device in which methods according to the present application may be implemented. The computing processing device conventionally includes a processor 410 and a computer program product in the form of a memory 420 or a non-transitory computer readable medium. The memory 420 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Memory 420 has storage space 430 for program code 431 for performing any of the method steps described above. For example, the memory space 430 for the program code may include individual program code 431 for implementing the various steps in the above method, respectively. The program code can be read from or written to one or more computer program products. These computer program products comprise a program code carrier such as a hard disk, a Compact Disc (CD), a memory card or a floppy disk. Such a computer program product is typically a portable or fixed storage unit as described with reference to fig. 6. The storage unit may have memory segments, memory spaces, etc. arranged similarly to the memory 420 in the computing processing device of fig. 5. The program code may be compressed, for example, in a suitable form. Typically, the storage unit comprises computer readable code 431', i.e. code that can be read by a processor, such as 410, for example, which when run by a computing processing device causes the computing processing device to perform the steps in the method described above.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited in order and may be performed in other orders, unless explicitly stated herein. Moreover, at least some of the steps in the flowcharts of the figures may include a plurality of sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, the order of their execution not necessarily being sequential, but may be performed in turn or alternately with other steps or at least a portion of the other steps or stages.
Reference herein to "one embodiment," "an embodiment," or "one or more embodiments" means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the application. Furthermore, it is noted that the word examples "in one embodiment" herein do not necessarily all refer to the same embodiment.
In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the application may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The application may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, third, etc. do not denote any order. These words may be interpreted as names.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (10)

1. A method for querying a supportable device number, the method comprising:
taking the intermediate number from the equipment number query range of the local equipment to obtain candidate equipment numbers;
the candidate equipment numbers are used as local sub-equipment numbers and remote sub-equipment numbers at the same time, and test data packets are sent through the local equipment at the server side;
narrowing the upper boundary of the equipment number query range based on the candidate equipment number under the condition that the local equipment receives the test data packet in the target time period;
under the condition that the local terminal equipment does not receive the test data packet in a target time period, increasing the lower boundary of the equipment number query range based on the candidate equipment number;
under the condition that a reducible section exists in the adjusted equipment number query range, re-executing the process of sending the test data packet to the local terminal equipment by utilizing the adjusted equipment number query range;
and under the condition that the reduced equipment number query range does not have a reducible section, determining the value range of the supportable equipment number of the local equipment based on the adjusted equipment number query range.
2. The method of claim 1, wherein the narrowing the upper boundary of the device number query range based on the candidate device number comprises:
taking the value obtained after adding 1 to the candidate equipment number as the upper boundary of the equipment number query range;
the increasing the lower boundary of the device number query range based on the candidate device number includes:
and taking the value obtained after subtracting 1 from the candidate equipment number as the lower boundary of the equipment number query range.
3. The method of claim 2, wherein the determining the range of supportable device numbers of the home device based on the adjusted device number query range comprises:
under the condition that the lower boundary value of the adjusted equipment number query range is positive, taking the lower boundary value of the adjusted equipment number query range as the maximum sub-equipment number of the local equipment;
and taking the value range from 0 to the maximum sub-equipment number as the value range of the supportable equipment number of the local terminal equipment.
4. The method of claim 3, wherein prior to said determining a range of supportable device numbers for the home device based on the adjusted device number query range, the method further comprises:
and under the condition that the lower boundary value of the adjusted equipment number query range is negative, confirming that the transparent transmission service of the local terminal equipment has faults.
5. The method of claim 1, wherein after the determining the range of supportable device numbers of the home device based on the adjusted device number query range, the method further comprises:
responding to the received dialing request, and taking a value from the value range of the supportable equipment number as a local sub-equipment number;
dialing is performed based on the local sub-device number.
6. The method according to claim 1, wherein the sending, by the server, the test packet by the home device includes:
and sending test data packets carrying the candidate devices to the local terminal device at intervals of a target time interval until a target number of the test data packets are sent.
7. The method of claim 6, wherein the method further comprises:
the target time period is determined based on the target time interval and the target number.
8. A query apparatus capable of supporting a device number, the apparatus comprising:
the sending module is used for obtaining the intermediate number from the equipment number query range of the local equipment to obtain candidate equipment numbers;
the candidate equipment numbers are used as local sub-equipment numbers and remote sub-equipment numbers at the same time, and test data packets are sent through the local equipment at the server side;
the adjusting module is used for reducing the upper boundary of the equipment number query range based on the candidate equipment number under the condition that the local equipment receives the test data packet in the target time period;
under the condition that the local terminal equipment does not receive the test data packet in a target time period, increasing the lower boundary of the equipment number query range based on the candidate equipment number;
under the condition that a reducible section exists in the adjusted equipment number query range, re-executing the process of sending the test data packet to the local terminal equipment by utilizing the adjusted equipment number query range;
and the query module is used for determining the value range of the supportable equipment number of the local equipment based on the adjusted equipment number query range under the condition that the reduced equipment number query range does not have a reducible section.
9. A computing processing device, comprising:
a memory having computer readable code stored therein;
one or more processors, the computing processing device performing the method of querying supportable device numbers as recited in any of claims 1-7 when the computer readable code is executed by the one or more processors.
10. A non-transitory computer readable medium storing computer readable code which, when executed on a computing processing device, causes the computing processing device to perform a method of querying supportable device numbers as claimed in any of claims 1-7.
CN202310640183.2A 2023-05-31 2023-05-31 Query method and device capable of supporting equipment number, electronic equipment and readable medium Pending CN116760800A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310640183.2A CN116760800A (en) 2023-05-31 2023-05-31 Query method and device capable of supporting equipment number, electronic equipment and readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310640183.2A CN116760800A (en) 2023-05-31 2023-05-31 Query method and device capable of supporting equipment number, electronic equipment and readable medium

Publications (1)

Publication Number Publication Date
CN116760800A true CN116760800A (en) 2023-09-15

Family

ID=87946977

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310640183.2A Pending CN116760800A (en) 2023-05-31 2023-05-31 Query method and device capable of supporting equipment number, electronic equipment and readable medium

Country Status (1)

Country Link
CN (1) CN116760800A (en)

Similar Documents

Publication Publication Date Title
CN108810116B (en) Message processing method and related product
CN109788027A (en) Method of data synchronization, device, server and computer storage medium
CN111935694B (en) Bluetooth device connection method and device, electronic device and readable storage medium
CN107734592B (en) core network selection method, access network entity, UE and system
CN110493810B (en) Method, device, equipment and medium for detecting recording notification fault
WO2022089313A1 (en) Communication processing method and apparatus, storage medium, chip and related device
CN111309693A (en) Data synchronization method, device and system, electronic equipment and storage medium
CN105407470A (en) Scheduling-based method for replying to call and communication terminal
CN112788090B (en) Network resource transmission method, device and system
CN116760800A (en) Query method and device capable of supporting equipment number, electronic equipment and readable medium
CN111787262A (en) Method, system, equipment and storage medium for local area network audio and video call
CN103974215B (en) Control method of electronic device and electronic equipment
CN111200512B (en) Network connection disaster recovery method, terminal equipment, storage medium and electronic equipment
CN108834127B (en) Terminal loss reporting method, device, terminal and system
CN110719586B (en) Service establishing method, device and server
CN112637121A (en) Data port updating method and device, electronic equipment and readable storage medium
CN112104755A (en) Interactive control method, device and equipment
CN114916056B (en) Data network name acquisition method, system, base station, terminal and storage medium
CN105407232A (en) Incoming call warning methods and system, and devices
CN111246023A (en) Identity recognition method, network communication platform, calling terminal and electronic equipment
CN110858815A (en) Method, device, equipment and storage medium for configuring intelligent home gateway
CN116634384B (en) Terminal equipment searching method, system and storage medium thereof
CN110519149B (en) Message pushing method and application system thereof
CN113891385B (en) Method, device and equipment for detecting link state of network equipment
CN113051085B (en) Service calling method, device, server and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination