Outdoor media cross-screen interaction method and terminal based on NFC device identification

By setting NFC tags on outdoor media devices and establishing a long connection with the backend server, and utilizing a real-time material status query engine, the problems of cumbersome operation, low recognition rate, and insufficient synchronization in the interaction between outdoor media and mobile devices are solved, achieving an efficient and real-time cross-screen interactive experience.

CN122227005APending Publication Date: 2026-06-16GUANGDONG CHUANGSHI TECHNOLOGY ADVERTISING CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
GUANGDONG CHUANGSHI TECHNOLOGY ADVERTISING CO LTD
Filing Date
2026-03-23
Publication Date
2026-06-16

AI Technical Summary

Technical Problem

Existing outdoor media and mobile interaction solutions suffer from cumbersome user operations, low device recognition success rate, poor content relevance, and insufficient cross-screen interaction synchronization, resulting in low interaction efficiency and poor user experience.

Method used

By using NFC device identification technology, a unique NFC tag with a device number is set on outdoor media devices. After the mobile device obtains the number, it establishes a long connection with the backend server. Real-time content synchronization and interaction are achieved by using Redis caching and the database's real-time material status query engine.

🎯Benefits of technology

Simplify user operation process, improve device recognition success rate, realize real-time content association and synchronization of outdoor media, and enhance user interaction and immersion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122227005A_ABST
    Figure CN122227005A_ABST
Patent Text Reader

Abstract

The application discloses an outdoor media cross-screen interaction method and terminal based on NFC device identification, relates to the technical field of near field communication and the technical field of digital media interaction, and comprises the following steps: when a mobile device contacts with the NFC tag of a target outdoor media device, the mobile device acquires the device number of the contacted NFC tag; through a real-time material state query engine, the current playing material information of the target outdoor media device is queried according to the device number; the mobile device loads and displays the interactive content corresponding to the current playing content of the target outdoor media device; a long connection is established; when it is detected that the playing content of the target outdoor media device is switched, updated switching content information is pushed to the mobile device which establishes a long connection with the target outdoor media device, and real-time synchronization is realized. The application has the advantages of simplifying the user operation process, improving the device identification success rate, realizing the dynamic correlation of the real-time playing content of the outdoor media, and ensuring real-time synchronization when the content is switched.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the fields of near-field communication technology and digital media interaction technology. Specifically, it relates to an outdoor media cross-screen interaction method, system, smart terminal, and computer-readable storage medium based on NFC device identification. Background Technology

[0002] Existing solutions for interaction between outdoor media and mobile devices primarily rely on traditional technologies such as QR code scanning, Bluetooth connectivity, or Wi-Fi hotspots. In practical applications, QR code scanning requires users to actively launch their camera app and precisely align it with the sign. This process is lengthy and easily affected by ambient light, device angle deviation, or physical obstructions, leading to a significant decrease in recognition success rate and reduced user engagement. Furthermore, these solutions cannot dynamically link to the real-time playback content of outdoor media devices; users can only access preset static information and cannot trigger targeted interactions based on the currently playing material, resulting in weak content relevance and diminishing advertising effectiveness and user experience depth. While Bluetooth and Wi-Fi technologies can transmit basic device information, they require a cumbersome pairing and verification process. In scenarios with densely packed devices, such as shopping malls and train stations, signal interference is frequent, leading to insufficient device recognition accuracy and frequent connection errors or confusion for users. Moreover, existing technologies lack effective state synchronization mechanisms. When content changes on outdoor screens, mobile devices cannot respond promptly, resulting in fragmented cross-screen interactions and hindering the creation of a smooth, real-time interactive experience. These shortcomings collectively limit the efficiency, accuracy, and immersive experience of outdoor media interaction.

[0003] Therefore, existing technologies still need improvement and development. Summary of the Invention

[0004] The technical problem to be solved by the present invention is to provide a method, system, smart terminal and storage medium for cross-screen interaction of outdoor media based on NFC device identification, which addresses the problems and defects of the prior art. The present invention has the advantages of simplifying the user operation process, improving the success rate of device identification, realizing dynamic association of real-time playback content of outdoor media and ensuring real-time synchronization when switching content.

[0005] This application provides a method for cross-screen interaction of outdoor media based on NFC device identification, the technical solution of which is as follows: An outdoor media cross-screen interaction method based on NFC device identification, comprising: Pre-install NFC tags containing unique device numbers on outdoor media devices; When an NFC-enabled mobile device comes into contact with the NFC tag of a target outdoor media device, the mobile device obtains the device number of the contacted NFC tag and sends it to the backend server. The backend server uses a real-time material status query engine that combines Redis caching and database to query the currently playing material information of the target outdoor media device based on the device number of the contacted NFC tag. Based on the information of the target outdoor media device currently playing the material, the mobile device loads and displays interactive content corresponding to the content currently playing on the target outdoor media device. The system controls the mobile device to establish a long connection with the target outdoor media device. When the target outdoor media device detects a change in the content being played, the system controls the backend server to actively push updated content information to the mobile device that has established a long connection with the target outdoor media device, thereby achieving real-time synchronization.

[0006] The aforementioned method for cross-screen interaction of outdoor media based on NFC device identification, wherein the step of the mobile device obtaining the device number of the contacted NFC tag and sending it to the backend server when an NFC-enabled mobile device comes into contact with the NFC tag of the target outdoor media device includes: When an NFC-enabled mobile device comes into contact with the NFC tag of a target outdoor media device, the mobile device automatically obtains the unique device number of the NFC tag of the outdoor media device and sends the obtained unique device number as a start parameter to the designated applet on the mobile terminal. The designated mini-program on the mobile terminal sends the device number to the backend server.

[0007] The aforementioned method for cross-screen interaction of outdoor media based on NFC device identification, wherein the step of pre-setting an NFC tag containing a unique device number on the outdoor media device includes: Each outdoor media device is pre-assigned a globally unique device number, and the globally unique device number is written into the NFC tag of the outdoor media device; A dynamic mapping relationship between the device number of each outdoor media device and the playback material is established in advance, and the playback material corresponding to the device number can be queried through the real-time material status query engine.

[0008] The aforementioned method for cross-screen interaction of outdoor media based on NFC device identification, wherein the step of controlling the mobile device to establish a long connection with the target outdoor media device includes: Control the mobile device to establish a WebSocket long connection with the target outdoor media device.

[0009] The aforementioned method for cross-screen interaction of outdoor media based on NFC device identification, wherein the backend server uses a real-time material status query engine that combines Redis caching and database, employing a dual-layer query mechanism of Redis caching and database.

[0010] The aforementioned method for cross-screen interaction of outdoor media based on NFC device identification, wherein, prior to the step of the mobile device acquiring the device number of the contacted NFC tag and sending it to the backend server when the NFC-enabled mobile device comes into contact with the NFC tag of the target outdoor media device, the method includes: A real-time NFC communication quality assessment and feedback mechanism is pre-configured on the mobile device to continuously monitor the strength, stability, and data transmission progress of the NFC signal.

[0011] The aforementioned method for cross-screen interaction of outdoor media based on NFC device identification, wherein the step of the mobile device obtaining the device number of the contacted NFC tag and sending it to the backend server when the NFC-enabled mobile device comes into contact with the NFC tag of the target outdoor media device further includes: The control continuously reads the RSSI (Received Signal Strength Indicator) value and the integrity status of the data frame emitted by the contacted NFC tag through the NFC controller of the mobile device; The operating system's NFC service layer calculates an interaction quality score based on the received signal strength index (RSSI) sequence and data frame verification results collected within a predetermined time window. The interaction quality score is calculated as follows: (current RSSI value / maximum readable RSSI value) × 0.5 + (data frame verification pass rate) × 0.5. When the RSSI values ​​of multiple consecutive sampling points are higher than the preset threshold and the data frame verification pass rate reaches a predetermined percentage or more, the signal is considered to be good. Based on the calculated NFC tag interaction quality score, the mini-program interface of the mobile device is controlled to provide the user with real-time NFC communication status through different dynamic progress bars or different vibration modes. When the calculated interaction quality score is lower than a preset threshold, the control intelligently provides operation suggestions such as adjusting the position of the mobile device, keeping it stationary, or adjusting the angle, based on the specific reasons for insufficient signal strength or data frame errors. If the NFC tag reading fails more than the preset number of attempts, the system will activate the dynamic QR code on the outdoor media device screen as a backup interaction channel and prompt the user to scan it.

[0012] An outdoor media cross-screen interactive system based on NFC device identification, wherein the system includes: An NFC preset module is used to pre-set NFC tags containing unique device numbers on outdoor media devices; The device number acquisition module is used to acquire the device number of the contacted NFC tag when an NFC-enabled mobile device comes into contact with the NFC tag of the target outdoor media device, and send it to the backend server. The playback material query module is used to control the backend server to query the current playback material information of the target outdoor media device based on the device number of the contacted NFC tag through a real-time material status query engine that combines Redis caching and database. The loading module is used to load and display interactive content corresponding to the currently playing content of the target outdoor media device based on the queried material information of the target outdoor media device. The update synchronization module is used to control the mobile device to establish a long connection with the target outdoor media device. When the content being played on the target outdoor media device is switched, the backend server is controlled to actively push the updated content information to the mobile device that has established a long connection with the target outdoor media device, so as to achieve real-time synchronization.

[0013] A smart terminal includes a memory and one or more programs, wherein one or more programs are stored in the memory and configured to be executed by one or more processors, the one or more programs comprising the method for performing any one of the methods.

[0014] A computer-readable storage medium, wherein, when instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform any of the methods described above.

