Method and communication system for controlling POC communication module by AT instruction

文档序号:38612 发布日期:2021-09-24 浏览:36次 中文

阅读说明:本技术 一种使用at指令控制poc通信模块的方法及通讯系统 (Method and communication system for controlling POC communication module by AT instruction ) 是由 刘建伟 贺京生 于 2021-08-27 设计创作,主要内容包括:本发明属于通讯领域,具体涉及使用AT指令控制POC通信模块的方法及通讯系统。该方法包括:S1、从用户终端读取应用单元发送的请求AT指令,并进行初步筛查,剔除无效请求AT指令;S2、将初步筛查后的请求AT指令排序得到待发送的请求指令队列,并确认当前的请求AT指令;S3、通过应用单元发送请求AT指令到POC通信模块;S4、判断所述POC通信模块是否为响应状态,立即响应则执行同步响应操作;超时未响应时,执行异步响应操作;S5、将响应后的执行结果以返回AT指令发回相对应的应用单元,完成所述当前请求AT指令的执行,并返回S3中,向POC通信模块发送请求指令队列中的下一项请求AT指令。本发明解决了公网对讲业务复杂,无法进行多种功能的应用的问题。(The invention belongs to the field of communication, and particularly relates to a method and a communication system for controlling a POC (point-of-sale) communication module by using an AT (access point) instruction. The method comprises the following steps: s1, reading a request AT instruction sent by the application unit from the user terminal, carrying out primary screening, and eliminating an invalid request AT instruction; s2, sequencing the preliminarily screened request AT instructions to obtain a request instruction queue to be sent, and confirming the current request AT instruction; s3, sending a request AT instruction to the POC communication module through the application unit; s4, judging whether the POC communication module is in response state, and executing synchronous response operation if the POC communication module immediately responds; when the timeout does not respond, executing asynchronous response operation; and S5, sending the response execution result back to the corresponding application unit by the AT command, completing the execution of the current request AT command, and returning to S3, and sending the next request AT command in the request command queue to the POC communication module. The invention solves the problems that the public network talkback service is complex and can not be applied with various functions.)

1. A method for controlling POC communication module by AT command is used for calling POC communication module to make cluster communication for POC related application unit of user terminal; the method is characterized by comprising the following steps:

reading request AT instructions sent by all application units from a user terminal, primarily screening the read request AT instructions, and eliminating invalid request AT instructions;

sequencing the request AT instructions after the preliminary screening is finished to obtain a request instruction queue to be sent, and confirming the current request AT instructions from the request instruction queue;

acquiring an application unit corresponding to a current request AT instruction, and sending the request AT instruction corresponding to the application to a POC communication module through the application unit;

receiving an AT request instruction by the POC communication module, judging whether the POC communication module is in a response state, and executing synchronous response operation if the POC communication module immediately responds; when the timeout does not respond, executing asynchronous response operation;

and the POC communication module returns the responded execution result to the corresponding application unit by the AT request, completes the execution of the current AT request command, returns to the request command queue and sends the next AT request command in the request command queue to the POC communication module.

2. The method for controlling a POC communication module using an AT command according to claim 1, wherein: the request AT instruction consists of a command header, a length and a carrying content; the command head is a fixed character string, the length is 1 byte occupied by hexadecimal number, and the length is the length of a character string carrying content; the portable content adopts standard ASCII code characters, all numbers contained in the portable content adopt decimal representation, and a plurality of parameters contained in the portable content adopt character separation.

3. The method for controlling a POC communication module using AT commands according to claim 1 or 2, wherein: the method for performing preliminary screening by the read request AT instruction comprises the following steps:

sequentially judging whether the read request AT instructions are repeated with the previous request AT instructions, if so, rejecting the redundant request AT instructions, otherwise, reserving the request AT instructions;

and sequentially judging whether the logic of the command format corresponding to each read request AT instruction accords with the specification, if so, retaining the effective request AT instruction, otherwise, judging the request AT instruction as an invalid request AT instruction, and rejecting the invalid request AT instruction.

4. The method of controlling a POC communication module using an AT command according to claim 3, wherein: the method for confirming the current request AT instruction from the request instruction queue comprises the following steps:

reading all effective request AT instructions reserved after the preliminary screening, and sequencing according to the sequence of reading time to obtain a request instruction queue to be sent;

and taking the head item of the request instruction queue as the current request AT instruction.

