POC and traditional intercom dual-mode identity code synchronization translation and relative ranging method and device
By establishing a mapping relationship between POC usernames and traditional walkie-talkie identification codes in dual-mode terminals, and combining this with synchronous transmission and parsing of positioning module data, the semantic translation and relative ranging problems of identification identifiers in cross-standard communication are solved, enabling intuitive display of POC usernames and accurate spatial location perception.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- HUANYU ONE-CLICK COMMUNICATION (XIAMEN) CO LTD
- Filing Date
- 2026-05-23
- Publication Date
- 2026-07-14
Smart Images

Figure CN122395715A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of wireless communication technology, specifically to a method and apparatus for synchronous translation and relative ranging of dual-mode identification codes of POC and traditional walkie-talkies. Background Technology
[0002] With the development of dedicated wireless communication technologies, terminal devices are gradually evolving towards a dual-mode architecture supporting both public network POC (Proof-of-Concept) and traditional narrowband radio frequency (analog / digital). The public network POC mode relies on high-bandwidth cellular networks, enabling application-layer semantic username display, high-frequency location reporting, and rich media data transfer; while the traditional radio frequency mode relies on limited physical frequency bands, primarily ensuring basic voice communication in environments without base station coverage. However, in actual cross-standard communication scenarios, existing dual-mode terminals still exhibit deep service isolation in their data protocol stacks and communication mechanisms, leading to the following two core technical problems:
[0003] First, cross-standard identity identification cannot achieve semantic translation and synchronization at the protocol level. In traditional radio frequency communication modes, limited by the underlying link layer frame structure or analog signaling protocols, the transmitting end can only modulate identity information into numerical identifiers (such as MDC1200 hexadecimal signaling codes in analog systems or DMR binary source address IDs in digital systems). After demodulation, the receiving end can only display numeric codes on the screen without intuitive semantics, and cannot associate them with the POC username of the public network application layer. Existing technologies lack an automatic binding and offline / online resolution mechanism that bridges the gap between public network application layer strings and radio frequency data link layer identifiers, resulting in users being unable to intuitively identify the caller's true identity in traditional radio frequency modes.
[0004] Secondly, high-precision positional transmission and dynamic relative spatial ranging are difficult to achieve under extremely narrowband physical channels. On the one hand, traditional radio frequency channels (typically 12.5kHz or 25kHz bandwidth) are almost entirely occupied by voice payloads, making it difficult for existing technologies to synchronously and concurrently transmit floating-point latitude and longitude coordinates, which occupy a large number of bytes, with radio frequency voice data without interfering with in-band audio quality. On the other hand, existing walkie-talkie ranging functions rely solely on simple satellite positioning data for coordinate difference calculation, resulting in an absolute geographic azimuth angle based on true north. In practical applications, the lack of multi-source fusion compensation using local real-time attitude sensing data from the receiving device prevents the displayed azimuth indicator from dynamically adjusting to the user's real-time orientation while holding the device, thus preventing the user from obtaining an accurate relative spatial direction indication consistent with the first-person perspective. Summary of the Invention
[0005] To achieve the above objectives, the present invention provides the following technical solution:
[0006] This invention provides a method and apparatus for synchronous translation and relative ranging of dual-mode identity codes of POC and traditional walkie-talkie, including the following steps: S100, after logging into the public network platform account in POC mode, obtaining the current user's POC username, and establishing a unique mapping relationship between the POC username and the identity code in the traditional walkie-talkie mode, and synchronously storing the mapping relationship in the local terminal and the public network platform server;
[0007] S200: When transmitting voice signals in traditional walkie-talkie mode, the identity code is modulated and transmitted synchronously; after receiving the identity code, the receiving end queries the mapping relationship through the public network platform, parses and translates the identity code into the corresponding POC username, and displays it on the screen;
[0008] S300, the positioning module is activated to obtain its current latitude and longitude data, and when sending voice signals in the POC mode or traditional walkie-talkie mode, the current latitude and longitude data is sent synchronously with the identity code or the POC username;
[0009] S400, the receiving end obtains the latitude and longitude data sent by the other party, and calculates the relative distance and relative azimuth between the two dual-mode walkie-talkie terminals by combining its own current location information, and simultaneously displays the other party's POC username, the relative distance and the relative direction indication on the screen.
[0010] Furthermore, the identification code in the traditional walkie-talkie mode includes an analog signaling code under the analog walkie-talkie system or a digital call ID under the digital walkie-talkie system; the unique mapping relationship is a one-to-one correspondence between the POC username or nickname and the analog signaling code or the digital call ID;
[0011] Step S100, which establishes a unique mapping relationship between the POC username and the identity code in the traditional walkie-talkie mode, includes:
[0012] After the local terminal successfully logs in to the public network platform account, the public network platform server automatically assigns a unique digital identity code within the current network group based on the currently logged-in public network account information, and binds the digital identity code with the corresponding POC username to generate the unique mapping relationship and sends it to the local terminal.
[0013] The step of synchronously storing the mapping relationship in the local terminal and the public network platform server includes: when the unique mapping relationship changes on the public network platform server, the public network platform server pushes an update signaling to the corresponding local terminal so that the local terminal can synchronously update the mapping relationship table stored locally.
[0014] Furthermore, the synchronous transmission of the modulated identity code employs an adaptive modulation strategy based on the communication standard.
[0015] When in analog intercom mode, the identity code is encoded into a signaling code and superimposed on the sub-audio frequency band or in-band audio of the analog audio band for transmission.
[0016] When in digital intercom mode, the identification code is encapsulated as a source address identifier in the voice frame header of the digital communication protocol or in a separate data control frame and sent together with the digital voice payload.
[0017] Furthermore, after receiving the identity code, the receiving end queries the mapping relationship through the public network platform for parsing and translation, including the following fault-tolerant query mechanism:
[0018] The receiving end first initiates a mapping query request for the received identity code to the public network platform server through its own public network data channel;
[0019] If the public network data channel is detected to be disconnected or in a weak network state, the receiving end will automatically call the mapping relationship stored locally for offline matching to parse and translate the identity code into the corresponding POC username.
[0020] Furthermore, step S200 also includes a parallel voice archiving step:
[0021] Regardless of whether the terminal is currently in the traditional walkie-talkie mode or the POC mode, when sending or receiving voice signals, voice packet data containing the current POC username identifier is extracted and synchronously uploaded to the public network platform server through the public network data channel for permanent recording and storage, so as to form a complete voice file containing public network and traditional radio frequency channel data.
[0022] Furthermore, when transmitting voice signals in the POC mode or traditional walkie-talkie mode, the current latitude and longitude data are transmitted synchronously with the identity code or the POC username. The synchronization triggering and packetization mechanism includes:
[0023] In response to the PTT button trigger signal of the dual-mode walkie-talkie terminal, during the handshake phase or signaling preamble phase of establishing a voice transmission channel, the current latitude and longitude data obtained in real time by the positioning module is extracted.
[0024] The current latitude and longitude data is formatted into a location information field of a preset length, and then concatenated with the identity code or the POC username via data packet concatenation or signaling concatenation, and sent to the receiving end before the voice payload data.
[0025] Furthermore, when synchronously sending the current latitude and longitude data along with the identity code, the following channel multiplexing strategy is adopted for the traditional walkie-talkie mode:
[0026] When the terminal is in the traditional walkie-talkie mode, the current latitude and longitude data and the identity code are compressed and encoded, and embedded into the data frame extension field of the traditional radio frequency communication protocol, or modulated into the sub-audio channel of the analog audio band, so as to realize the accompanying transmission of location information and analog or digital voice signals without interfering with the voice communication quality of the traditional radio frequency channel.
[0027] Furthermore, the receiving end calculates the relative distance and relative azimuth angle between the two dual-mode walkie-talkie terminals by combining its own current location information, specifically including calculation logic based on multi-sensor fusion:
[0028] The receiving end calculates the relative straight-line distance between the two terminals based on the acquired latitude and longitude data of the other party and its own current latitude and longitude data, using a spherical distance algorithm.
[0029] The receiving end acquires the current orientation data of its own device sensed by its built-in electronic compass or gyroscope, and converts the absolute geographical azimuth angle calculated based on the latitude and longitude coordinates of the two terminals into a dynamic relative azimuth angle relative to the orientation of its own device, so as to generate the relative direction indication accordingly.
[0030] Furthermore, the synchronous display of the other party's POC username, the relative distance, and the relative direction indicator on the screen adopts the following displacement-triggered dynamic rendering mechanism:
[0031] In the voice communication interaction interface on the receiving end screen, the translated POC username is displayed as the current caller ID;
[0032] Extract the set position refresh cycle, or monitor the displacement changes of the receiving end and the other party in real time. When the displacement changes exceed a preset threshold, trigger the UI redraw command to update and render the value of the relative distance and the graphical arrow representing the relative azimuth angle in real time, thereby providing continuous spatial position tracking during the intercom interaction.
[0033] On the other hand, a device for simultaneous translation of POC and traditional walkie-talkie dual-mode identification codes and relative ranging includes:
[0034] The identity code mapping module is used to obtain the current user's POC username after logging into the public network platform account in POC mode, and to establish a unique mapping relationship between the POC username and the identity code in traditional walkie-talkie mode. The mapping relationship is synchronously stored in the local terminal and the public network platform server.
[0035] The identity translation module is used to modulate and synchronously transmit the identity code when sending voice signals in traditional walkie-talkie mode; and to query the mapping relationship through the public network platform after the receiving end receives the identity code, parse and translate the identity code into the corresponding POC username and display it on the screen;
[0036] The location synchronization module is used to activate the positioning module to obtain its own current latitude and longitude data, and to synchronously send the current latitude and longitude data with the identity code or the POC username when sending voice signals in the POC mode or traditional walkie-talkie mode.
[0037] The ranging and display module is used to acquire the latitude and longitude data sent by the other party, and calculate the relative distance and relative azimuth between the two dual-mode walkie-talkie terminals by combining its own current location information, and simultaneously display the other party's POC username, the relative distance, and the relative direction indication on the screen.
[0038] Beneficial effects
[0039] This invention effectively solves the technical bottlenecks of cross-standard identity isolation and narrowband location synchronization in dual-mode walkie-talkies by constructing a unique mapping relationship between the public network application layer and the traditional radio frequency link layer, and by combining a narrowband channel multiplexing strategy and a multi-source sensor fusion algorithm. Without changing the underlying protocol of the existing traditional walkie-talkie standard or degrading the quality of voice communication, it not only realizes the intuitive semantic display of POC usernames and automatic public network archiving of full-channel voice data in the traditional radio frequency communication mode, but also provides users with dynamic relative distance and orientation indications that accurately match their current device holding perspective through the fusion calculation of local attitude data and latitude and longitude differences and displacement-triggered redrawing mechanism. This significantly improves the device's identity recognition efficiency and spatial location perception capability in complex communication scenarios. Attached Figure Description
[0040] Figure 1 This is the main flowchart of the method of the present invention;
[0041] Figure 2 This is a block diagram illustrating the hardware architecture principle of the dual-mode walkie-talkie terminal of the present invention.
[0042] Figure 3 This is a schematic diagram of the system communication and interaction architecture of the present invention. Detailed Implementation
[0043] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0044] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but includes other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0045] The present invention will now be described in further detail with reference to the accompanying drawings:
[0046] Example:
[0047] like Figure 1-3 As shown, a method for synchronous translation and relative ranging of POC and traditional walkie-talkie dual-mode identification codes is applied to dual-mode walkie-talkie terminals that simultaneously support public network data channels and traditional radio frequency channels, and includes the following steps:
[0048] After logging into the public network platform account in POC mode, the S100 obtains the current user's POC username and establishes a unique mapping relationship between the POC username and the identity code in the traditional walkie-talkie mode. The mapping relationship is then stored synchronously on the local terminal and the public network platform server.
[0049] When the S200 transmits voice signals in traditional walkie-talkie mode, it modulates the identification code and transmits it synchronously. After receiving the identification code, the receiving end queries the mapping relationship through the public network platform, parses and translates the identification code into the corresponding POC username, and displays it on the screen.
[0050] S300: When the positioning module is activated, it obtains its current latitude and longitude data. When sending voice signals in POC mode or traditional walkie-talkie mode, it sends the current latitude and longitude data along with the identity code or POC username.
[0051] The S400 receiver obtains the latitude and longitude data sent by the other party and calculates the relative distance and relative azimuth between the two dual-mode walkie-talkie terminals by combining it with its own current location information. The receiver then displays the other party's POC username, relative distance, and relative direction indication on the screen simultaneously.
[0052] Furthermore, the specific implementation process of step S100 is as follows:
[0053] After the dual-mode walkie-talkie terminal is powered on, its built-in processor controls the public network communication baseband module (such as a 4G or 5G RF transceiver front-end chip) to reside on the public cellular network and establish a communication connection with the public network platform server based on the TCP / IP protocol. The dual-mode walkie-talkie terminal sends a login request message containing user authentication feature data (such as username and password hash values) to the public network platform server. After the public network platform server successfully performs authentication verification, it sends a login success response message to the dual-mode walkie-talkie terminal. The processor of the dual-mode walkie-talkie terminal parses the response message and extracts the POC username currently bound to the public network account. This POC username is usually represented in a variable-length string format (such as a UTF-8 encoded Chinese string or an ASCII encoded English string).
[0054] Given the extremely narrow channel bandwidth of traditional radio frequency communication protocols (analog or digital), their underlying frame structure cannot directly carry variable-length string formatted POC usernames. Therefore, the system executes mapping logic. This mapping logic is generated by the public network platform server: the server pre-configures independent digital identity code address pools for each communication group. When the local dual-mode walkie-talkie terminal is successfully authenticated, the server, based on the network group characteristics of the current account, performs pointer traversal from the idle address pool corresponding to that group to extract an unoccupied digital identifier, which is then used as the digital identity code assigned to the current terminal. Subsequently, the server performs an association binding operation between the digital identity code value and the extracted POC username string in the background relational database, generating a unique mapping record.
[0055] The unique mapping relationship essentially establishes a one-to-one correspondence between application layer strings and underlying physical / data link layer identifiers. Depending on the radio frequency standard supported by the dual-mode walkie-talkie terminal, the identification code for the traditional walkie-talkie mode has a specific protocol definition in the underlying hardware. When the terminal's traditional radio frequency communication module is initialized and configured for analog walkie-talkie mode, the identification code in the mapping relationship is compiled into an analog signaling code, such as a 4-digit hexadecimal source address ID code defined in the MDC1200 signaling standard, or a standard analog signaling matrix code such as DTMF or FleetSync. When the traditional radio frequency communication module is initialized and configured for digital walkie-talkie mode, the identification code in the mapping relationship is compiled into a digital call ID, such as a 24-bit or 32-bit binary source address device ID identifier conforming to the DMR or dPMR standard.
[0056] After generating a unique mapping relationship, the public network platform server encapsulates the data payload containing this mapping relationship into a configuration signaling data packet and sends it to the dual-mode walkie-talkie terminal via the public network downlink. The processor of the dual-mode walkie-talkie terminal receives and unpacks the configuration signaling, writes the parsed mapping relationship into a specific physical address range of the terminal's local non-volatile storage medium (such as Flash memory or EEPROM storage chip), and constructs a local mapping relationship table, thereby realizing synchronous dual storage of the mapping relationship on the local terminal and the public network platform server.
[0057] To ensure data consistency in the mapping table throughout the entire communication lifecycle, a synchronization update mechanism is configured between the dual-mode walkie-talkie terminal and the public network platform server. A long connection or a periodic heartbeat keep-alive mechanism is maintained between the terminal and the server. When the unique mapping relationship in the database changes due to account renaming or group scheduling on the public network platform server, the server proactively generates an update signaling message containing update instructions and new mapping data fields, and pushes this message to the affected local terminals. Upon receiving the update signaling message, the dual-mode walkie-talkie terminal triggers the processor's low-level interrupt handler or asynchronous callback function, erases the corresponding old mapping entry in its local non-volatile storage medium according to the index address in the instruction, and writes the updated mapping relationship data segment, thereby completing a strong consistency synchronous update of the locally stored data.
[0058] Furthermore, the specific implementation process of step S200 is as follows:
[0059] When the dual-mode walkie-talkie terminal is in traditional walkie-talkie mode and captures the physical closed-level signal of the PTT (Push-To-Talk) button, the main control microprocessor inside the terminal triggers a voice transmission interruption. The main control microprocessor first reads the currently active mapping table in the local non-volatile storage medium and extracts its own identification code. Subsequently, the main control microprocessor calls the baseband processing module to execute an adaptive modulation strategy based on the communication standard. When the terminal's RF module is configured for analog walkie-talkie mode, the baseband processing module performs frequency shift keying (FSK) encoding on the extracted identification code to generate an audio data packet conforming to MDC1200 or a similar standard, and controls the audio mixer to superimpose this audio data packet as in-band signaling onto the front end of the analog voice baseband signal captured and amplified by the microphone; or, the identification code is encoded into a sub-audio frequency band signal and mixed with the main voice signal using analog addition. The mixed baseband signal is sent to the RF voltage-controlled oscillator (VCO) for frequency modulation (FM), and finally radiated by the RF power amplifier (PA) through the antenna.
[0060] When the terminal's RF module is configured for digital intercom, the main control microprocessor sends the analog voice captured by the microphone to a vocoder (e.g., an AMBE+2 vocoder) for digital compression and encoding, generating digital voice payload data. Simultaneously, the baseband processing module uses the extracted digital communication identification code as the source address identifier field, strictly adhering to the link layer frame structure of digital communication protocols (such as the DMR standard), and encapsulates and embeds it into the link control header of the voice superframe or a separate data control frame. The encapsulated composite data stream is then sent to the RF modulator, where it undergoes four-level frequency shift keying (FPS) digital physical modulation before being transmitted as an RF signal.
[0061] On the receiving end, the RF front-end of the dual-mode walkie-talkie terminal captures the spatial RF signal, which is then amplified by a low-noise amplifier (LNA), down-converted, and converted from analog to digital before being sent to its baseband processing module for demodulation and decapsulation. If the signal is analog, the baseband processing module separates the sub-audio signaling through low-pass filtering or decodes the FSK signal using a DSP to recover the hexadecimal identification code. If the signal is digital, the baseband processing module performs symbol determination and deframing on the 4FSK signal, extracting the binary source address identification code from the link control header or CSBK data block. The receiving end's main control microprocessor then formats this code into a standard query variable.
[0062] After obtaining the standard query variables, the receiving end's main control microprocessor triggers a mapping relationship parsing task. This task executes a fault-tolerant priority routing mechanism based on network status: the main control microprocessor first calls the AT commands of the public network communication module (such as a 4G / 5G module) to poll the current cellular network's RRC (Radio Resource Control) connection status and Socket link connectivity. If the public network data channel is detected to be active, the main control microprocessor constructs an HTTP or MQTT request message containing the standard query variables and sends it to the public network platform server; after the server performs a database retrieval, it sends a response message containing the corresponding POC username byte stream. If the main control microprocessor detects that the public network data channel is disconnected (e.g., in a signal dead zone) or has a weak network state with latency exceeding a preset threshold, it immediately triggers a local hardware interrupt, directly addresses and reads the mapping relationship table synchronously stored in the local memory, performs offline matching locally using a hash lookup algorithm, and extracts the corresponding POC username string.
[0063] After the receiving end's main control microprocessor obtains the translated POC username string, it calls the display driver IC to render the string and push it to the caller information layer of the LCD or OLED display for highlighting, thereby replacing the original numeric ID code display.
[0064] In parallel, while the dual-mode walkie-talkie terminal performs voice transmission and reception via the aforementioned radio frequency channel, the main control microprocessor starts a background-resident voice archiving thread. This thread bypasses and intercepts the raw voice stream from the PCM data bus of the audio codec (CODEC), compresses it using a local software encoder into a standard audio format suitable for public network transmission (such as Opus or AMR). The main control microprocessor packages this audio file together with the currently parsed POC username identifier and timestamp, establishes an independent TCP data stream using the public network communication channel, and asynchronously uploads it to the distributed file system (DFS) of the public network platform server for permanent storage, ensuring uninterrupted public network voice data accumulation while communicating via the traditional radio frequency channel.
[0065] Furthermore, the specific implementation process of step S300 is as follows:
[0066] The positioning module integrated within the dual-mode walkie-talkie terminal (e.g., a dual-mode GNSS baseband chip compatible with both GPS and BeiDou satellite navigation systems) operates in a continuous warm-start or hot-start state after the device is powered on. The positioning module's radio frequency front-end captures satellite ephemeris signals and performs related calculations, outputting a positioning data stream conforming to the NMEA0183 standard protocol (containing GPGGA, GPRMC, etc. statements) to the main control microprocessor via a Universal Asynchronous Receiver / Transmitter (UART) bus at a fixed period (e.g., 1Hz or 5Hz). The main control microprocessor's low-level parsing driver unpacks the NMEA data stream at the protocol layer, extracts high-precision double-precision floating-point current latitude and longitude data, and caches it in a specific dynamic register address in random access memory (RAM) for real-time retrieval.
[0067] When the main microprocessor detects a falling edge interrupt signal on a general-purpose input / output (GPIO) pin triggered by the PTT button being closed, the system enters the voice and signaling synchronous transmission preparation phase. In response to this interrupt request, the main microprocessor immediately freezes and extracts the latest frame's current latitude and longitude data from the dynamic register address. To adapt to the narrowband characteristics of traditional RF channels, the main microprocessor first performs a spatial data compression algorithm on the extracted latitude and longitude data. Specifically, the main microprocessor truncates the floating-point latitude and longitude coordinates, which occupy tens of bytes, according to a preset grid mapping precision and converts them into a fixed-length binary bit field combination (for example, compressing it into a compact 32-bit or 64-bit spatial location data block conforming to a specific custom protocol). Then, it concatenates this location data block with the currently extracted terminal identification code in memory to form a data frame.
[0068] To address the physical channel characteristics of different standards, the main control microprocessor and the baseband processing chip collaboratively execute differentiated underlying channel multiplexing and synchronous transmission strategies. When the terminal's RF channel is configured for traditional analog intercom, the main control microprocessor calls the Minimum Shift Keying (MSK) modulator or Four-Band Frequency Shift Keying (FFSK) modulator within the baseband processing chip to modulate the concatenated identity code and location data block into low-rate data signaling. This data signaling does not occupy the main control analog audio band (typically 300Hz to 3400Hz), but instead serves as an in-band preamble control signaling during the handshake phase of voice communication establishment, transmitted as an extremely short burst pulse of several hundred milliseconds before the voice signal; alternatively, the baseband processing chip modulates this data signaling into a continuous sub-audio channel below 300Hz (similar to the operating frequency band of CTCSS / DCS), and performs orthogonal superposition of it with the analog voice baseband signal in the frequency domain using an analog adder, sending it to the RF amplification circuit for co-band transmission, thereby achieving covert synchronous transmission of location information without interfering with the quality of analog voice communication.
[0069] When the terminal's RF channel is configured for a traditional digital intercom system (such as the DMR standard based on Time Division Multiple Access (TDMA) architecture), the baseband processing chip utilizes the scalability of the digital communication frame structure to achieve synchronous transmission. The main control microprocessor formats the compressed identification code and location data block into a specific operation code payload and embeds it into the non-voice payload area of the digital communication protocol. In specific implementation, the baseband processing chip packages this formatted data into a control signaling block and transmits it as an independent data frame during the call setup phase before the digital voice frame establishes a connection. Simultaneously, during continuous voice transmission, the baseband processing chip divides the incremental changes in location data into tiny data fragments and encapsulates them in the embedded signaling (EMB) field or link control (LC) header extension area within the voice superframe. After four-level frequency shift keying (4FSK) digital modulation, the location data and digital voice payload are transmitted using time division or structure multiplexing on the same physical RF carrier.
[0070] If the dual-mode walkie-talkie terminal is currently in POC public network walkie-talkie mode, the synchronous transmission mechanism switches to the IP network layer. The main control microprocessor packages the latitude and longitude data and the POC username into an application-layer structure data packet in JSON or Protocol Buffers (Protobuf) format. Within the same time window that triggers the upload of public network voice streams (such as RTP protocol packets), the main control microprocessor synchronously pushes this application-layer structure data packet to the public network platform server via a TCP or UDP independent data socket, where the server records and broadcasts the location coordinates.
[0071] Furthermore, the specific implementation process of step S400 is as follows:
[0072] After the receiving dual-mode walkie-talkie terminal completes the physical layer demodulation and link layer decapsulation in steps S200 and S300, the receiving main control microprocessor extracts the latitude and longitude coordinate data of the other party's dual-mode walkie-talkie terminal (hereinafter referred to as "target coordinates"), and at the same time obtains the local real-time latitude and longitude coordinate data (hereinafter referred to as "local coordinates") through its integrated positioning module.
[0073] The main control microprocessor calls its internal floating-point unit (FPU) to perform relative distance spatial calculations based on spherical geometry. Specifically, the main control microprocessor uses either the Haversine Formula or the Vincenty high-precision iterative algorithm based on the WGS-84 Earth ellipsoid model. The main control microprocessor takes the longitude and latitude differences between the target coordinates and the local coordinates as input parameters, combines them with the Earth's average radius constant to perform radian conversion and trigonometric function calculations, and calculates the extremely short-range great circle straight-line distance between the two dual-mode walkie-talkie terminals in physical space. This floating-point distance data is then formatted into a scaled value suitable for UI display (such as a one-dimensional "meter" or "kilometer" unit accurate to one decimal place).
[0074] To address the technical inconsistency between absolute geographic azimuth and the user's actual observation perspective in calculating relative azimuth, the receiver's main control microprocessor executes a multi-source sensor fusion algorithm. First, based on the target coordinates and local coordinates, the main control microprocessor uses the forward and inverse formulas of spherical trigonometry to calculate the target's absolute geographic azimuth relative to the local area (i.e., the absolute heading angle with true north as the 0-degree reference). Then, the main control microprocessor reads data from the terminal's internal microelectromechanical system (MEMS) sensors in real time via an I2C or SPI serial communication bus, specifically the magnetic field strength vector output from the three-axis magnetometer (electronic compass) and the angular velocity data output from the three-axis gyroscope.
[0075] The main control microprocessor runs attitude calculation algorithms (such as Mahony filtering or Kalman filtering) to perform tilt compensation and hard / soft magnetic interference calibration on the aforementioned MEMS sensor data, calculating the current real-time orientation angle of the receiving terminal device. The main control microprocessor subtracts the current real-time orientation angle from the absolute geographic azimuth angle and performs a modulo 360-degree remainder operation to dynamically calculate the relative azimuth angle data of the other terminal relative to the physical pointing of the current receiving terminal device.
[0076] During the visual presentation phase, the receiving end's main control microprocessor sends the translated POC username string, the calculated relative distance value, and the relative azimuth angle data to the terminal's graphical user interface (GUI) underlying framework for layer combination. To avoid excessive power consumption and visual flickering caused by high-frequency coordinate jumps, the main control microprocessor employs a displacement-triggered dynamic rendering mechanism. The main control microprocessor maintains a bidirectional trigger queue in background memory to monitor the displacement changes of the local or target terminal in real time. and the change in the angle of the sensor's orientation .
[0077] when When the preset distance redraw threshold is exceeded (e.g., 5 meters), or Δθ exceeds the preset angle redraw threshold (e.g., 15 degrees), or the forced minimum refresh time period is reached (e.g., every 2 seconds), the main control microprocessor sends a UI redraw interrupt command to the display driver IC. After receiving the command, the display driver IC updates the character matrix of the POC username in the caller interaction layer of the video memory, and calls the underlying vector graphics rotation API to perform matrix rotation transformation on the graphical arrow representing the relative direction according to the current relative azimuth angle data. Finally, it drives the LCD or OLED display to complete the physical redraw refresh of the screen pixels, realizing continuous and smooth two-dimensional spatial position tracking display during the intercom interaction.
[0078] The above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions will not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for simultaneous translation and relative ranging of dual-mode identification codes of POC and traditional walkie-talkies, characterized in that, Includes the following steps: S100: After logging into the public network platform account in POC mode, obtain the current user's POC username, establish a unique mapping relationship between the POC username and the identity code in the traditional walkie-talkie mode, and store the mapping relationship synchronously in the local terminal and the public network platform server. S200: When transmitting voice signals in traditional walkie-talkie mode, the identity code is modulated and transmitted synchronously; after receiving the identity code, the receiving end queries the mapping relationship through the public network platform, parses and translates the identity code into the corresponding POC username, and displays it on the screen; S300, the positioning module is activated to obtain its current latitude and longitude data, and when sending voice signals in the POC mode or traditional walkie-talkie mode, the current latitude and longitude data is sent synchronously with the identity code or the POC username; S400, the receiving end obtains the latitude and longitude data sent by the other party, and calculates the relative distance and relative azimuth between the two dual-mode walkie-talkie terminals by combining its own current location information, and simultaneously displays the other party's POC username, the relative distance and the relative direction indication on the screen.
2. The method for synchronous translation and relative ranging of POC and traditional walkie-talkie dual-mode identification codes according to claim 1, characterized in that, The identity code in the traditional walkie-talkie mode includes an analog signaling code under the analog walkie-talkie system or a digital call ID under the digital walkie-talkie system; the unique mapping relationship is a one-to-one correspondence between the POC username or nickname and the analog signaling code or the digital call ID; Step S100, which establishes a unique mapping relationship between the POC username and the identity code in the traditional walkie-talkie mode, includes: After the local terminal successfully logs in to the public network platform account, the public network platform server automatically assigns a unique digital identity code within the current network group based on the currently logged-in public network account information, and binds the digital identity code with the corresponding POC username to generate the unique mapping relationship and sends it to the local terminal. The step of synchronously storing the mapping relationship in the local terminal and the public network platform server includes: when the unique mapping relationship changes on the public network platform server, the public network platform server pushes an update signaling to the corresponding local terminal so that the local terminal can synchronously update the mapping relationship table stored locally.
3. The method for synchronous translation and relative ranging of POC and traditional walkie-talkie dual-mode identification codes according to claim 2, characterized in that, The synchronous transmission of the modulated identity code employs an adaptive modulation strategy based on the communication standard. When in analog intercom mode, the identity code is encoded into a signaling code and superimposed on the sub-audio frequency band or in-band audio of the analog audio band for transmission. When in digital intercom mode, the identification code is encapsulated as a source address identifier in the voice frame header of the digital communication protocol or in a separate data control frame and sent together with the digital voice payload.
4. The method for synchronous translation and relative ranging of POC and traditional walkie-talkie dual-mode identification codes according to claim 3, characterized in that, After receiving the identity code, the receiving end queries the mapping relationship through the public network platform for parsing and translation, including the following fault-tolerant query mechanism: The receiving end first initiates a mapping query request for the received identity code to the public network platform server through its own public network data channel; If the public network data channel is detected to be disconnected or in a weak network state, the receiving end will automatically call the mapping relationship stored locally for offline matching to parse and translate the identity code into the corresponding POC username.
5. The method for synchronous translation and relative ranging of POC and traditional walkie-talkie dual-mode identification codes according to claim 4, characterized in that, Step S200 also includes a parallel voice archiving step: Regardless of whether the terminal is currently in the traditional walkie-talkie mode or the POC mode, when sending or receiving voice signals, voice packet data containing the current POC username identifier is extracted and synchronously uploaded to the public network platform server through the public network data channel for permanent recording and storage, so as to form a complete voice file containing public network and traditional radio frequency channel data.
6. The method for synchronous translation and relative ranging of POC and traditional walkie-talkie dual-mode identification codes according to claim 5, characterized in that, When transmitting voice signals in the POC mode or traditional walkie-talkie mode, the current latitude and longitude data are transmitted synchronously with the identity code or the POC username. The synchronization triggering and packaging mechanism includes: In response to the PTT button trigger signal of the dual-mode walkie-talkie terminal, during the handshake phase or signaling preamble phase of establishing a voice transmission channel, the current latitude and longitude data obtained in real time by the positioning module is extracted. The current latitude and longitude data is formatted into a location information field of a preset length, and then concatenated with the identity code or the POC username via data packet concatenation or signaling concatenation, and sent to the receiving end before the voice payload data.
7. The method for synchronous translation and relative ranging of POC and traditional walkie-talkie dual-mode identification codes according to claim 6, characterized in that, When the current latitude and longitude data and the identity code are sent synchronously, the following channel multiplexing strategy is adopted for the traditional walkie-talkie mode: When the terminal is in the traditional walkie-talkie mode, the current latitude and longitude data and the identity code are compressed and encoded, and embedded into the data frame extension field of the traditional radio frequency communication protocol, or modulated into the sub-audio channel of the analog audio band, so as to realize the accompanying transmission of location information and analog or digital voice signals without interfering with the voice communication quality of the traditional radio frequency channel.
8. The method for synchronous translation and relative ranging of POC and traditional walkie-talkie dual-mode identification codes according to claim 7, characterized in that, The receiving end calculates the relative distance and relative azimuth angle between the two dual-mode walkie-talkie terminals by combining its own current location information, specifically including calculation logic based on multi-sensor fusion: The receiving end calculates the relative straight-line distance between the two terminals based on the acquired latitude and longitude data of the other party and its own current latitude and longitude data, using a spherical distance algorithm. The receiving end acquires the current orientation data of its own device sensed by its built-in electronic compass or gyroscope, and converts the absolute geographical azimuth angle calculated based on the latitude and longitude coordinates of the two terminals into a dynamic relative azimuth angle relative to the orientation of its own device, so as to generate the relative direction indication accordingly.
9. A method for synchronous translation and relative ranging of POC and traditional walkie-talkie dual-mode identification codes according to claim 8, characterized in that, The synchronous display of the other party's POC username, the relative distance, and the relative direction indicator on the screen employs the following displacement-triggered dynamic rendering mechanism: In the voice communication interaction interface on the receiving end screen, the translated POC username is displayed as the current caller ID; Extract the set position refresh cycle, or monitor the displacement changes of the receiving end and the other party in real time. When the displacement changes exceed a preset threshold, trigger the UI redraw command to update and render the value of the relative distance and the graphical arrow representing the relative azimuth angle in real time, thereby providing continuous spatial position tracking during the intercom interaction.
10. A device for synchronous translation and relative ranging of dual-mode identification codes of POC and traditional walkie-talkies, and a method for synchronous translation and relative ranging of dual-mode identification codes of POC and traditional walkie-talkies according to any one of claims 1-9, characterized in that, include: The identity code mapping module is used to obtain the current user's POC username after logging into the public network platform account in POC mode, and to establish a unique mapping relationship between the POC username and the identity code in traditional walkie-talkie mode. The mapping relationship is synchronously stored in the local terminal and the public network platform server. The identity translation module is used to modulate and synchronously transmit the identity code when sending voice signals in traditional walkie-talkie mode; And it is used to query the mapping relationship through the public network platform after receiving the identity code at the receiving end, parse and translate the identity code into the corresponding POC username and display it on the screen; The location synchronization module is used to activate the positioning module to obtain its own current latitude and longitude data, and to synchronously send the current latitude and longitude data with the identity code or the POC username when sending voice signals in the POC mode or traditional walkie-talkie mode. The ranging and display module is used to acquire the latitude and longitude data sent by the other party, and calculate the relative distance and relative azimuth between the two dual-mode walkie-talkie terminals by combining its own current location information. The module then displays the other party's POC username, the relative distance, and the relative direction indication on the screen.