[0015] The beneficial effects of this invention are as follows: This invention provides a method, system, smart terminal, and storage medium for cross-screen interaction of outdoor media based on NFC device identification. This invention quickly obtains the device number by pre-setting NFC tags, dynamically associates the currently playing content using a real-time material status query engine, and establishes a long connection to achieve real-time synchronization. This solves the problems of cumbersome operation, inability to dynamically associate real-time content, and lack of synchronization mechanism in the prior art. It has the advantages of simplifying the user operation process, improving the device recognition success rate, realizing the dynamic association of real-time playback content of outdoor media, and ensuring real-time synchronization when switching content.

[0016] The present invention also has the following advantages: 1) Clarity of User Interaction Intent: NFC may require the user to make a clear, close-range "touch" physical action, which represents the user's current and strong interaction intent more effectively than scanning from a distance. This invention can provide higher-value interactive content based on this clear signal.

[0017] 2) Accuracy of information push: Since the system actively pushes information, it can ensure that the content pushed to the user is always completely synchronized with the content currently playing on the big screen. This solves the problem of information misalignment caused by the advertisements that users see when scanning the code having already switched.

[0018] 3) Timeliness of information acquisition: In QR code scanning mode, if the content on the large screen is updated, users need to scan the code again to obtain the new information. However, in the push notification mode of this invention, updates are automatic and instantaneous, requiring no additional user action, ensuring the most efficient and timely information acquisition. Attached Figure Description

[0019] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0020] Figure 1 This is a flowchart illustrating the method for cross-screen interaction of outdoor media based on NFC device identification provided in Embodiment 1 of the present invention.

[0021] Figure 2 The present invention provides a schematic diagram of an embodiment of an outdoor media cross-screen interactive system based on NFC device identification.

[0022] Figure 3 This is a block diagram illustrating the internal structure of a smart terminal provided in an embodiment of the present invention. Detailed Implementation

[0023] To make the objectives, technical solutions, and advantages of this invention clearer and more explicit, the invention will be further described in 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.

[0024] It should be noted that if the embodiments of the present invention involve directional indicators (such as up, down, left, right, front, back, etc.), the directional indicators are only used to explain the relative positional relationship and movement of the components in a certain specific posture (as shown in the figure). If the specific posture changes, the directional indicators will also change accordingly.

[0025] In traditional outdoor media and mobile interaction solutions, inefficiency manifests in multiple steps required for users to initiate the interaction, and the recognition mechanism is prone to failure in low light or at unfavorable device angles. Poor content relevance stems from the system's inability to dynamically acquire real-time playback materials from outdoor media devices, resulting in mobile devices only being able to access preset static content. Weak device recognition capabilities arise from the complex pairing process required by wireless communication technology, leading to significant signal interference and device confusion issues in densely deployed scenarios. The lack of cross-screen linkage results in the inability to reflect changes in the playback status of the outdoor screen on the user's mobile terminal in real time due to the absence of an effective state synchronization mechanism. These issues collectively lead to prolonged system response time, decreased user interaction success rate, and reduced recognition accuracy in multi-device environments.

[0026] For example, in clusters of outdoor digital billboards in urban commercial areas, multiple billboards are densely deployed. When a user attempts to interact with a specific billboard by scanning a QR code, the camera app cannot clearly recognize the QR code due to the strong midday sunlight, requiring the user to repeatedly adjust their position and angle. Even if the scan is successful, the user is redirected to a general activity page instead of the currently playing promotional video content. The user's mobile device cannot perceive the change when the billboard switches playback content, resulting in a disconnect between the interactive content and the large screen display. Simultaneously, Bluetooth signal interference from other nearby billboards causes frequent errors in the device recognition process, requiring users to retry multiple times to establish a connection. In this scenario, the user interaction flow is interrupted, the system reliability is questioned, and cross-screen interaction functionality cannot be achieved.

[0027] If the aforementioned issues are not addressed, the overall performance of outdoor media interactive systems will be severely impacted. Lengthy and unreliable user interaction processes will reduce user engagement, consequently affecting advertising effectiveness and commercial value. Inaccurate acquisition of material information leads to a disconnect between interactive content and real-time playback, weakening the accuracy and timeliness of media dissemination. The fragility of device recognition mechanisms causes frequent malfunctions in complex environments, increasing the burden of system maintenance. The lack of cross-screen status synchronization fundamentally hinders the realization of immersive interactive experiences, making existing technological solutions ill-suited to the real-time and continuous requirements of modern media. In the long term, these problems will limit the innovative application of outdoor media technology and impede the industry's development towards intelligence and interactivity.

[0028] In response, this application proposes a cross-screen interaction method for outdoor media based on NFC device identification.

[0029] like Figure 1 As shown in Embodiment 1 of the present invention, an outdoor media cross-screen interaction method based on NFC device identification includes the following steps: Step S100: Pre-set an NFC tag containing a unique device number on the outdoor media device; Step S200: When an NFC-enabled mobile device comes into contact with the NFC tag of the target outdoor media device, the mobile device obtains the device number of the contacted NFC tag and sends it to the backend server. Step S300: The backend server uses a real-time material status query engine that combines Redis caching and database to query the current playback material information of the target outdoor media device based on the device number of the contacted NFC tag. Step S400: Based on the currently playing material information of the target outdoor media device, the mobile device loads and displays interactive content corresponding to the currently playing content of the target outdoor media device; Step S500: Control the mobile device to establish a long connection with the target outdoor media device. When the target outdoor media device detects a change in the content being played, control the backend server to actively push updated content information to the mobile device that has established a long connection with the target outdoor media device, thereby achieving real-time synchronization.

[0030] For ease of understanding, the following explains some key terms in this embodiment: The NFC tag, or Near Field Communication tag, is a passive or active electronic tag that typically stores data, such as a unique device identifier used in this embodiment. This tag communicates with NFC-enabled devices via short-range radio waves, enabling rapid data exchange.

[0031] The unique device number is a globally unique identifier assigned to each outdoor media device. This number is used to accurately identify a specific outdoor media device in the backend system and associate it with its playback content and other relevant information.

[0032] The NFC-enabled mobile devices refer to portable electronic devices with Near Field Communication (NFC) functionality, such as smartphones and tablets. These devices can communicate with NFC tags via an NFC module to read or write data.

[0033] The outdoor media equipment refers to display devices deployed in public places for playing advertisements, information, or entertainment content, such as outdoor screens and digital billboards. These devices typically have network connectivity and content playback management systems.

[0034] The backend server refers to a remote computer system responsible for processing business logic, storing data, managing device status, and distributing content. In this method, the backend server receives the device number sent by the mobile device and provides corresponding material query and content push services.

[0035] The Redis cache is a high-performance key-value storage system used for data caching, message queues, and other scenarios. Its key features include fast read and write speeds, effectively reducing database access pressure and improving system response speed.

[0036] The database refers to a system used to store and manage structured data. In this embodiment of the method, the database stores detailed information about outdoor media devices, metadata of playback materials, and a dynamic mapping relationship between device numbers and playback materials.

[0037] The real-time media status query engine refers to a system component that combines Redis caching and a database to quickly and accurately query information about the media currently playing on outdoor media devices. This engine aims to provide low-latency query services to support real-time interactive needs.

[0038] A persistent connection refers to a network connection established between a client and a server that can remain active for an extended period. Unlike short connections, persistent connections allow for multiple data transmissions after a single connection is established, reducing the overhead of connection establishment and termination, and are suitable for scenarios requiring real-time communication.

[0039] The interactive content refers to supplementary or extended content that is associated with the content currently being played on the outdoor media equipment and can be displayed and manipulated on mobile devices. This content aims to enhance user engagement and provide a richer interactive experience.

[0040] In specific implementation of this method, the first step involves pre-setting an NFC tag containing a unique device number on the outdoor media device. This NFC tag can be physically affixed to a conspicuous location on the outdoor media device, such as the edge of the screen or the device casing. A unique device number is pre-written inside the tag to identify the specific outdoor media device. For example, a pre-generated device number can be written into the NFC tag using an NFC writing tool, and then the tag can be affixed to the corresponding outdoor media device. Alternatively, the manufacturer can embed the device number into an NFC chip at the time of manufacture and integrate it into the device, ensuring that each device has a unique NFC identifier.

[0041] When an NFC-enabled mobile device comes into contact with the NFC tag of a target outdoor media device, the mobile device acquires the device number of the contacted NFC tag and sends it to a backend server. The mobile device can sense the presence of the NFC tag through its built-in NFC reader module and automatically read the device number stored in the tag. For example, a user can bring their smartphone close to the NFC tag on an outdoor media device; once the phone's NFC function is activated, it can read the device number from the tag. The read device number can then be sent to a pre-defined backend server address via the mobile device's network connection (such as cellular network or Wi-Fi).

[0042] In this embodiment, the backend server uses a real-time media status query engine that combines Redis caching and a database to query the currently playing media information of the target outdoor media device based on the device number of the contacted NFC tag. When the backend server receives the device number sent by the mobile device, its internal query engine processes it immediately. This query engine first searches the Redis cache for the currently playing media information corresponding to that device number. If the information exists in the cache and has not expired, it is returned directly. If the information does not exist in the cache or has expired, the query engine further accesses the database to obtain the latest playing media information corresponding to that device number and synchronizes it to the Redis cache for subsequent fast queries.

[0043] Based on the information retrieved about the currently playing content on the target outdoor media device, the mobile device loads and displays interactive content corresponding to that content. Once the mobile device receives the information about the currently playing content from the backend server, it determines and loads the corresponding interactive content based on this information. For example, if the outdoor media device is playing a car advertisement, the mobile device might load a link to the car brand's official website, model information, a test drive appointment page, or a related promotional page as interactive content. This interactive content can be pre-stored locally on the mobile device or dynamically retrieved from the backend server.