5. The method for controlling a POC communication module using an AT command according to claim 2, wherein: the return AT instruction consists of a command header and a result, or consists of a command header, a result and content; the command header of the return AT command is the same as the command header of the corresponding request AT command, the command header is a fixed character string, the content of the return AT command is the same as the carried content of the corresponding request AT command, and commas are adopted to separate the command header, the content and the result.

6. The method for controlling a POC communication module using an AT command according to claim 1, wherein: when synchronous response operation is executed, the POC communication module immediately sends an execution result back to the application unit through an AT returning instruction after receiving a current request AT instruction response sent by the application unit, and completes the execution of the current request AT instruction;

when asynchronous response operation is executed, when the POC communication module responds to the received current request AT command sent by the application unit, processing is started, and the execution result is sent back to the application unit through the return AT command, so that the execution of the current request AT command is completed.

7. The method of controlling a POC communication module using AT commands according to claim 6, wherein: before the POC communication module receives the overtime non-response of the current request AT instruction sent by the application unit, the response result is reported to the application unit, the application unit returns to the request instruction queue without waiting for the return AT instruction sent back by the POC communication module, and the next request AT instruction in the request instruction queue is sent to the POC communication module.

8. A communication system, characterized by: the communication system adopts the method for controlling the POC communication module by using the AT instruction in any one of claims 1 to 7 to realize that the POC related application unit of the user terminal calls the POC communication module to carry out the clustering communication; the communication system includes:

the request reading module is used for reading all the request AT instructions to be sent from all the application units from the user terminal;

the current request screening module is used for preliminarily screening all read request AT instructions, eliminating invalid request AT instructions, sequencing to obtain a request instruction queue to be sent, and taking the first item of the request instruction queue as the current request AT instruction;

the request sending module is used for sending the current request AT instruction to the POC communication module;

and the response execution module is used for executing synchronous response operation or asynchronous reporting and asynchronous response operation on the received request AT instruction, and sending an execution result back to the corresponding application unit in a mode of returning the AT instruction.

9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 7.

10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.

Technical Field

The invention belongs to the field of communication, and particularly relates to a method and a communication system for controlling a POC (point-of-sale) communication module by using an AT (access point) instruction.

Background

POC is an abbreviation of Push to Talk over Cellular, and refers to a half-duplex voice service implemented by using VoIP technology based on a mobile Cellular network packet domain bearer, and can support rich talkback applications such as one-to-one session, one-to-many group session, full call, and strong insertion. A "one-to-one" or "one-to-many" call can be conducted quickly, just as with a walkie-talkie. Because the cellular communication system is based on a mature operator, cross-regional calling can be conveniently realized. This feature is suitable for small and medium-sized businesses that require frequent intermediate contacts and for individual users who need to chat with friends and family. The method is widely applied to logistics, motorcade, port, city management and other industries at present.

POC communication, as a fast communication method between one-to-one or groups, enables a terminal device to be utilized like a radio transceiver. Communication between groups is performed using SIP (RFC 3216) which is a network protocol, and a network of mobile phones is used. However, the existing POC communication is performed by using the above network protocol, which has the advantages of low cost, good applicability and good expansibility, but since the public network talkback service is complex and there are many signaling and voice interactions with the platform, developers who need to develop talkback applications need strong expertise, which results in slow popularization.

Disclosure of Invention

The invention provides a method and a communication system for controlling a POC communication module by using an AT instruction, aiming AT solving the problems that the public network talkback service is complex and can not be applied with multiple functions in the prior art.

The invention is realized by adopting the following technical scheme:

a method for using AT order to control POC communication module is used to call POC communication module to carry out cluster communication for POC related application unit of user terminal; the method for controlling the POC communication module by using the AT command comprises the following steps:

reading request AT instructions sent by all application units from a user terminal, primarily screening the read request AT instructions, and eliminating invalid request AT instructions;

step two, ordering the request AT instructions after the preliminary screening is finished to obtain a request instruction queue to be sent, and confirming the current request AT instruction from the request instruction queue;

acquiring an application unit corresponding to the current request AT instruction, and sending the request AT instruction corresponding to the application to the POC communication module through the application unit;

step four, the POC communication module receives an AT request instruction, judges whether the POC communication module is in a response state or not, and executes synchronous response operation if the POC communication module immediately responds; when the timeout does not respond, executing asynchronous response operation;