[0044] In this embodiment, to achieve real-time synchronization, a persistent connection is established between the mobile device and the target outdoor media device. When a change in playback content is detected on the target outdoor media device, the backend server simultaneously and proactively pushes updated content information to the mobile device with which the persistent connection has been established. The establishment of the persistent connection ensures continuous bidirectional communication between the mobile device and the backend server. For example, the mobile device can initiate a persistent connection request to the backend server. Once the connection is established, the backend server continuously monitors the playback status of the outdoor media device. When the content on the outdoor media device changes, the backend server immediately pushes the new playback content information to the mobile device through the established persistent connection, thereby enabling real-time updates of the interactive content on the mobile device and maintaining synchronization with the outdoor media device.

[0045] The following example will provide a more detailed explanation of the above technical solution: For example, an advertisement for a new smartphone is playing on a large outdoor advertising screen in a city's commercial district. This outdoor media device has a pre-installed NFC tag containing the screen's unique device number.

[0046] A user, A, walks past the advertising screen, wanting to learn more about the phone. Without opening a mobile app or scanning a QR code, user A simply brings their NFC-enabled mobile device close to an NFC tag on the screen. Once the mobile device senses the NFC tag, it automatically reads the unique device number stored in the tag, such as "OUTDOOR_SCREEN_001". The mobile device then sends this device number to a backend server via its network connection.

[0047] Upon receiving the device ID "OUTDOOR_SCREEN_001", the backend server immediately activates its internal real-time content status query engine. This engine first searches the Redis cache for the currently playing content information for "OUTDOOR_SCREEN_001". If the Redis cache does not contain the latest information, the query engine further accesses the database and finds that the currently playing ad screen is for "New Smartphone Ad A". The query engine returns this information to the mobile device and simultaneously updates the Redis cache.

[0048] After receiving the material information for "New Smartphone Ad A," the mobile device loads and displays interactive content corresponding to the ad content. For example, the mobile device will immediately display the phone's detailed specifications, user reviews, purchase links, and a trial reservation portal. This interactive content is closely related to the mobile phone ad playing on the ad screen, solving the problem of poor content relevance in existing solutions.

[0049] Simultaneously, a persistent connection is established between the mobile device and the backend server in this embodiment. When the content on the advertising screen switches from "New Smartphone Ad A" to "New Sneaker Ad B," the playback system of the outdoor media device notifies the backend server of the content switch event. After detecting the content switch, the backend server immediately pushes the switch information of "New Sneaker Ad B" to user A's mobile device through the previously established persistent connection. After receiving the updated information, the interactive content displayed on user A's mobile device will also switch in real time to product introductions, purchase links, etc., related to the sneaker ad. The entire process achieves real-time synchronization between outdoor media and mobile devices, solving the problem of missing cross-screen interaction.

[0050] In this embodiment, through NFC near-field sensing, user A's mobile device can quickly and accurately identify outdoor media devices, avoiding the cumbersome operation of QR code scanning and the complexity of Bluetooth / Wi-Fi pairing, significantly improving interaction efficiency and device recognition capabilities. The entire interaction process is smooth and natural, providing users with a seamless cross-screen interactive experience.

[0051] Based on the above examples, this method effectively solves the problems of low interaction efficiency, poor content relevance, weak device recognition capability, and lack of cross-screen linkage in existing outdoor media interaction solutions by introducing NFC device identification, real-time material status query engine, and long-connection real-time synchronization mechanism, demonstrating significant technical contributions.

[0052] Compared to traditional QR code scanning, this method utilizes NFC technology for near-field sensing. Users simply need to bring their mobile device close to the NFC tag to complete device identification and information acquisition, eliminating the cumbersome steps of opening the camera app and focusing on the scan, thus greatly improving interaction efficiency. For example, in the example above, user A can quickly obtain interactive content from a mobile advertisement without any additional operation, avoiding the problem of QR code recognition difficulties in poor lighting or at incorrect angles.

[0053] Regarding content relevance, this method utilizes a real-time media status query engine combining a backend server with Redis caching and a database. Based on the unique device ID obtained from the NFC tag, it can accurately retrieve the media information currently playing on outdoor media devices. This allows mobile devices to load and display interactive content highly relevant to the real-time playback content, rather than fixed, generic content. This contrasts sharply with existing solutions where users can only access generic content, significantly enhancing the accuracy of interactive content and user experience.

[0054] For device identification, NFC technology provides a direct and unique method. Each outdoor media device has an NFC tag containing a unique device number. Mobile devices can accurately identify the target device by sensing it via NFC, avoiding the pairing complexities, signal interference, and device confusion issues that may occur with Bluetooth or Wi-Fi solutions. This ensures stable and reliable device identification even in multi-device environments.

[0055] Most importantly, this embodiment of the method establishes a long-lived connection between the mobile device and the backend server, with the backend server actively pushing content switching information, achieving real-time synchronization between outdoor media and mobile devices. When the content played on the outdoor media device changes, the interactive content on the mobile device can be updated instantly, forming a true cross-screen interactive experience. This overcomes the limitation of existing technologies that lack effective means to synchronize the playback status of outdoor large screens with mobile devices in real time, providing users with a coherent and immersive interactive process.

[0056] In summary, this method, through convenient NFC identification, accurate association of real-time material queries, and real-time synchronization via long connections, constructs an efficient, intelligent, and seamless cross-screen interactive system for outdoor media, significantly improving user experience and interactive effects, and has important technological advancement significance.

[0057] In some embodiments described above, an outdoor media cross-screen interaction method based on NFC device identification is proposed. In this method, a mobile device obtains the device number of the outdoor media device via NFC contact and sends it to a backend server to initiate interaction. However, in practical applications, ensuring that the mobile device can efficiently and accurately pass the device number to the correct processing program after obtaining it, and seamlessly establish communication with the backend server, is crucial to user experience and system efficiency. If this process requires additional user operations or selections, it may increase the user's workload and reduce the convenience of interaction.

[0058] In response, this application further proposes a step in which, when an NFC-enabled mobile device comes into contact with the NFC tag of a target outdoor media device, the mobile device obtains the device number of the contacted NFC tag and sends it to the backend server. This step includes: when an NFC-enabled mobile device comes into contact with the NFC tag of a target outdoor media device, the mobile device automatically obtains the unique device number of the NFC tag of the outdoor media device and sends the obtained unique device number as a startup parameter to a designated applet on the mobile terminal; the designated applet on the mobile terminal then sends the device number to the backend server.

[0059] The automatic acquisition of the unique device number of the NFC tag of the outdoor media device by the mobile device means that when the mobile device comes into contact with the NFC tag of the outdoor media device, it can immediately identify and read the preset unique device number in the NFC tag without the user's manual confirmation or the launch of a specific application. This can be achieved through the NFC service layer built into the mobile operating system. For example, when the NFC controller detects the NFC tag, the system automatically parses the tag data and extracts the preset device identifier. Another implementation method is to use a system-level NFC processing program pre-installed on the mobile device. This program continuously listens for NFC events in the background, and once an NFC tag is detected, it automatically triggers a reading operation and obtains the device number. Sending the obtained unique device number as a startup parameter to a designated applet on the mobile terminal means that after the mobile device successfully obtains the unique device number, the number is not simply read, but is used as an input parameter to launch a specific applet pre-set on the mobile terminal. This can be achieved through various mechanisms. For example, the NFC tag can store a URL (Uniform Resource Locator) containing the device number. When the mobile device reads the URL, the operating system will automatically identify and launch the designated applet associated with it according to the URL's protocol or domain name, and pass the device number as a URL query parameter to the applet. Alternatively, the NFC service layer of a mobile device can directly call a designated mini-program via an application programming interface (API), passing the device ID as a launch parameter. The designated mini-program on the mobile terminal sending the device ID to the backend server means that once the designated mini-program is launched and receives the device ID as a launch parameter, it will be responsible for transmitting this device ID to the backend server. This is typically accomplished through network communication protocols; for example, the mini-program can initiate an HTTP or HTTPS request (such as a POST request), sending the device ID as a request body or URL parameter to a pre-defined interface on the backend server. Furthermore, the mini-program can also utilize long-lived connection technologies such as WebSocket to send the device ID to the backend server after establishing a connection, enabling subsequent real-time interaction.

[0060] This application's solution organically combines a series of steps—automatically acquiring the unique device number of the NFC tag on the outdoor media device by the mobile device, sending this number as a startup parameter to a designated mini-program on the mobile terminal, and having the designated mini-program send the device number to the backend server—to optimize the initial stage of cross-screen interaction in outdoor media. When an NFC-enabled mobile device comes into contact with the NFC tag of the target outdoor media device, the mobile device no longer simply acquires the device number; instead, it automatically and seamlessly reads the device number using its built-in NFC function. Subsequently, this automatically acquired unique device number is intelligently encapsulated and used as part of the startup command to directly trigger and launch the pre-configured designated mini-program on the mobile terminal. This mechanism ensures that after NFC contact occurs, the system can immediately transfer control and key information (device number) to the application specifically handling this interaction logic. Once the designated mini-program is launched and receives the device number, it assumes the responsibility of communicating with the backend server, accurately sending the device number to the backend server. The entire process forms an automated and seamless workflow from physical contact to digital service startup, greatly simplifying user operations and ensuring the smoothness and accuracy of the interaction process. In this way, the solution effectively solves the problems that may exist in traditional NFC interaction, such as application startup delays, poor information transmission, or cumbersome user operations, laying an efficient and stable foundation for subsequent material retrieval, interactive content loading, and real-time synchronization.

[0061] The following is a concrete example. Suppose a user is carrying an NFC-enabled smartphone (mobile device) and passes by a digital billboard (outdoor media device). The billboard has an NFC tag pre-written with its unique device ID, such as "AD_BOARD_001," and it also has a deep link pointing to a specific mini-program installed on the user's phone, such as the "Interactive Advertising Assistant" mini-program. When the user brings their smartphone close to the NFC tag, the smartphone's NFC controller automatically senses and reads the information from the NFC tag. After recognizing the deep link, the operating system automatically launches the "Interactive Advertising Assistant" mini-program, passing "AD_BOARD_001" as a startup parameter. Once launched, the "Interactive Advertising Assistant" mini-program immediately parses the received startup parameter and extracts the device ID "AD_BOARD_001." Subsequently, the mini-program sends an HTTP POST request to a pre-defined backend server address via its built-in network communication module, with the device ID included in the request body. Once the backend server receives the request, it can use the device ID to perform subsequent material searches and prepare interactive content.

[0062] Through the above technical solution, the interaction process between mobile devices and outdoor media devices has been significantly optimized. This solution automates the acquisition and intelligent transmission of device IDs, eliminating the tedious steps of users manually selecting or launching applications, thus greatly improving the smoothness and convenience of the user experience. By sending the device ID as a launch parameter directly to the designated mini-program, it ensures that interaction requests are processed instantly by the correct application, reducing interaction interruptions or failures caused by incorrect application selection or launch delays. Furthermore, having the designated mini-program responsible for sending the device ID to the backend server makes the entire data transmission process more standardized and reliable, providing accurate and timely foundational data for subsequent real-time material queries and interactive content loading, thereby improving the response speed and efficiency of the entire cross-screen interaction system.

[0063] In some embodiments described above, this application proposes a cross-screen interaction method for outdoor media based on NFC device identifiers. This method obtains the device number of the outdoor media device via an NFC tag and uses this identifier to query playback material information to load interactive content. However, in practical applications, simply setting up an NFC tag containing a unique device number may present challenges in ensuring the global uniqueness of the device number and in efficiently and flexibly managing the correspondence between the device number and the constantly changing playback material. Improper device number management or inflexible material mapping may lead to errors in loading interactive content or failure to update it in a timely manner, impacting the user experience.

[0064] In response, this application further proposes a step of pre-setting an NFC tag containing a unique device number on an outdoor media device, including: pre-assigning a globally unique device number to each outdoor media device and writing the globally unique device number into the NFC tag of the outdoor media device; pre-establishing a dynamic mapping relationship between the device number of each outdoor media device and the playback material, and setting the playback material corresponding to the device number to be queried through a real-time material status query engine.

[0065] Assigning a globally unique device number to each outdoor media device in advance means that each outdoor media device has a unique identifier throughout the entire system, ensuring that there are no duplicates. This aims to ensure that each outdoor media device has a clear and unambiguous identity within the system, which is the foundation for achieving accurate content matching and data tracking. For example, it can be automatically generated and assigned during device production or deployment through a centralized device management platform, such as using UUID (Universally Unique Identifier) ​​or generating it based on timestamps, MAC addresses, and other information combined with hash algorithms. In addition, a hierarchical encoding rule can also be used, such as combining regional codes, device type codes, and serial numbers, to ensure uniqueness under different regions and device types. The globally unique device number is then written into the NFC tag of the outdoor media device, aiming to solidify the device's unique identifier into the NFC tag, so that mobile devices can easily and accurately obtain the identifier by NFC contact, serving as the entry point for subsequent interaction processes. For example, an NFC writing tool or dedicated programming device can be used to write the pre-assigned device number into the storage area of ​​the NFC tag in a specific data format (such as NDEF record) before the NFC tag leaves the factory or during device deployment. Alternatively, the outdoor media device's own control system can communicate with the NFC tag reader / writer module during initial startup or configuration to write the device number to the NFC tag. Pre-establishing a dynamic mapping relationship between each outdoor media device's device number and playback content means that the association between the device number and playback content is not fixed but can be adjusted and updated in real time based on factors such as time, scheduling, and advertising strategies. This aims to ensure that the system can flexibly provide corresponding interactive content based on the current content being played by the outdoor media device, adapting to scenarios with frequent content updates. For example, a database table or configuration service can be maintained on the backend server to store information such as device number, current playback content ID, content version, and playback time, and provide an API interface for querying and updating. Furthermore, integration with the device management system can be achieved through a content management system (CMS). When the CMS updates the playlist or content, the mapping relationship between device numbers and playback content is automatically synchronized and updated. The playback content corresponding to the device number can be queried through a real-time content status query engine, explicitly indicating that this dynamic mapping relationship needs to be accessed through an efficient query mechanism to support mobile devices in obtaining the correct interactive content in real time. For example, a real-time media status query engine could be a standalone microservice that receives the device ID as input and returns information about the currently playing media. Its internal logic includes querying the database and caching. Alternatively, it could be a specific module on the backend server that uses optimized query algorithms and data structures to ensure fast response times even under a large number of concurrent requests.

[0066] This application's solution assigns a globally unique device number to each outdoor media device and reliably writes it into the device's NFC tag, thus providing a clear and unambiguous identity for each device. Based on this, the system pre-establishes and maintains a dynamic mapping relationship between device numbers and playback content, allowing this association to be updated in real time according to changes in the actual playback content. Furthermore, this dynamic mapping relationship is configured for efficient querying via a real-time content status query engine. When an NFC-enabled mobile device comes into contact with the NFC tag of an outdoor media device, the mobile device obtains the globally unique device number and sends it to the backend server. The backend server uses this device number to quickly and accurately query the content information currently being played by the outdoor media device through the real-time content status query engine. This mechanism ensures that the mobile device can always load and display interactive content that precisely corresponds to the currently playing content of the outdoor media device, guaranteeing the real-time nature and accuracy of the interactive content even if the playback content of the outdoor media device frequently changes. This effectively solves the problems of ambiguity in device identification and inflexible content mapping relationships, providing a solid and efficient foundation for subsequent cross-screen interaction.

[0067] As a specific implementation method, each outdoor media device located in different commercial areas, such as a large LED advertising screen, can be assigned a globally unique device number based on the UUIDv4 standard, such as "550e8400-e29b-41d4-a716-446655440000". This number is written to the NFC tag attached to the device, such as an NXP NTA series tag, using a dedicated NFC writer when the device leaves the factory or is deployed for the first time. Simultaneously, a dynamic mapping table is maintained in the backend content management system, which associates the aforementioned globally unique device number with the currently playing advertising creative ID, creative version number, and corresponding interactive content resource path. For example, if device ID "550e8400-e29b-41d4-a716-446655440000" plays a "Brand A New Product Launch" ad from 9:00 AM to 12:00 PM, the mapping relationship would be `{device_id:"...",content_id:"brandA_new_product",interactive_url:"https: / / example.com / brandA_interactive"}`. When the content schedule is updated to play a "Brand B Promotion" ad from 12:00 PM to 3:00 PM, this mapping relationship will automatically update to `{device_id:"...",content_id:"brandB_promo",interactive_url:"https: / / example.com / brandB_interactive"}`. The backend server's real-time media status query engine, such as a microservice developed based on the Spring Boot framework, provides a RESTful API interface to receive device IDs sent by mobile devices and, based on these IDs, queries and returns the latest playback media information and corresponding interactive content resources in real time.

[0068] By employing the aforementioned technical solution, a globally unique device number is assigned to each outdoor media device and written into an NFC tag, fundamentally resolving the ambiguity in device identification. Simultaneously, a dynamic mapping relationship is established between the device number and the playback content, which can be queried through a real-time content status query engine. This ensures that mobile devices can accurately and in real-time obtain interactive content matching the currently playing content on the outdoor media device. This significantly improves the accuracy and flexibility of cross-screen interaction, effectively preventing a decline in the interactive experience due to device identification errors or untimely content updates, thus providing users with a seamless and highly relevant interactive experience.

[0069] In some embodiments described above, a long-term connection is established between the mobile device and the target outdoor media device. When content is switched on the outdoor media device, the backend server actively pushes updated content information to the mobile device to achieve real-time synchronization. However, in practical applications, using traditional short-term connections or polling mechanisms to maintain this "long-term connection" may lead to data transmission delays, excessive server resource consumption, and an inability to guarantee instant synchronization during content switching, thereby affecting user experience and system response efficiency.

[0070] To address this, this application further proposes controlling the establishment of a long-lived WebSocket connection between the mobile device and the target outdoor media device. WebSocket is a protocol for full-duplex communication over a single TCP connection. It allows the server to proactively push data to the client without requiring frequent client requests. Unlike the traditional HTTP request-response model, once a WebSocket connection is established, it remains open, enabling bidirectional real-time data transmission between the client and server. As one possible implementation, the mobile device can initiate connection requests through its built-in WebSocket client library, while the backend server listens for and processes these connections through a WebSocket server-side program. Another possible implementation is that on the mobile device side, the WebSocket API in JavaScript or a platform-specific SDK (such as OkHttpWebSocket for Android or Starscream for iOS) can be used to establish and manage WebSocket connections. On the backend server side, a WebSocket service can be built using libraries such as the ws library in Node.js, SpringWebSocket in Java, or the websockets library in Python.

[0071] This application's solution establishes a persistent, bidirectional WebSocket connection between a mobile device and a target outdoor media device, enabling a continuous communication channel between the mobile device and the backend server. When an NFC-enabled mobile device contacts the NFC tag of the target outdoor media device, it obtains the device ID and sends it to the backend server. The backend server uses a real-time media status query engine combining Redis caching and a database to retrieve the currently playing media information of the target outdoor media device. The mobile device then loads and displays interactive content corresponding to the currently playing content. Furthermore, by establishing a persistent WebSocket connection, if the playback content on the target outdoor media device changes, the backend server can immediately and proactively push the updated changed content information to the corresponding mobile device through this persistent connection. This mechanism avoids frequent query requests from the mobile device to the server, significantly reducing network latency and server load, and ensuring that the interactive content on the mobile device remains highly synchronized with the playback content on the outdoor media device in real time. Through the full-duplex nature of WebSocket, data streams can be efficiently transmitted between the client and server, providing users with a smooth and seamless cross-screen interactive experience.