step five, the POC communication module returns the execution result after response to the corresponding application unit by the AT command, completes the execution of the current request AT command, returns the request command queue in step three, and sends the next request AT command in the request command queue to the POC communication module.

Further, the request AT instruction consists of a command header, a length and a carrying content; the command head is a fixed character string, the length is 1 byte occupied by hexadecimal number, and the length is the length of a character string carrying content; the portable content adopts standard ASCII code characters, all numbers contained in the portable content adopt decimal representation, and a plurality of parameters contained in the portable content adopt character separation.

Further, in step one, the method for performing preliminary screening by the read request AT command includes:

(1) sequentially judging whether the read request AT instructions are repeated with the previous request AT instructions, if so, rejecting the redundant request AT instructions, otherwise, reserving the request AT instructions;

(2) and sequentially judging whether the logic of the command format corresponding to each read request AT instruction accords with the specification, if so, retaining the effective request AT instruction, otherwise, judging the request AT instruction as an invalid request AT instruction, and rejecting the invalid request AT instruction.

Further, in step two, the method for confirming the current AT command from the AT command queue includes:

reading all effective request AT instructions reserved after the preliminary screening, and sequencing according to the sequence of reading time to obtain a request instruction queue to be sent;

and taking the head item of the request instruction queue as the current request AT instruction.

Further, the return AT instruction consists of a command header and a result; the command header of the returned AT command is the same as the command header of the corresponding request AT command, the command header is a fixed character string, and the command header and the result are separated by commas.

Further, the return AT instruction further includes content, and the return AT instruction is composed of a command header, a result, and content; the command header of the return AT instruction is the same as the command header of the corresponding request AT instruction, the command header is a fixed character string, the content of the return AT instruction is the same as the carried content of the corresponding request AT instruction, and the command header, the content and the result are separated by commas.

Further, in step four, when the synchronous response operation is executed, after receiving the response of the current request AT command sent by the application unit, the POC communication module immediately sends the execution result back to the application unit through the return AT command, thereby completing the execution of the current request AT command.

When asynchronous response operation is executed, when the POC communication module responds to the received current request AT command sent by the application unit, processing is started, and the execution result is sent back to the application unit through the return AT command, so that the execution of the current request AT command is completed.

Further, before the POC communication module receives a timeout non-response of the current AT request command sent by the application unit, the application unit reports the response result to the application unit, and the application unit does not wait for the POC communication module to send back the AT request command, and returns to step three, and sends the next AT request command in the AT request command queue to the POC communication module.

Furthermore, the overtime unresponsiveness of the invention is judged according to an overtime mechanism, the overtime time is 3s, when the overtime time is within 3s, synchronous response operation is executed, and when the overtime unresponsiveness exceeds 3s, asynchronous response operation is executed.

The invention also comprises a communication system, wherein the communication system adopts the method for controlling the POC communication module by using the AT instruction to realize that the POC related application unit of the user terminal calls the POC communication module to carry out the clustering communication; the communication system comprises a request reading module, a current request screening module, a request sending module and a response execution module.

The request reading module is used for reading all the request AT instructions to be sent from all the application units from the user terminal;

the current request screening module is used for preliminarily screening all read request AT instructions, eliminating invalid request AT instructions, sequencing to obtain a request instruction queue to be sent, and taking the first item of the request instruction queue as the current request AT instruction;

the request sending module is used for sending the current request AT instruction to the POC communication module;

the response execution module is used for executing synchronous response operation or asynchronous reporting and executing asynchronous response operation on the received request AT command, and sending an execution result back to the corresponding application unit in a mode of returning the AT command.

The technical scheme provided by the invention has the following beneficial effects:

the technical scheme provided by the invention can call the POC communication module to carry out clustering communication on the POC related application unit of the user terminal in the communication system, collect the request AT instruction sent by the user program, send the current request to the POC communication module, and when the current request is synchronously responded immediately, after one request is finished in each execution, the application unit can execute the result application unit and continue the sending and responding of the next request; when overtime does not respond, the asynchronous report is also carried out to the application unit, so that the application unit does not need to wait, the next request is directly sent and responded, the connection time can be shortened, reasonable scheduling and ordered execution are carried out, the problems of request AT instruction backlog or communication connection overtime are avoided, and the next POC communication operation can be started in advance.