[0072] The following is a concrete example. When an NFC-enabled mobile device comes into contact with the NFC tag of an outdoor media device, the mobile device obtains the device number and sends a request to the backend server to retrieve interactive content. While loading and displaying the interactive content, the mobile device initiates a connection request to the backend server's specific WebSocket service address via its built-in WebSocket client module. Upon receiving the request, the backend server verifies the connection and establishes a persistent WebSocket session. Subsequently, when the video advertisement or promotional video on the outdoor media device switches from content A to content B, the outdoor media device's playback system notifies the backend server. The backend server then pushes updated information about content B (e.g., interactive links, images, or text descriptions of content B) to the mobile device associated with the outdoor media device in real time via the established WebSocket persistent connection. After receiving the push information, the mobile device's mini-program interface can be updated immediately, displaying interactive options corresponding to content B, for example, changing from "Learn about product A" to "Participate in activity B".

[0073] The above technical solution effectively solves the problems of poor real-time performance and high resource consumption associated with traditional connection methods in cross-screen interaction of outdoor media. WebSocket's full-duplex communication capability and persistent connection characteristics enable the backend server to proactively push playback content switching information from outdoor media devices to mobile devices in real time, ensuring that the interactive content on the mobile device and the playback content on the outdoor media device remain highly consistent and synchronized in real time. This greatly improves the smoothness of the user experience and the accuracy of the interactive content, avoiding confusion or delays caused by information asynchrony, while optimizing system resource utilization efficiency, providing an efficient and reliable cross-screen interactive solution for dynamic content display of outdoor media.

[0074] In some of the embodiments described above in this application, the backend server queries the currently playing media information of the target outdoor media device through a real-time media status query engine that combines Redis caching and a database. However, in practical applications, the playing media information of outdoor media devices may be updated frequently, and the number of query requests for media information from mobile devices may be large. If the query engine fails to respond to these requests efficiently and in real time, it may cause delays or inconsistencies between the interactive content obtained by the mobile device and the actual playing content of the outdoor media device, affecting the user experience and potentially putting significant query pressure on the backend server.

[0075] To address this, this application further proposes a real-time media status query engine that combines Redis caching and a database on the backend server. This engine employs a dual-layer Redis caching + database query mechanism. In this application, the "Dual-layer Redis caching + database query mechanism" is a data storage and access strategy designed to optimize data query efficiency and real-time performance. Redis caching is a high-performance, memory-based key-value storage system characterized by extremely fast read and write speeds, significantly reducing data access latency. In implementation, Redis can be configured with various data structures, such as hash tables for storing structured media information, or strings for storing simple media IDs. Its data eviction strategy can employ LRU (Least Recently Used) or LFU (Least Frequently Used) to ensure that frequently accessed data remains resident in memory. The database serves as a persistent storage layer, responsible for storing media information from all outdoor media devices, ensuring data integrity and reliability. The database can be a relational database, such as MySQL or PostgreSQL, for storing structured media metadata and playlists; or a NoSQL database, such as MongoDB, for storing unstructured or semi-structured media content descriptions. The primary function of a database is to provide eventual consistency and long-term storage of data. A two-tier query mechanism involves first attempting to retrieve data from a high-speed Redis cache. If the required data is not found in the cache (i.e., a cache miss), then the database is queried, and the retrieved data is synchronously updated in the Redis cache so that subsequent requests can retrieve it directly from the cache. This mechanism effectively combines Redis's high-speed read / write capabilities with the database's data persistence capabilities.

[0076] This application's solution optimizes the performance and response speed of the backend server's real-time media status query engine by employing a two-layer query mechanism of Redis caching and database. When a mobile device sends its device ID to the backend server to query the currently playing media information of a target outdoor media device, the query engine first initiates a query request to the Redis cache. Since the Redis cache stores frequently accessed media information in memory, for most query requests, the required media information can be retrieved from the cache extremely quickly, thus significantly shortening the response time. If the corresponding media information is not found in the Redis cache, the query engine further initiates a query request to the database to retrieve the latest media information. After obtaining the data, the query engine synchronously updates the data to the Redis cache to ensure the timeliness and consistency of the cached data and to provide a high-speed response for subsequent identical queries. This mechanism enables the query engine to efficiently handle a large number of concurrent query requests while ensuring the real-time nature and accuracy of the query results, effectively reducing the access pressure on the database, and ensuring that mobile devices can quickly and accurately load and display the corresponding interactive content when switching playback content on outdoor media devices.

[0077] The following is a concrete example. When an NFC-enabled mobile device comes into contact with the NFC tag of a target outdoor media device, the mobile device obtains the device ID and sends it to the backend server. Upon receiving this device ID, the backend server's real-time media status query engine first attempts to retrieve the currently playing media information associated with that device ID from the Redis cache. For example, the query engine might try to retrieve the corresponding hash table from Redis using `device_id:material_info` as the key. This hash table might contain fields such as `material_id`, `material_name`, and `start_time`. If the information exists in the Redis cache, it is directly returned to the mobile device. If the information is not found in the Redis cache, the query engine will then initiate a query to the backend database (e.g., MySQL), executing an SQL query like `SELECT material_id, material_name, start_time FROM media_status WHERE device_id='xxx'` to retrieve the latest media information from the database. After retrieving the database query results, the query engine writes this material information to the Redis cache, for example, using the command `HSETdevice_id:material_infomaterial_id'yyy'material_name'zzz'`, and sets an appropriate expiration time so that it can be retrieved directly from Redis for the next query. Subsequently, the query engine returns the retrieved material information to the mobile device, which then loads and displays the interactive content.

[0078] Through the above technical solution, the backend server's real-time media status query engine can respond to mobile device query requests with higher efficiency and lower latency. This two-layer query mechanism significantly improves data access speed and reduces database load, thereby ensuring that mobile devices can obtain interactive content corresponding to the currently playing content on outdoor media devices in real time and accurately. This not only optimizes the user's cross-screen interaction experience but also improves the stability and scalability of the entire system, effectively solving the latency and inconsistency problems that may occur in media information queries under scenarios with a large number of concurrent requests and frequent data updates.

[0079] The following are a few more application scenarios to further illustrate the invention: Example of application scenario 1: Cross-screen interactive scenario for shopping mall advertising screens; Scenario Description: A user sees an LED screen in a shopping mall playing an advertisement for a brand's new product and obtains product details through NFC interaction.

[0080] Step 1, NFC tag configuration: The LED screen device number is "MALL_LED_001", and the NFC tag is written with this number; Step 2, User Interaction Trigger: The user touches the NFC tag with their mobile phone, automatically launching the shopping mini-program; Step 3, Obtain Device ID: The device ID "MALL_LED_001" is included in the startup parameters of the mobile app. Step 4. Material Query Execution: constdeviceId="MALL_LED_001"; constcurrentMaterial=awaitqueryCurrentMaterial(deviceId); {productId:"P12345",adType:"newProduct",brandName:"XXX"} Step 5. Cross-screen content loading: The mini-program loads the product details page and promotional information based on the query results; Step 6. Real-time synchronization: When the LED screen switches to the next advertisement, the mini-program content is automatically updated.

[0081] Example of application scenario two: interactive information scenario at bus stops; Scenario description: Users at bus stops use NFC to obtain currently playing bus route information and real-time arrival time.

[0082] Step 11, Equipment Identification: The equipment number for the bus stop display screen is "BUS_STOP_A01"; Step 12, Content Query: Query the currently displayed bus routes and arrival information by device number; Step 13, Mobile Display: Display detailed route maps, fares, and transfer suggestions on the user's mobile phone; Step 14, Dynamic Update: When there is new bus arrival information, the mobile app will update and display it synchronously.

[0083] As can be seen, the present invention can achieve the following technical effects through the above-described application scenario embodiments: 1) Improved interaction efficiency: NFC allows for one-touch access, reducing operation time by 60% compared to QR code scanning; 2) Precise content matching: Achieve 100% accurate correspondence between playback content and mobile device content; 3) User experience optimization: Cross-screen interaction creates an immersive digital interactive experience; 4) System response performance: Millisecond-level query response, supporting stable operation in high-concurrency scenarios.

[0084] In some of the embodiments described above in this application, when an NFC-enabled mobile device comes into contact with the NFC tag of a target outdoor media device, the mobile device acquires the device number of the contacted NFC tag and sends it to the backend server to achieve cross-screen interaction. However, in practical applications, the quality of NFC communication may be affected by various factors, such as contact posture and environmental interference, leading to failure in acquiring the device number or unstable data transmission, thereby affecting user experience and interaction efficiency.

[0085] In response, this application further proposes that before the step of the NFC-enabled mobile device contacting the NFC tag of the target outdoor media device, and the mobile device obtaining the device number of the contacted NFC tag and sending it to the backend server, a real-time NFC communication quality assessment and feedback mechanism should be pre-configured on the mobile device to continuously monitor the strength, stability and data transmission progress of the NFC signal.

[0086] The "pre-configuration of a real-time NFC communication quality assessment and feedback mechanism on the mobile device" refers to pre-integrating a system into the mobile device's operating system or application layer. This system can monitor, analyze, and evaluate various key indicators during the NFC communication process in real time. This mechanism can integrate relevant modules into the mobile device's NFC driver or service layer, obtaining raw data such as NFC signal strength and packet error rate through underlying APIs and performing real-time calculations. Alternatively, it can be implemented in the mobile device's application layer by calling the system-provided NFC interface to obtain communication status information and perform evaluations in conjunction with the application's own logic. The "continuous monitoring of NFC signal strength, stability, and data transmission progress" aims to ensure the reliability of the NFC interaction process and the user experience. By monitoring these indicators, communication problems can be detected promptly, providing guidance to users. Signal strength can be determined by reading the Radio Frequency Signal Strength Indicator (RSSI) value received by the NFC controller; stability can be assessed by continuously sampling RSSI value fluctuations or the success rate of data frame verification; data transmission progress can be determined by monitoring the ratio of transmitted data to the total data volume. Furthermore, communication stability and data transmission progress can also be indirectly assessed by analyzing information such as ACK / NACK frames and retransmission counts in the NFC protocol stack.

[0087] This application's solution pre-configures a real-time NFC communication quality assessment and feedback mechanism on the mobile device. Before the NFC-enabled mobile device contacts the NFC tag of the target outdoor media device and attempts to acquire the device ID, it continuously monitors the strength, stability, and data transmission progress of the NFC signal. This mechanism, as a pre-processing step in the NFC device identification acquisition process, provides real-time insight into the health of the NFC communication link. When the mobile device approaches the NFC tag, the mechanism immediately activates, continuously sampling and analyzing the NFC signal to ensure a stable and reliable communication environment during the critical data exchange of device ID acquisition and transmission to the backend server. This pre-processing quality assessment allows the system to intervene promptly when communication quality is poor, avoiding interaction failures caused by blind attempts, thereby improving the robustness and user experience of the entire cross-screen interaction method.

[0088] As a specific implementation, the mobile device can integrate an NFC communication management module. When a user attempts to make an NFC contact, this module is immediately activated and continuously reads the signal strength (e.g., in dBm) and data frame verification status reported by the NFC controller. For example, the module can sample the signal strength every 50 milliseconds and record the data frame verification success rate over the past second. If continuous sampling reveals that the signal strength is below a preset threshold (e.g., -70 dBm), or the data frame verification success rate is below 90%, the system can determine that the current NFC communication quality is poor. At this time, the mobile device's user interface can dynamically display a progress bar, the color or animation of which changes in real time according to the signal quality; for example, a steady green progress bar is displayed when the signal is good, and a flashing yellow progress bar is displayed when the signal is unstable. Simultaneously, the mobile device can emit vibration feedback in different modes; for example, short vibrations indicate a good signal, while long or intermittent vibrations indicate an unstable signal, prompting the user to adjust their contact posture or position.

[0089] Through the aforementioned technical solution, a pre-configured real-time NFC communication quality assessment and feedback mechanism can effectively identify and avoid interaction failures caused by poor NFC communication quality before the mobile device acquires the device number of the NFC tag and sends it to the backend server. This significantly improves the success rate and smoothness of cross-screen interaction with outdoor media, avoiding user frustration from multiple failed attempts. Simultaneously, through continuous monitoring and timely feedback, users can adjust their operations based on system prompts, thereby optimizing the efficiency and user experience of NFC interaction, ensuring the smooth acquisition of the device number and loading of interactive content, and making the entire cross-screen interaction process more stable and reliable.

[0090] In some of the above implementations, a real-time NFC communication quality assessment and feedback mechanism is pre-configured before the mobile device obtains the NFC tag device number. However, in actual outdoor environments, NFC signals may be interfered with by various factors, such as environmental electromagnetic noise, poor device relative position, or improper user operation, leading to unstable or even interrupted NFC communication. This not only affects the accurate acquisition of the device number but may also result in a poor user experience, or even prevent the entire cross-screen interaction process from proceeding smoothly, leaving users unable to identify the problem or how to effectively resolve it.

[0091] To address this, this application further proposes controlling the NFC controller of the mobile device to continuously read the received signal strength index (RSSI) and data frame integrity status of the contacted NFC tag; the NFC service layer of the operating system calculates an interaction quality score based on the RSSI sequence and data frame verification results collected within a predetermined time window; wherein, the interaction quality score = (current RSSI value / maximum readable RSSI value) × 0.5 + (data frame verification pass rate) × 0.5; when the RSSI values ​​of multiple consecutive sampling points are higher than a preset threshold, and the data frame verification pass rate reaches a predetermined percentage or higher, the signal is determined to be good; based on the calculated NFC tag interaction quality score, the mobile device's mini-program interface is controlled to provide real-time prompts to the user about the NFC communication status through different dynamic progress bars or different vibration modes; when the calculated interaction quality score is lower than a preset threshold, the control intelligently provides operation suggestions such as adjusting the position of the mobile device, keeping it stationary, or adjusting the angle, based on the specific reasons for insufficient signal strength or data frame errors; when more than a preset number of failed attempts to read the NFC tag are detected, the control activates the dynamic QR code on the outdoor media device screen as a backup interaction channel and prompts for scanning.

[0092] The Received Signal Strength Indicator (RSSI) measures the strength of the electromagnetic signal received by the NFC controller, reflecting the physical distance between the NFC tag and the mobile device and signal attenuation. The data frame integrity status indicates whether errors or data loss occur during NFC data transmission, and is crucial for assessing communication reliability. Continuously reading this information allows for real-time, dynamic monitoring of NFC communication quality. The mobile device's NFC controller can have a built-in hardware module that periodically samples and reports the received radio frequency signal strength. Upon receiving a data frame, it uses mechanisms such as CRC checksums to determine the data frame's integrity and reports the results to the operating system's NFC service layer via interrupt or polling. Alternatively, the mobile device's NFC chip driver can be configured to automatically capture the current NFC signal's RSSI value at a preset frequency during an NFC session and perform error detection on each received data packet, providing this raw data to upper-layer applications or services.

[0093] The Interaction Quality Score (IHS Score) is a comprehensive metric used to quantify the overall quality of NFC communication. It combines signal strength and data transmission reliability, providing an intuitive numerical value to assess the feasibility of current NFC interactions and the potential for user experience. Calculation through the operating system's NFC service layer ensures standardized evaluation and system-level support. The operating system's NFC service layer can maintain a sliding time window, averaging or weighted averaging the RSSI value sequences collected within this window and calculating the data frame verification pass rate. These processed values ​​are then substituted into a preset formula for calculation. Alternatively, the operating system's NFC service layer can utilize the API provided by the NFC driver to obtain a set of RSSI sampling points and a list of data frame verification results over a period of time. By statistically analyzing the RSSI sequences and calculating the proportion of successfully transmitted data frames, the IHS Score is finally derived according to the formula.

[0094] This embodiment clearly defines the calculation logic for the interaction quality score, assigning a weight of 0.5 to both signal strength and data integrity, reflecting their equal importance in NFC communication quality. The signal strength judgment criteria provide a decision-making basis for subsequent user feedback and operational suggestions. After calculating the interaction quality score, the operating system's NFC service layer compares it with preset thresholds. For example, the maximum readable RSSI value can be determined according to the NFC chip's specifications, while the preset threshold and predetermined percentage can be configured based on actual testing and user experience survey results, and stored in the system configuration file. Alternatively, a configuration table can be defined in the NFC service layer, containing the maximum readable RSSI value for different NFC chips, the RSSI threshold for signal strength judgment, and the data frame verification pass rate. The calculation module dynamically loads these configurations and makes judgments based on the currently calculated score and the status of continuous sampling points.

[0095] Intuitive visual (dynamic progress bar) or tactile (vibration pattern) feedback allows users to instantly understand the current status of NFC communication, enhancing their perception and control over the interaction process and avoiding anxiety or misoperation caused by a lack of feedback. The mobile app interface can feature a circular progress bar whose fill level or color dynamically changes based on the interaction quality score. For example, a higher score results in a more filled bar or a greener color; a lower score results in less filling or a redder color. Simultaneously, different vibration frequencies or intensities can be triggered based on the score. Alternatively, the app interface can display an animated NFC icon whose animation speed or brightness changes with the interaction quality score. For example, the icon flashes steadily when the signal is good, flashes slowly with slight, short vibrations when the signal is weak, and may appear gray with continuous, weak vibrations when the signal is extremely poor.

[0096] When NFC communication quality is poor, the system can intelligently provide targeted operation guidance based on the specific cause (weak signal or data error) to help users quickly correct their actions and improve the success rate of interactions. The mini-program on the mobile device can have a built-in decision tree or rule engine. When the interaction quality score is below a threshold, the system analyzes whether it's due to a low RSSI value (insufficient signal strength) or a high data frame verification failure rate (data frame error). If it's the former, it suggests "Please bring your phone close to the NFC tag and keep it still"; if it's the latter, it suggests "Please try adjusting the phone's angle or pausing briefly." Alternatively, the operating system's NFC service layer can send an event with an error type code to the mini-program. Upon receiving the event, the mini-program selects the corresponding operation suggestion from a preset text library based on the error code and displays it to the user via a pop-up window or Toast message.

[0097] When NFC interactions fail multiple times, a backup solution (dynamic QR code) is provided to ensure users can still interact through other methods, avoiding user churn or experience interruption due to NFC technology limitations. After detecting multiple consecutive NFC read failures, the mobile app sends a request to the backend server to activate the dynamic QR code on the target outdoor media device's screen. Simultaneously, the app interface displays a message: "NFC read failed, please scan the QR code on the screen." Alternatively, the backend server can maintain an NFC failure counter. When the number of reported NFC read failures by the mobile device reaches a preset threshold, the backend server sends a command to the corresponding outdoor media device, causing its screen to display a dynamic QR code associated with the currently playing content. Simultaneously, the backend server notifies the mobile app's mini-program, prompting the user to scan the QR code.