The AT instruction is utilized to control the POC communication module and carry out connection and communication operation between the application unit and the POC communication module, the complexity of control over equipment is greatly simplified, developers do not need to be concentrated on development of talkback application, only the function of the POC communication module needs to be called, application with multiple functions of conveniently carrying out public network talkback function can be developed, modularization of cluster communication function can be quickly and easily realized, professional cluster communication terminals of various integrated POC services are developed, and the development flow of the cluster communication terminals is simplified.

Drawings

The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings:

fig. 1 is a flowchart of a method for controlling a POC communication module using an AT command according to embodiment 1 of the present invention.

Fig. 2 is a flowchart of requesting AT command preliminary screening in the method for controlling POC communication module using AT command in embodiment 1 of the present invention.

Fig. 3 is a flowchart illustrating AT command confirmation being currently requested in the method for controlling POC communication module using AT command in embodiment 1 of the present invention.

Fig. 4 is a block diagram of a communication system according to embodiment 2 of the present invention.

Fig. 5 is a logic architecture diagram of an implementation principle of the communication system in embodiment 2 of the present invention.

Fig. 6 is a flowchart of a method for controlling a POC communication module using an AT command in embodiment 5 of the present invention.

Detailed Description

In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

The method for controlling the POC communication module by using the AT instruction enables a developer to develop applications with various functions which are convenient for carrying out public network talkback function without concentrating on the development of talkback application and only calling the function of the POC communication module, can quickly and easily understand and realize the modularization of the trunking communication function, develops various professional trunking communication terminals integrating POC services, and simplifies the development process of the trunking communication terminal.

Example 1

As shown in fig. 1, the present embodiment provides a method for controlling a POC communication module using an AT command, where the method is used for calling the POC communication module to perform a trunking communication for a POC-related application unit of a user equipment; the method comprises the following steps:

s1: reading request AT instructions sent by all application units from a user terminal, primarily screening the read request AT instructions, and eliminating invalid request AT instructions;

s2: sequencing the request AT instructions after the preliminary screening is finished to obtain a request instruction queue to be sent, and confirming the current request AT instructions from the request instruction queue;

s3: acquiring an application unit corresponding to a current request AT instruction, and sending the request AT instruction corresponding to the application to a POC communication module through the application unit;

s4: receiving an AT request instruction by the POC communication module, judging whether the POC communication module is in a response state, and executing synchronous response operation if the POC communication module immediately responds; when the timeout does not respond, executing asynchronous response operation;

s5: the POC communication module returns the AT command to the corresponding application unit to complete the execution of the current AT command request, returns to the AT command request queue in step S3, and sends the next AT command request in the AT command request queue to the POC communication module.

In this embodiment, the request AT command consists of a command header, a length and a carrying content. The format is as follows:

command head Length (length of carrying content) Carrying content

The command header is a fixed character string, and the length is 1 byte occupied by hexadecimal number, which is the length of a character string carrying content. The portable content adopts standard ASCII code characters, all numbers contained in the portable content adopt decimal representation, and a plurality of parameters contained in the portable content adopt character separation.

In this embodiment, the return AT command consists of a command header and a result, and may also consist of a command header, a result and contents. The return AT instruction may carry a result field as a result of the response to indicate whether the command is successfully executed, and may also carry response content, and whether the return AT instruction contains content is an optional item to indicate an effect after the simple synchronization command is executed. The format of the return AT command is as follows:

command head Results Contents (optional)

The command header of the return AT command is the same as the command header of the corresponding request AT command, the command header is a fixed character string, the content of the return AT command is the same as the content carried by the corresponding request AT command, and the command header, the content and the result are separated by commas.

In S1 of the present embodiment, please refer to fig. 2, the method for reading the AT request instruction for preliminary screening includes:

s11, sequentially judging whether the read request AT instructions are repeated with the previous request AT instructions, if so, eliminating the redundant request AT instructions, otherwise, reserving the request AT instructions;

s12, sequentially judging whether the logic of the command format corresponding to each read request AT instruction accords with the specification, if so, reserving the effective request AT instruction, otherwise, judging the request AT instruction as an invalid request AT instruction and rejecting the invalid request AT instruction.

After all the read request AT instructions are preliminarily screened, repeated items and invalid instructions which do not conform to the format of the request AT instructions can be removed, the validity of each request AT instruction is ensured, so that the execution efficiency is improved when POC communication is carried out, and the problems of request AT instruction backlog or communication connection overtime caused by the fact that no response can be obtained due to the fact that the invalid request AT instructions are sent are avoided.