[0098] This application's solution continuously monitors the underlying physical and data link layer status of NFC communication—namely, the Received Signal Strength Indicator (RSSI) and data frame integrity—through the mobile device's NFC controller when the mobile device contacts the NFC tag of an outdoor media device. This raw data is collected by the operating system's NFC service layer and comprehensively analyzed within a predetermined time window to calculate a quantified interaction quality score. This score, combining the ratio of the current RSSI value to the maximum readable RSSI value and the data frame verification pass rate, comprehensively reflects the stability and reliability of NFC communication. When this interaction quality score reaches a preset "good signal" standard, the mobile device can successfully obtain the NFC tag's device number and send it to the backend server, thereby initiating the subsequent cross-screen interaction process. However, if the interaction quality score fails to reach the good standard, the system will intelligently provide the user with immediate and specific adjustment suggestions based on the specific score value and the main reason for the low score (insufficient signal strength or data frame errors). These suggestions include adjusting the mobile device's position, keeping it stationary, or changing its angle to guide the user in optimizing the NFC contact posture, thereby improving the communication success rate. This real-time, intelligent feedback mechanism effectively solves the instability problems that NFC communication may encounter in complex outdoor environments, and avoids situations where users repeatedly try or give up on interaction because they cannot determine the problem.

[0099] Furthermore, to address scenarios where NFC communication fails to establish itself in extreme cases, this solution also includes a backup interaction channel. When a mobile device detects that NFC tag reading attempts have failed more than a preset number, the system will activate a dynamic QR code on the outdoor media device screen and prompt the user to scan it, ensuring that the user can continue to participate in cross-screen interaction through another convenient method. This not only improves the robustness of the user experience but also greatly ensures the continuity and availability of the interaction process. Through the above mechanism, this solution builds a more robust and user-friendly NFC interaction entry point on the basis of the original NFC device identifier acquisition, significantly improving the success rate and user satisfaction of cross-screen interaction in outdoor media.

[0100] In one specific implementation, when a user brings an NFC-enabled mobile device close to the NFC tag of an outdoor media device, the NFC controller inside the mobile device continuously measures the strength of the received electromagnetic signal 10 times per second and performs a CRC check on each received data frame. The operating system's NFC service layer collects the RSSI value sequence and data frame check results for the most recent second (i.e., 10 sampling points). Assuming the maximum readable RSSI value is -30dBm, the current average RSSI value is -70dBm, and the data frame check pass rate is 80%, then the interaction quality score = ((-70) / (-30))*0.5 + 0.8*0.5 = 0.565. At this time, the mobile device's mini-program interface will display a dynamic circular progress bar, whose fill color gradually changes from red to yellow, accompanied by slight short vibrations, indicating to the user that the signal is average. If the score is below the preset good threshold (e.g., 0.8), the system will analyze and find that the low RSSI value is the main reason. Therefore, a prompt will pop up at the bottom of the mini-program interface: "Weak signal, please move your phone closer to the NFC tag and keep it still." If, after the user adjusts the position as prompted, the NFC controller continuously reads RSSI values ​​above -50dBm for 5 consecutive sampling points, and the data frame verification pass rate reaches over 95%, the system will determine that the signal is good, and the interaction quality score will significantly improve. The mini-program interface will display a full green progress bar accompanied by a clear short vibration, indicating that the next operation can be performed. However, if the user attempts 5 NFC read operations and the interaction quality score still fails to reach the standard for initiating interaction, the system will automatically trigger the dynamic QR code on the outdoor media device screen. At the same time, the mini-program interface on the mobile device will display the prompt "NFC connection failed, please scan the QR code on the screen to interact," guiding the user to continue interacting via the QR code.

[0101] Through the above technical solution, this application effectively addresses the issues of poor user experience and interaction failures caused by unstable NFC communication in cross-screen interaction of outdoor media. By conducting real-time, refined NFC communication quality assessment, users can clearly understand the current NFC connection status and receive intelligent operation guidance, significantly improving the success rate and efficiency of NFC device number acquisition. Even in extreme cases where NFC communication cannot be established, the system can promptly provide a backup interaction channel, ensuring users can smoothly participate in the interaction. This greatly enhances the smoothness, convenience, and reliability of the user experience, lowers the user's operational threshold, and strengthens the interactive appeal of outdoor media.

[0102] Of course, in other embodiments of the present invention, regarding alternatives to NFC, short-range communication technologies such as Bluetooth Beacon, ultrasonic signals, or infrared transmission can be used to replace NFC for device identification transmission.

[0103] Regarding variations in the query mechanism: Distributed caching clusters (such as Memcached) or NoSQL databases (such as MongoDB) can be used instead of Redis for storing and querying media status.

[0104] Regarding alternative synchronization technologies: Server-SentEvents (SSE), polling mechanisms, or message queues (such as RabbitMQ and Kafka) can be used to replace WebSocket for state synchronization.

[0105] Regarding the identification and encoding scheme: Device numbers can be identified using different encoding methods such as UUID, hash value, encrypted string or QR code.

[0106] Exemplary device like Figure 2 As shown, this embodiment of the invention provides an outdoor media cross-screen interactive system based on NFC device identification, the system comprising: NFC preset module 310 is used to pre-set an NFC tag containing a unique device number on an outdoor media device; The device number acquisition module 320 is used to acquire the device number of the contacted NFC tag when an NFC-enabled mobile device comes into contact with the NFC tag of the target outdoor media device, and send it to the backend server. The playback material query module 330 is used to control the backend server to query the current playback material information of the target outdoor media device based on the device number of the contacted NFC tag through a real-time material status query engine that combines Redis caching and database. Loading module 340 is used to load and display interactive content corresponding to the currently playing content of the target outdoor media device based on the queried material information of the target outdoor media device; The update synchronization module 350 is used to control the mobile device to establish a long connection with the target outdoor media device. When the target outdoor media device detects a change in the content being played, the backend server is controlled to actively push the updated content information to the mobile device that has established a long connection with the target outdoor media device, so as to achieve real-time synchronization, as described above.

[0107] This application addresses key issues in the interaction between outdoor media and mobile devices by combining an NFC preset module, a device ID acquisition module, a playback material query module, a loading module, and an update synchronization module in a collaborative manner. This solves problems such as low interaction efficiency, poor content relevance, weak device recognition capabilities, and lack of cross-screen interaction, achieving the core advantage of providing an efficient, accurate, stable, and real-time synchronized cross-screen interactive experience. Specifically, the NFC preset module ensures that each outdoor media device has a unique device identifier; the device ID acquisition module enables fast and accurate identification between users and devices; the playback material query module guarantees the real-time and accurate content query through a real-time material status query engine combining Redis caching and a database; the loading module provides interactive content highly relevant to the currently playing content; and the update synchronization module achieves real-time synchronization of content switching through a long-connection mechanism.

[0108] Through the above technical solution, when a user touches the NFC tag of an outdoor media device with an NFC-enabled mobile device, the mobile device can quickly obtain the device number and send it to the backend server. The backend server then queries the currently playing media information through a real-time media status query engine, and the mobile device loads the corresponding interactive content accordingly. Simultaneously, a persistent connection is established between the mobile device and the backend server. When the content played on the outdoor media device changes, the backend server proactively pushes updated information to ensure that the interactive content on the mobile device remains synchronized with the outdoor media device in real time. This design not only simplifies the user operation process and improves interaction efficiency but also ensures a high degree of content relevance, enhances the accuracy and stability of device identification, and ultimately achieves a true cross-screen interactive experience.

[0109] For example, when a user approaches an outdoor advertising screen and touches an NFC tag with their mobile device, the device automatically obtains its device ID and sends it to the backend server. After the backend server retrieves the currently playing content information from the advertising screen, the mobile device loads and displays interactive content related to that content. When the advertising screen switches to new content, the interactive content on the mobile device updates in real time, eliminating the need for user intervention and providing a smooth, seamless cross-screen interactive experience. Compared to traditional QR code scanning, this solution avoids the difficulty of recognition in poor lighting or at incorrect angles. Users do not need to open a camera app or perform complex pairing; a simple touch is sufficient for device identification and content acquisition. In multi-device environments, the unique device ID of each outdoor media device effectively avoids signal interference and device confusion, ensuring accurate identification. Through a query mechanism combining Redis caching and a database, the system can return the currently playing content information within milliseconds, significantly improving the accuracy of content association. The introduction of a long-connection mechanism completely solves the problem of missing cross-screen linkage, enabling mobile content to remain synchronized with the playback status of outdoor media devices in real time, creating a coherent and immersive interactive process for users.

[0110] Another embodiment of this application provides a real-time material status query method, including the steps of: establishing a dynamic mapping relationship between device number and playback material, and adopting a two-layer query mechanism of Redis caching combined with database storage to achieve millisecond-level material status response, ensuring the real-time performance and accuracy of cross-screen content, as described above.

[0111] Another embodiment of this application provides an outdoor media cross-screen interactive system, including: NFC tag management module: responsible for writing and reading device IDs and monitoring tag status; Material Status Management Module: Maintains the real-time mapping relationship between device IDs and playback content; Cross-screen content synchronization module: Enables content synchronization between mobile devices and outdoor media based on WebSocket; User interaction processing module: processes mobile user interactions and feeds them back to the outdoor media system; as described above.

[0112] Another embodiment of this application provides an asynchronous state update mechanism based on WebSocket, including: when the outdoor media playback content changes, actively pushing update information to the established mobile device through a long connection to achieve automatic synchronous update of cross-screen content.

[0113] Based on the above embodiments, the present invention also provides a smart terminal, the principle block diagram of which can be as follows: Figure 3As shown. The smart terminal includes a processor, memory, network interface, display screen, and database connected via a system bus. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The network interface is used to communicate with external terminals via a network connection. When the computer program is executed by the processor, it implements an outdoor media cross-screen interaction method based on NFC device identifiers. The database of the smart terminal stores outdoor media cross-screen interaction programs based on NFC device identifiers.

[0114] Those skilled in the art will understand that Figure 3 The block diagram shown is merely a partial structural diagram related to the present invention and does not constitute a limitation on the smart terminal to which the present invention is applied. A specific smart terminal may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0115] In one embodiment, a smart terminal is provided, including a memory and one or more programs, wherein one or more programs are stored in the memory and configured to be executed by one or more processors, the one or more programs including methods for performing outdoor media cross-screen interaction based on NFC device identifiers as described above.