In this embodiment, referring to fig. 3, in S2, the method for confirming the current AT request instruction from the AT request instruction queue includes:

s21, reading all the effective request AT instructions reserved after the preliminary screening, and sequencing according to the sequence of the reading time to obtain a request instruction queue to be sent;

and S22, taking the head item of the request instruction queue as the current request AT instruction.

The operation can not only sort the screened effective request AT commands, but also execute the request sending operation from the first request AT command, so that the POC communication is carried out orderly.

In this embodiment, in S4, when determining whether the POC communication module is responding to a timeout, the POC communication module determines according to a timeout mechanism, and in this embodiment, taking the timeout time as 3S as an example, when the POC communication module responds within 3S, a synchronous response operation is performed, and when the POC communication module does not respond after exceeding 3S, an asynchronous response operation is performed.

When synchronous response operation is executed, the POC communication module immediately sends an execution result back to the application unit through the return AT command after receiving the response of the current request AT command sent by the application unit, and the execution of the current request AT command is completed.

When asynchronous response operation is executed, when the POC communication module responds to the received current request AT command sent by the application unit, processing is started, and the execution result is sent back to the application unit through the return AT command, so that the execution of the current request AT command is completed.

Reporting the response result to the application unit in the unresponsive time period before executing the asynchronous response, that is, the response result is not responded after exceeding 3S, and reporting the response result to the application unit in the first time while judging that the asynchronous response operation is executed after exceeding 3S, but the application unit does not need to wait for the POC communication module to send back the AT request, and directly returns to S3, and sends the next AT request command in the request command queue to the POC communication module. The communication connection time can be greatly shortened, and the next POC communication operation can be started in advance.

The method for controlling the POC communication module using the AT command in this embodiment may be designed as an application software, such as a communication system, and further loads the communication system into the terminal device to implement corresponding trunking communication.

Example 2

As shown in fig. 4 and 5, in an embodiment of the present invention, a communication system includes: the device comprises a request reading module, a current request screening module, a request sending module and a response execution module.

The request reading module is used for reading all the request AT instructions to be sent from all the application units from the user terminal;

the current request screening module is used for preliminarily screening all read request AT instructions, eliminating invalid request AT instructions, sequencing to obtain a request instruction queue to be sent, and taking the first item of the request instruction queue as the current request AT instruction;

the request sending module is used for sending the current request AT instruction to the POC communication module;

the response execution module is used for executing synchronous response operation or asynchronous reporting and executing asynchronous response operation on the received request AT command, and sending an execution result back to the corresponding application unit in a mode of returning the AT command.

The steps of the method for controlling the POC communication module using the AT command are adopted in the communication system, and therefore, the operation process of the communication system is not described in detail in this embodiment.

Example 3

Referring to fig. 6, in an embodiment of the present invention, a method for controlling a POC communication module using an AT command is provided, which may further include:

s101, reading all request AT instructions sent by an application unit from a user terminal, primarily screening the read request AT instructions, and eliminating invalid request AT instructions;

s102, sequencing the request AT instructions subjected to the preliminary screening to obtain a request instruction queue to be sent, and confirming the current request AT instructions from the request instruction queue;

s103, sending a request AT instruction corresponding to the application to the POC communication module through the application unit;

s104, the POC communication module receives an AT request instruction, judges whether the POC communication module is in a response state or not, and executes synchronous response operation if the POC communication module immediately responds; when the timeout does not respond, executing asynchronous response operation;

s105, the POC communication module sends the responded execution result back to the corresponding application unit as the AT command, completes the execution of the current AT command request, and returns to the AT command request queue in step S103, and sends the next AT command request in the AT command request queue to the POC communication module.

In this embodiment, the method for performing the preliminary screening by the read request AT command in step S101 and the method for confirming the current request AT command from the request command queue in step S102 are the same as those in embodiment 1.

In this embodiment, by reading all the request AT instructions sent by an application unit AT the user terminal, the request AT instructions of the application unit can be screened, unnecessary items are removed, the other valid items are sorted and request is generated one by one, the request is executed after response, the execution result is reported as a synchronous response after the execution is completed, and the response of all the request AT instruction items is completed. As in embodiment 1, in this embodiment, the synchronous command includes a request and a response, the command headers of the request and the response are the same, and the response of the synchronous command may carry a result field to indicate whether the command is successfully executed, and may also carry response content to indicate the effect after the simple synchronous command is executed.

In the present invention, specifically, the format of the request AT instruction and the return AT instruction corresponding to the request AT instruction included in the synchronization command is as follows:

1.1, setting an account request synchronization command: sending the command to a module to set account information of the talkback application;

setinfo length of Content providing method and apparatus

The content comprises an address, an account number and a password, each item must be finished with a password, for example, the address of the server is set to be 0.0.0.0, the account number is test01, and the password is 123456;

setting a command: AT + POC = setinfo24addr:0.0.0.0& user: test01& pass:123456

Application response:

setinfo results

1.2, acquiring an account information request synchronization command: sending the command to a module to acquire account information of the talkback application, wherein the acquired parameters are the server address and the login account information;

getinfo length of

For example, AT + POC = getinfo00

Application response:

getinfo results Content providing method and apparatus

For example, + POC: getinfo, 0, addr:0.0.0.0, user: test 1.

1.3, setting a login domain name prefix request synchronization command: sending the command to the module to set the domain name prefix of the platform login;

setdns length of Content providing method and apparatus

The content includes platform type and domain name prefix with & character segmentation,

for example AT + POC = setdns0 eploform 2& test

Wherein, platform2& test indicates that platform No. 2 is used, and the domain name prefix is test

Application response:

setdns results Platform content

For example, + POC: setdns, 0, platform 2.

1.4, the talkback application starts a login synchronization command: the module is normally started, and after the network is successfully registered, the module sends the command to trigger the talkback application to execute login and group entering operation;

startup length of Content providing method and apparatus

The content is used for indicating whether a built-in TTS function of the talkback application is started or not, wherein 1 represents opening the TTS function of the talkback application, and 0 represents closing the TTS function of the talkback application;

for example: AT + POC = startup011, which indicates opening the talkback application and opening the TTS function;

AT + POC = startup010, indicating that the intercom application is turned on, the TTS function is turned off;

the application response includes a command header and a result, the command header and the request command header being the same,

startup results

For example, + POC: startup, 0.

1.5, acquiring a group list request synchronization command: sending the command to the module can enable the logged talkback application to return group information, and the group information is returned by actively reporting the command;

quegrp length of

For example, AT + POC = querp 00

Application response:

quegrp results Content providing method and apparatus

The content represents the number of the inquired groups;

for example, + POC: querp, 0, 5, where 5 indicates that the number of groups is 5.

1.6, enter group request synchronization command: sending the command to the module to make the logged-in talkback application enter the group, the talkback application needs to log in successfully,

joingrp length of Content providing method and apparatus

The content is group id and is expressed by decimal integer;

for example AT + POC = joingrp0512345, where 12345 is the group id, which is a decimal integer,

the application response is as follows:

joingrp results

For example, + POC: joingrp, 0.

1.7, start talk request synchronization command: sending the command to the module may cause the already logged-in intercom application to start speaking,

reqspk length of

For example AT + POC = reqspk00,

the application response is as follows:

reqspk results

E.g., + POC: reqspk, 0.

1.8, end of talk request synchronization command: sending the command to the module may cause the already logged-in speaking application to end speaking,

relspk length of

For example AT + POC = relspk00, the application response is as follows:

relspk results

For example, + POC: relspk, 0.

1.9, temporarily calling a user request synchronous command: sending the command to the module may cause the already logged-in intercom application to initiate a temporary call to a user,

tmpcall length of Content providing method and apparatus

The content is user id, expressed in decimal integers,

for example AT + POC = tmpcalal 0512345, where 12345 is the user id, and when the user id is 0, indicating exiting the temporary call, the application responds as follows:

tmpcall results

For example, + POC tmpcalal, 0.

1.10, acquiring a user/administrator list request synchronization command: sending the command to the module may cause the logged-in intercom application to return member information or dispatcher information within the group,

queusr length of Content providing method and apparatus

The content is group id, decimal number represents, and group member information or dispatcher information is returned through an active reporting command.

For example AT + POC = queusr0512345 where 12345 is the group id, indicating the member information within the group querying the group id bit 12345,

queadm length of Content providing method and apparatus

For example, AT + POC = queadm0512345, where 12345 is group id, which represents the scheduler information in the group with the query group id of 12345, the application response is as follows:

queusr/queadm results Content providing method and apparatus

Content represents the number of members queried

E.g., + POC: queusr, 0, 2, where 2 indicates that the number of member users of the group is 2.