[0116] Specifically, the smart terminal's memory is configured to store the operating system, applications, and the instruction set required to execute the aforementioned methods. It can employ volatile memory (such as random access memory) or non-volatile memory (such as flash memory) to ensure reliable data storage. The processor, as the core computing unit, is configured to read and execute program instructions from the memory, thereby driving the smart terminal to complete cross-screen interactive functions. This one or more programs include an NFC communication module, a network communication module, a content rendering module, and a long-connection management module. The NFC communication module automatically obtains the device number when an NFC tag is detected; the network communication module sends the device number to the backend server and receives query results; the content rendering module loads and displays interactive content based on the retrieved playback material information; and the long-connection management module establishes a WebSocket long connection with the backend server to maintain real-time communication.

[0117] This embodiment combines memory, processor, and program in a specific architecture, enabling smart terminals to seamlessly execute the aforementioned cross-screen interaction method. This effectively solves key problems such as low interaction efficiency, poor content relevance, weak device recognition capabilities, and lack of cross-screen linkage. Specifically, due to the near-field sensing characteristics of NFC technology, users only need to bring their smart terminals close to the NFC tag of outdoor media devices to trigger device recognition, avoiding the cumbersome steps of QR code scanning and significantly improving interaction efficiency. Through the precise query mechanism of the real-time material status query engine, the smart terminal can obtain the material information currently being played by the target outdoor media device, ensuring a high degree of correlation between interactive content and real-time playback content. With the continuous communication channel established by the long connection management module, when the playback content of the outdoor media device changes, the backend server actively pushes updated information to the smart terminal, achieving real-time synchronization and forming a complete cross-screen interaction closed loop.

[0118] Taking a real-world application scenario as an example, when a user brings the smart terminal close to the NFC tag on an outdoor advertising screen, the NFC communication module automatically reads the device number and sends it to the backend server via the network communication module. After the server returns the currently playing content information through a real-time content status query engine combining Redis caching and a database, the content rendering module immediately loads the corresponding interactive content, such as product parameters or purchase links. Simultaneously, the long-connection management module maintains a WebSocket connection with the server. Once the advertising screen content switches to new content, the updated information is instantly pushed to the smart terminal, and the user interface dynamically refreshes the interactive content. This design not only overcomes the recognition difficulties caused by poor lighting but also avoids signal interference issues during Bluetooth pairing, ensuring accurate identification of the target outdoor media device in multi-device environments and providing users with a seamless and immersive cross-screen interactive experience. Through the above technical solution, the smart terminal, with its optimized hardware architecture and software logic, achieves efficient, accurate, and real-time interaction between outdoor media and mobile devices, significantly improving user engagement and interactive effects.

[0119] This application also discloses a computer-readable storage medium, which, when the instructions in the storage medium are executed by the processor of an electronic device, enables the electronic device to perform the above-described method.

[0120] In some embodiments of this application, the computer-readable storage medium is configured to store specific instruction sequences that, when executed, enable the electronic device to achieve cross-screen interactive functionality with outdoor media. Specifically, by executing the instructions in the storage medium, the electronic device can respond to a contact event with the NFC tag of the outdoor media device, obtain the device number and send it to the backend server; receive the currently playing material information returned by the backend server; load and display the corresponding interactive content; and establish a long-term connection with the target outdoor media device to achieve real-time synchronization of content switching.

[0121] This embodiment embeds the cross-screen interaction method based on NFC device identification into a computer-readable storage medium, enabling various electronic devices to easily deploy this technical solution. This effectively solves the technical problems mentioned in the background art, such as low interaction efficiency, poor content relevance, weak device recognition capabilities, and lack of cross-screen linkage. Compared to traditional solutions, this storage medium eliminates the need for complex user operations, achieving rapid device identification and accurate content association. Simultaneously, a long-connection mechanism ensures real-time cross-screen interaction. Since this solution directly utilizes the near-field communication characteristics of NFC technology, it avoids the cumbersome QR code scanning and Bluetooth / WiFi pairing issues, thus maintaining stable recognition capabilities even in multi-device environments. Through the above technical means, this application achieves the technical effects of improving the interaction efficiency between outdoor media and mobile devices, enhancing content relevance, strengthening device recognition capabilities, and realizing seamless cross-screen linkage, providing users with a smoother and more immersive interactive experience.

[0122] The above description is merely an embodiment of this application and is not intended to limit the scope of protection of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application.

Claims

1. A method for cross-screen interaction of outdoor media based on NFC device identification, characterized in that, include: Pre-install NFC tags containing unique device numbers on outdoor media devices; When an NFC-enabled mobile device comes into contact with the NFC tag of a target outdoor media device, the mobile device obtains the device number of the contacted NFC tag and sends it to the backend server. The backend server uses a real-time material status query engine that combines Redis caching and database to query the currently playing material information of the target outdoor media device based on the device number of the contacted NFC tag. Based on the information of the target outdoor media device currently playing the material, the mobile device loads and displays interactive content corresponding to the content currently playing on the target outdoor media device. The system controls the mobile device to establish a long connection with the target outdoor media device. When the target outdoor media device detects a change in the content being played, the system controls the backend server to actively push updated content information to the mobile device that has established a long connection with the target outdoor media device, thereby achieving real-time synchronization.

2. The method for cross-screen interaction of outdoor media based on NFC device identification according to claim 1, characterized in that, The step of the mobile device acquiring the device number of the contacted NFC tag and sending it to the backend server when the NFC-enabled mobile device comes into contact with the NFC tag of the target outdoor media device includes: When an NFC-enabled mobile device comes into contact with the NFC tag of a target outdoor media device, the mobile device automatically obtains the unique device number of the NFC tag of the outdoor media device and sends the obtained unique device number as a start parameter to the designated applet on the mobile terminal. The designated mini-program on the mobile terminal sends the device number to the backend server.

3. The method for cross-screen interaction of outdoor media based on NFC device identification according to claim 1, characterized in that, The step of pre-setting an NFC tag containing a unique device number on the outdoor media device includes: Each outdoor media device is pre-assigned a globally unique device number, and the globally unique device number is written into the NFC tag of the outdoor media device; A dynamic mapping relationship between the device number of each outdoor media device and the playback material is established in advance, and the playback material corresponding to the device number can be queried through the real-time material status query engine.

4. The method for cross-screen interaction of outdoor media based on NFC device identification according to claim 1, characterized in that, The steps for establishing a long connection between the control mobile device and the target outdoor media device include: Control the mobile device to establish a WebSocket long connection with the target outdoor media device.

5. The method for cross-screen interaction of outdoor media based on NFC device identification according to claim 1, characterized in that, The backend server uses a real-time media status query engine that combines Redis caching and a database. This engine employs a two-layer query mechanism of Redis caching and a database.

6. The method for cross-screen interaction of outdoor media based on NFC device identification according to claim 1, characterized in that, Before the step of the mobile device acquiring the device number of the contacted NFC tag and sending it to the backend server when the NFC-enabled mobile device comes into contact with the NFC tag of the target outdoor media device, the following steps are included: A real-time NFC communication quality assessment and feedback mechanism is pre-configured on the mobile device to continuously monitor the strength, stability, and data transmission progress of the NFC signal.

7. The method for cross-screen interaction of outdoor media based on NFC device identification according to claim 6, characterized in that, The step of the mobile device acquiring the device number of the contacted NFC tag and sending it to the backend server when the NFC-enabled mobile device comes into contact with the NFC tag of the target outdoor media device further includes: The control continuously reads the RSSI (Received Signal Strength Indicator) value and the integrity status of the data frame emitted by the contacted NFC tag through the NFC controller of the mobile device; The operating system's NFC service layer calculates an interaction quality score based on the received signal strength index (RSSI) sequence and data frame verification results collected within a predetermined time window. The interaction quality score is calculated as follows: (current RSSI value / maximum readable RSSI value) × 0.5 + (data frame verification pass rate) × 0.

5. When the RSSI values ​​of multiple consecutive sampling points are higher than the preset threshold and the data frame verification pass rate reaches a predetermined percentage or more, the signal is considered to be good. Based on the calculated NFC tag interaction quality score, the mini-program interface of the mobile device is controlled to provide the user with real-time NFC communication status through different dynamic progress bars or different vibration modes. When the calculated interaction quality score is lower than a preset threshold, the control intelligently provides operation suggestions such as adjusting the position of the mobile device, keeping it stationary, or adjusting the angle, based on the specific reasons for insufficient signal strength or data frame errors. If the NFC tag reading fails more than the preset number of attempts, the system will activate the dynamic QR code on the outdoor media device screen as a backup interaction channel and prompt the user to scan it.

8. An outdoor media cross-screen interactive system based on NFC device identification, characterized in that, The system includes: An NFC preset module is used to pre-set NFC tags containing unique device numbers on outdoor media devices; The device number acquisition module is used to acquire the device number of the contacted NFC tag when an NFC-enabled mobile device comes into contact with the NFC tag of the target outdoor media device, and send it to the backend server. The playback material query module is used to control the backend server to query the current playback material information of the target outdoor media device based on the device number of the contacted NFC tag through a real-time material status query engine that combines Redis caching and database. The loading module is used to load and display interactive content corresponding to the currently playing content of the target outdoor media device based on the queried material information of the target outdoor media device. The update synchronization module is used to control the mobile device to establish a long connection with the target outdoor media device. When the content being played on the target outdoor media device is switched, the backend server is controlled to actively push the updated content information to the mobile device that has established a long connection with the target outdoor media device, so as to achieve real-time synchronization.

9. A smart terminal, characterized in that, It includes a memory and one or more programs, wherein one or more programs are stored in the memory and configured to be executed by one or more processors, wherein the one or more programs include methods for performing any one of claims 1-7.

10. A computer-readable storage medium, characterized in that, When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is able to perform the method as described in any one of claims 1-7.