1.11, setting a GPS request synchronization command: sending the command to the module may set GPS information to be sent to the background; the location information of the account can be viewed through the dispatch station,

setgps length of Content providing method and apparatus

The content is GPS information, and the GPS format is as follows: longitude, latitude, speed, direction angle, precision factor, satellite information are divided by & symbol.

For example AT + POC = setgps2C23.64217&113.156176&5.2&15&3.6&4&37&36&36&38

Wherein 22.23211&103.123123&5.2&15&3.6&4&37&36&36&38 represents that the east longitude of the north latitude 23.64217 is 113.156176 with the speed of 5.2km/h, the direction angle is 15 degrees, the precision factor is 3.6, 4 satellites are in total, the signal-to-noise ratios are 37db, 36db, 36db and 38db respectively, and the application response is as follows

setgps Results

For example, + POC: setgps, 0

gpsfilteron Length of

GPS filtering is started, GPS information reported by the single chip microcomputer is optimized through a filtering algorithm, abnormal points are intelligently filtered, positioning is more accurate, due to the filtering algorithm, the number of reported positioning points is less, or GPS reporting is not carried out in places with poor GPS signals,

gpsfilteroff length of

The GPS filtering is turned off.

1.12, acquiring a current time request synchronization command: the command is sent to the module to obtain the local time, the local time needs to be used together with the time zone setting request command, the local time can be obtained only after the talkback application successfully logs in, the returned content is year, month, day, hour, minute, second and week in turn,

reqtime length of

For example: AT + POC = reqtime00

And returning: + POC: reqtime, 0, 2018, 6, 21, 17, 57, 25, 4, representing 2018, 6, 21, 17, 57 minutes, 25 seconds, thursday.

1.13, setting time zone request synchronization command: sending the command to the module sets the time zone, which will affect the return value of the command to obtain local time, may be set to a negative number, defaults to the eights zone,

setzone length of Content providing method and apparatus

The content includes a time zone integer portion and a fractional portion, the fractional portion supporting only 0.00.250.50.75, corresponding to 0255075.

For example: AT + POC = setzone038&0

And returning: + POC setzone, 8, 0, indicating that the current time zone is set to the east eight zone, i.e. beijing time.

1.14, setting tone quality request synchronization command: the command is sent to the module to set the tone quality type, the tone quality type is immediately effective, the restart is not needed, the power failure is not saved,

setcodec length of Content providing method and apparatus

The content indicates that the tone quality type defaults to 0, standard tone quality.

Where 0 denotes the use of standard sound quality and 1 denotes the use of high definition sound quality

For example: AT + POC = setcodec011, OK, + POC: setcodec, 0, 1, indicating setting to high definition sound quality.

1.15, acquiring a current tone quality request synchronization command: sends the command to the module to obtain the current tone quality type,

getcodec length of

For example: AT + POC = getcodec00, OK, + POC: getcodec, 0, 1, indicating that high definition sound quality is currently present.

1.16, log-out request synchronization command: sending the command to the module can make the intercom application execute offline logout operation, sending the command before shutdown,

offline length of

For example AT + POC = offline00,

the application response is as follows:

offline results

For example, + POC: ofline, 0.

1.18, upgrading relevant commands in the air: the order related to the upgrade is as follows,

updatepara length of Content providing method and apparatus

The content includes a device model (string) and a version number unsigned short type;

for example: AT + POC = updatepara06M11&10, indicating that the upgraded machine model is set to M11, the current version to 10,

updatedown length of

AT + POC = updatedown00, indicating a request to download the upgrade package,

updateexec length of

For example: AT + POC = updateexec00, indicating that upgrade is to be performed,

updateapp length of

For example: AT + POC = updateapp00, representing only upgrading the application.

1.18, get POC version number and Fota request synchronization command: the command is sent to the module to obtain the POC application version number,

for example: AT + POC = version, OK, PTT _ MX370-V1.0.19_ F123 [ Dec 17201819: 01:43 ].

In the present invention, the format of the asynchronous report command based on the synchronous command is as follows:

2.1, reporting login information: the intercom application returns the online status of the intercom application through this report,

LOGIN content providing method and apparatus

The content includes status information, an ID, and additional information, separated by commas. Wherein, the state information: a decimal number. ID: a decimal number. Additional information: UNICODE strings.

The description is as follows: when the state is 0, the user is offline, when the state is 1, the user is logging in, when the state is 2, the user is successful in logging in, the ID represents the user ID, the additional information is the user name, and when the state is 3, the user is logging out.

For example, + POC LOGIN, 2, 123, 4b6dd58b287537620000, which indicates that the user logs in successfully, and the user name is: "test user" with an ID of 123.

2.2, reporting group information: the talkback application returns group information through the report, the command is matched with the group information request command for use,

GRP content providing method and apparatus

The content includes an index, group id, information on the number of people in the group and group name, separated by commas. Wherein, the index: decimal number, group id: a decimal number. The number of people in the group: a decimal number. Group name information: UNICODE strings.

For example, + POC: GRP, 1, 77826, 3, 4b6dd58bc47e0000, wherein 1 indicates that this group is the first group; 77826 indicates that id of this group is 77826; 3 indicates that the group has 3 user members;

4b6dd58bc47e0000 indicates the name of this group as "test group".

2.3 reporting the grouping information: the talk-back application informs the user through this report of the entering group information,

JOINGRP 0 content providing method and apparatus

The content includes a group ID, a group name. Wherein, the group ID: ID of the incoming group, decimal number, group name: the user name entering the group is a UNICODE encoded string.

For example, + POC: JOINGRP, 0, 123, 146f3a79c47e0000, which indicates that the user enters the group, the group id is 123, the group name is: "presentation group".

2.4, member information reporting: the talkback application can return group member information through the report, the instruction is matched with the member information request command for use,

USR content providing method and apparatus

The content includes member index, member id, member status, user name, separated by comma. Wherein, the index: a decimal number. Member id: a decimal number. Member status: 1 offline, 2 online (not in this group), 3 in this group (online), 4 dispatcher. User name: UNICODE strings.

For example, + POC: USR, 1, 77826, 2, 4b6dd58b287537620000, where 1 indicates that this member is the first user; 77826 indicates that the id of this member is 77826; 2 indicates that the member status is online;

4b6dd58b287537620000 indicates that the name of this member is "test user".

2.5, reporting the speech information: the intercom application returns the information of the speaking user through this report,

SPEAK content providing method and apparatus

The content includes status information, user ID, user name.

Description of the state: 0 means that oneself cannot talk; 1 indicates that one can interrupt the speaker's speech, user ID: decimal, speaking user name: UNICODE code string of the name of the speaking user.

For example, + POC: SPEAK, 1, 1, 7c54eb533159258d0000, indicates that a user with a user id of 1 starts speaking and can interrupt his speech by himself.

2.6, promoting information reporting: the talkback application returns the prompt information of the application through the report,

NOTICE content providing method and apparatus

The content is prompt information, and the prompt information is a UNICODE code character string.

For example, + POC NOTICE, 7c54eb533159258d0000, 7c54eb533159258d0000 represents the prompt message of "call failure".

2.7, reporting the playing state: the talk-back application informs the audio hardware switch through this report,

PLAY content providing method and apparatus

The content represents a playing state, and the playing state is a decimal number; 1 indicates the start of playback and 0 indicates the end of playback.

For example, + POC: PLAY, 1 indicates the start of playback, + POC: PLAY, 0 indicates the end of playback.

2.8, reporting the GPS permission state: the intercom application informs the GPS permission status through this report,

GPS content providing method and apparatus

The content represents the GPS authority state, and the authority state is a decimal number; 1 indicates that there is GPS permission and 0 indicates that there is no GPS permission.

For example, + POC GPS, 1 indicates that the current user has GPS positioning authority, + POC GPS, 0 indicates that the current user does not have GPS positioning authority.

2.9, reporting an over-the-air upgrading download state: the talk-back application informs the external device of the upgrade download status through this instruction,

UPDATE content providing method and apparatus

The content includes type and status, separated by commas. Wherein 0 represents full version upgrade (module supports differential upgrade; 1 represents MCU upgrade; 2 represents APP upgrade;

no latest version: + POC: UPDATE, 0, 1; begin updating + POC: UPDATE, 0, 2; acquiring UPDATE failure + POC: UPDATE, 0, 3; successfully updated + POC: UPDATE, 0, 4

In the upgrade, + POC: UPDATE, 0, 5; and reporting the upgrading progress to + POC: UPDATE, 0, 6, 85 and 80. Wherein 85, 80 represent that the percentage of download progress is 85 in the integer part and 80 in the decimal part, and 85.80% together.

For example, + POC: setinfo, 0.

The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

17页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种多SIM卡的网络自动切换方法及相关装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类