[go: up one dir, main page]

CN103546203B - Method and device for providing and acquiring near field communication tag script - Google Patents

Method and device for providing and acquiring near field communication tag script Download PDF

Info

Publication number
CN103546203B
CN103546203B CN201310462954.XA CN201310462954A CN103546203B CN 103546203 B CN103546203 B CN 103546203B CN 201310462954 A CN201310462954 A CN 201310462954A CN 103546203 B CN103546203 B CN 103546203B
Authority
CN
China
Prior art keywords
script
field communication
near field
nfc tag
mobile terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310462954.XA
Other languages
Chinese (zh)
Other versions
CN103546203A (en
Inventor
康上明学
林俊琦
续丽娜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201310462954.XA priority Critical patent/CN103546203B/en
Publication of CN103546203A publication Critical patent/CN103546203A/en
Application granted granted Critical
Publication of CN103546203B publication Critical patent/CN103546203B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephonic Communication Services (AREA)
  • Information Transfer Between Computers (AREA)
  • Telephone Function (AREA)

Abstract

The present disclosure relates to the field of wireless communication technology application, and in particular, to a method and an apparatus for providing and acquiring an NFC tag script, a mobile terminal, and a server. The providing method comprises the following steps: acquiring an NFC label script; and issuing the NFC label script for downloading and using by a user. The acquisition method comprises the following steps: sending a script downloading request, wherein the script downloading request is used for requesting a first near field communication tag script; downloading the first near field communication tag script. According to the method and the device, the NFC label script is obtained and issued, so that a user can download the NFC label script as required, and the use potential of the NFC label can be fully mined.

Description

近场通信标签脚本的提供与获取方法、装置Method and device for providing and acquiring tag script of near field communication

技术领域technical field

本公开涉及无线通信技术应用领域,特别涉及一种近场通信标签脚本的提供与获取方法、装置。The present disclosure relates to the application field of wireless communication technology, in particular to a method and device for providing and acquiring tag scripts of near field communication.

背景技术Background technique

近场通信(NearFieldCommunication,NFC)是一种短距离的高频无线通信技术,允许电子设备之间进行非接触式的点对点的数据传输。该技术不仅可以在两个具备NFC识别能力的设备之间进行,还能在NFC设备与非动力型NFC标签(也称之为NFC贴纸或NFC芯片)之间进行。具备NFC标签识别能力的设备可以通过读取NFC标签中的程序自动执行任务。例如,NFC标签中预先设定有指示手机切换到静音模式的程序,则当手机触碰到该NFC标签时,就会执行其中的程序,切换为静音模式。Near Field Communication (NFC) is a short-range high-frequency wireless communication technology that allows non-contact point-to-point data transmission between electronic devices. This technology can be carried out not only between two devices with NFC recognition capability, but also between NFC devices and non-powered NFC tags (also known as NFC stickers or NFC chips). Devices with NFC tag recognition capabilities can automatically perform tasks by reading the program in the NFC tag. For example, the NFC tag is preset with a program instructing the mobile phone to switch to the silent mode, then when the mobile phone touches the NFC tag, the program will be executed to switch to the silent mode.

目前,一些移动终端在出厂时会自带少量可以写入NFC标签中的程序,用户可以在这些程序中选择一个或多个写入NFC标签中,NFC标签的用途非常有限。At present, some mobile terminals have a small number of programs that can be written into the NFC tag when they leave the factory. Users can choose one or more of these programs to write into the NFC tag. The use of the NFC tag is very limited.

发明内容Contents of the invention

为了解决上述技术的问题,本公开提供了一种近场通信标签脚本的提供与获取方法、装置。所述技术方案如下:In order to solve the problems of the above technologies, the present disclosure provides a method and an apparatus for providing and acquiring NFC tag scripts. Described technical scheme is as follows:

一方面,本公开提供了一种近场通信标签脚本的提供方法,所述方法包括:In one aspect, the present disclosure provides a method for providing a near field communication tag script, the method comprising:

获取近场通信标签脚本,所述近场通信标签脚本包括一个或多个用于写入近场通信标签中的命令;Obtaining a near field communication tag script, the near field communication tag script including one or more commands for writing into the near field communication tag;

发布所述近场通信标签脚本,用户根据需要选择性的下载适合自己的所述近场通信标签脚本,将下载的所述近场通信标签脚本写入所述近场通信标签中,支持近场通信功能的终端设备通过读取并执行所述近场通信标签中的所述命令完成各种操作。Publish the near field communication tag script, the user selectively downloads the near field communication tag script suitable for himself according to the needs, writes the downloaded near field communication tag script into the near field communication tag, supports near field communication The terminal device with the communication function completes various operations by reading and executing the commands in the near field communication tag.

可选地,所述方法还包括:Optionally, the method also includes:

接收移动终端发送的脚本下载请求,所述脚本下载请求用于请求第一近场通信标签脚本;Receive a script download request sent by the mobile terminal, and the script download request is used to request the first NFC tag script;

向所述移动终端发送所述第一近场通信标签脚本。sending the first NFC tag script to the mobile terminal.

进一步地,所述第一近场通信标签脚本还包括执行所述第一近场通信标签脚本中的命令所需的终端配置条件。Further, the first NFC tag script further includes terminal configuration conditions required for executing commands in the first NFC tag script.

可选地,所述方法还包括:Optionally, the method also includes:

获取所述移动终端的配置信息;Obtain configuration information of the mobile terminal;

判断所述移动终端的配置信息是否满足所述第一近场通信标签脚本中的所述终端配置条件;judging whether the configuration information of the mobile terminal satisfies the terminal configuration condition in the first NFC tag script;

当所述移动终端的配置信息不满足所述第一近场通信标签脚本中的所述终端配置条件时,提示用户所述第一近场通信标签脚本不适用于所述移动终端。When the configuration information of the mobile terminal does not satisfy the terminal configuration condition in the first near field communication tag script, prompting the user that the first near field communication tag script is not applicable to the mobile terminal.

可选地,所述方法还包括:Optionally, the method also includes:

获取移动终端的配置信息;Obtain configuration information of the mobile terminal;

屏蔽所述移动终端的配置信息不满足的终端配置条件所属的近场通信标签。Shielding the near field communication tag to which the configuration information of the mobile terminal does not satisfy the terminal configuration condition.

可选地,所述获取近场通信标签脚本,采用如下方式:Optionally, the acquisition of the near field communication tag script adopts the following method:

接收用户上传的所述近场通信标签脚本。The near field communication tag script uploaded by the user is received.

可选地,所述方法还包括:Optionally, the method also includes:

对获取到的所述近场通信标签脚本进行预处理,所述预处理包括安全检测、去重处理和分类索引中的一种或多种。Perform preprocessing on the acquired near field communication tag script, and the preprocessing includes one or more of security detection, deduplication processing, and classification indexing.

可选地,所述方法还包括:Optionally, the method also includes:

接收讨论信息的发表请求;Receive requests for publication of discussion information;

发布所述讨论信息。Post said discussion information.

另一方面,本公开提供了一种近场通信标签脚本的获取方法,所述方法包括:In another aspect, the present disclosure provides a method for acquiring a near field communication tag script, the method comprising:

发送脚本下载请求,所述脚本下载请求用于请求第一近场通信标签脚本,所述第一近场通信标签脚本包括一个或多个用于写入近场通信标签的命令;Sending a script download request, the script download request is used to request a first near field communication tag script, and the first near field communication tag script includes one or more commands for writing into the near field communication tag;

下载所述第一近场通信标签脚本;downloading the first NFC tag script;

将下载的所述第一近场通信标签脚本包括的所述命令写入所述近场通信标签中,支持近场通信功能的终端设备通过读取并执行所述近场通信标签中的所述命令完成各种操作。Write the command included in the downloaded first near field communication tag script into the near field communication tag, and the terminal device supporting the near field communication function reads and executes the command in the near field communication tag commands to perform various operations.

进一步地,所述近场通信标签脚本还包括执行所述第一近场通信标签脚本中的命令所需的终端配置条件。Further, the near field communication tag script further includes terminal configuration conditions required for executing the commands in the first near field communication tag script.

可选地,所述方法还包括:Optionally, the method also includes:

检测移动终端的配置信息是否符合所述第一近场通信标签脚本中的所述终端配置条件;Detecting whether the configuration information of the mobile terminal complies with the terminal configuration condition in the first NFC tag script;

当所述移动终端的配置信息不符合所述第一近场通信标签脚本中的所述终端配置条件时,提示用户所述第一近场通信标签脚本不适用于所述移动终端。When the configuration information of the mobile terminal does not meet the terminal configuration condition in the first near field communication tag script, prompting the user that the first near field communication tag script is not applicable to the mobile terminal.

进一步地,所述提示用户所述第一近场通信标签脚本不适用于所述移动终端,采用如下方式:Further, the prompting the user that the first near-field communication tag script is not applicable to the mobile terminal adopts the following method:

输出是否更新或下载指定应用程序的操作选项,所述指定应用程序为所述第一近场通信标签脚本中的命令需要调用的应用程序。An operation option of whether to update or download a specified application program is output, and the specified application program is an application program that needs to be invoked by a command in the first NFC tag script.

可选地,所述方法还包括:Optionally, the method also includes:

接收用户的更新命令或下载命令;Receive the user's update command or download command;

根据所述指定应用程序的包名,更新或下载所述指定应用程序。The specified application is updated or downloaded according to the package name of the specified application.

可选地,所述方法还包括:Optionally, the method also includes:

向服务器上传近场通信标签脚本,以使所述服务器发布上传的所述近场通信标签脚本。uploading the near field communication tag script to the server, so that the server publishes the uploaded near field communication tag script.

可选地,所述方法还包括:Optionally, the method also includes:

将所述移动终端的配置信息发送给服务器。Send the configuration information of the mobile terminal to the server.

可选地,所述方法还包括:Optionally, the method also includes:

接收用户输入的讨论信息;Receive discussion information input by users;

将所述讨论信息发送给服务器,以使所述服务器发布所述讨论信息。Send the discussion information to a server, so that the server publishes the discussion information.

一方面,本公开提供了一种近场通信标签脚本的提供装置,所述装置包括:In one aspect, the present disclosure provides an apparatus for providing a near field communication tag script, the apparatus comprising:

获取模块,用于获取近场通信标签脚本,所述近场通信标签脚本包括一个或多个用于写入近场通信标签中的命令;An acquisition module, configured to acquire a near field communication tag script, the near field communication tag script including one or more commands for writing into the near field communication tag;

发布模块,用于发布所述近场通信标签脚本,用户根据需要选择性的下载适合自己的所述近场通信标签脚本,将下载的所述近场通信标签脚本写入所述近场通信标签中,支持近场通信功能的终端设备通过读取并执行所述近场通信标签中的所述命令完成各种操作。A publishing module, configured to publish the near field communication tag script, the user selectively downloads the near field communication tag script suitable for himself according to needs, and writes the downloaded near field communication tag script into the near field communication tag In, the terminal device supporting the near field communication function completes various operations by reading and executing the commands in the near field communication tag.

可选地,所述装置还包括:Optionally, the device also includes:

接收模块,用于接收移动终端发送的脚本下载请求,所述脚本下载请求用于请求第一近场通信标签脚本;The receiving module is configured to receive a script download request sent by the mobile terminal, and the script download request is used to request the first NFC tag script;

发送模块,用于向所述移动终端发送所述第一近场通信标签脚本。A sending module, configured to send the first NFC tag script to the mobile terminal.

进一步地,所述第一近场通信标签脚本还包括执行所述第一近场通信标签脚本中的命令所需的终端配置条件。Further, the first NFC tag script further includes terminal configuration conditions required for executing commands in the first NFC tag script.

可选地,所述装置还包括:Optionally, the device also includes:

信息获取模块,用于获取所述移动终端的配置信息;An information acquisition module, configured to acquire configuration information of the mobile terminal;

判断模块,用于判断所述移动终端的配置信息是否满足所述第一近场通信标签脚本中的所述终端配置条件;A judging module, configured to judge whether the configuration information of the mobile terminal satisfies the terminal configuration condition in the first NFC tag script;

提示模块,用于当所述移动终端的配置信息不满足所述第一近场通信标签脚本中的所述终端配置条件时,提示用户所述第一近场通信标签脚本不适用于所述移动终端。A prompt module, configured to prompt the user that the first near-field communication tag script is not applicable to the mobile terminal when the configuration information of the mobile terminal does not meet the terminal configuration conditions in the first near-field communication tag script. terminal.

可选地,所述装置还包括:Optionally, the device also includes:

信息获取模块,用于获取移动终端的配置信息;An information acquisition module, configured to acquire configuration information of the mobile terminal;

屏蔽模块,用于屏蔽所述移动终端的配置信息不满足的终端配置条件所属的近场通信标签。The shielding module is configured to shield the near field communication tags to which the configuration information of the mobile terminal does not meet the terminal configuration conditions.

进一步地,所述获取模块用于接收用户上传的所述近场通信标签脚本。Further, the obtaining module is used for receiving the near field communication tag script uploaded by the user.

可选地,所述装置还包括:Optionally, the device also includes:

预处理模块,用于对获取到的所述近场通信标签脚本进行预处理,所述预处理包括安全检测、去重处理和分类索引中的一种或多种。A preprocessing module, configured to preprocess the acquired NFC tag script, the preprocessing includes one or more of security detection, deduplication processing, and classification indexing.

可选地,所述获取模块还用于接收讨论信息的发表请求;Optionally, the acquisition module is also configured to receive a publication request for discussion information;

可选地,所述发布模块还用于发布所述讨论信息。Optionally, the publishing module is also used to publish the discussion information.

另一方面,本公开提供了一种近场通信标签脚本的获取装置,所述装置包括:In another aspect, the present disclosure provides a device for acquiring a near field communication tag script, the device comprising:

请求发送模块,用于发送脚本下载请求,所述脚本下载请求用于请求第一近场通信标签脚本,所述第一近场通信标签脚本包括一个或多个用于写入近场通信标签的命令;The request sending module is used to send a script download request, and the script download request is used to request a first near field communication tag script, and the first near field communication tag script includes one or more scripts for writing into the near field communication tag Order;

下载模块,用于下载所述第一近场通信标签脚本;将下载的所述第一近场通信标签脚本包括的所述命令写入所述近场通信标签中,支持近场通信功能的终端设备通过读取并执行所述近场通信标签中的所述命令完成各种操作。A download module, configured to download the first near-field communication tag script; write the command included in the downloaded first near-field communication tag script into the near-field communication tag, and support a terminal with a near-field communication function The device completes various operations by reading and executing the commands in the near field communication tag.

进一步地,所述近场通信标签脚本还包括执行所述第一近场通信标签脚本中的命令所需的终端配置条件。Further, the near field communication tag script further includes terminal configuration conditions required for executing the commands in the first near field communication tag script.

可选地,所述装置还包括:Optionally, the device also includes:

检测模块,用于检测移动终端的配置信息是否符合所述第一近场通信标签脚本中的所述终端配置条件;A detection module, configured to detect whether the configuration information of the mobile terminal complies with the terminal configuration conditions in the first near-field communication tag script;

提示模块,用于当所述移动终端的配置信息不符合所述第一近场通信标签脚本中的所述终端配置条件时,提示用户所述第一近场通信标签脚本不适用于所述移动终端。A prompt module, configured to prompt the user that the first near field communication tag script is not applicable to the mobile terminal when the configuration information of the mobile terminal does not meet the terminal configuration conditions in the first near field communication tag script terminal.

进一步地,所述提示模块用于输出是否更新或下载指定应用程序的操作选项,所述指定应用程序为所述第一近场通信标签脚本中的命令需要调用的应用程序。Further, the prompt module is configured to output an operation option of whether to update or download a specified application program, and the specified application program is an application program that needs to be invoked by a command in the first NFC tag script.

可选地,所述装置还包括:Optionally, the device also includes:

命令接收模块,用于接收用户的更新命令或下载命令;The command receiving module is used to receive the user's update command or download command;

执行模块,用于根据所述指定应用程序的包名,更新或下载所述指定应用程序。An execution module, configured to update or download the specified application program according to the package name of the specified application program.

可选地,所述装置还包括:Optionally, the device also includes:

脚本上传模块,用于向服务器上传近场通信标签脚本,以使所述服务器发布上传的所述近场通信标签脚本。The script uploading module is used for uploading the NFC tag script to the server, so that the server publishes the uploaded NFC tag script.

可选地,所述装置还包括:Optionally, the device also includes:

配置信息发送模块,用于将所述移动终端的配置信息发送给服务器。The configuration information sending module is configured to send the configuration information of the mobile terminal to the server.

可选地,所述装置还包括:Optionally, the device also includes:

接收模块,用于接收用户输入的讨论信息;A receiving module, configured to receive discussion information input by users;

讨论信息发送模块,用于将所述讨论信息发送给服务器,以使所述服务器发布所述讨论信息。A discussion information sending module, configured to send the discussion information to a server, so that the server publishes the discussion information.

本公开的一些有益效果可以包括:Some benefits of the present disclosure may include:

通过获取NFC标签脚本并将其发布,使得用户可以根据需要下载NFC标签脚本,进而可以充分挖掘NFC标签的使用潜力。By obtaining the NFC tag script and publishing it, users can download the NFC tag script as required, and then fully tap the potential of using the NFC tag.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性的,并不能限制本公开。It is to be understood that both the foregoing general description and the following detailed description are exemplary only and are not restrictive of the present disclosure.

附图说明Description of drawings

此处所说明的附图用来提供对本公开的进一步理解,构成本申请的一部分,并不构成对本公开的限定。在附图中:The drawings described here are used to provide further understanding of the present disclosure, constitute a part of the present application, and do not limit the present disclosure. In the attached picture:

图1是本公开实施例提供的一种NFC标签脚本的提供方法的示例性流程图;Fig. 1 is an exemplary flowchart of a method for providing a NFC tag script provided by an embodiment of the present disclosure;

图2是本公开实施例提供的另一NFC标签脚本的提供方法的示例性流程图;Fig. 2 is an exemplary flow chart of another NFC tag script providing method provided by an embodiment of the present disclosure;

图2a是图2所示实施例的步骤202的示例性流程图;Figure 2a is an exemplary flow chart of step 202 of the embodiment shown in Figure 2;

图3是本公开实施例提供的又一NFC标签脚本的提供方法的示例性流程图;Fig. 3 is an exemplary flow chart of another NFC tag script providing method provided by an embodiment of the present disclosure;

图4是本公开实施例提供的一种NFC标签脚本的获取方法的示例性流程图;Fig. 4 is the exemplary flowchart of the acquisition method of a kind of NFC tag script provided by the embodiment of the present disclosure;

图5是本公开实施例提供的另一NFC标签脚本的获取方法的示例性流程图;Fig. 5 is an exemplary flow chart of another NFC tag script acquisition method provided by an embodiment of the present disclosure;

图5a是图5所示实施例中从NFC标签脚本商店获取NFC标签脚本的详细过程示意图;Fig. 5 a is the detailed process sketch map that obtains NFC tag script from NFC tag script store in the embodiment shown in Fig. 5;

图5b是图5所示实施例的步骤505的示例性流程图;Fig. 5b is an exemplary flowchart of step 505 of the embodiment shown in Fig. 5;

图5c是本公开实施例的一个应用场景图;Fig. 5c is an application scenario diagram of an embodiment of the present disclosure;

图6是本公开实施例提供的又一种NFC标签脚本的获取方法的示例性流程图;FIG. 6 is an exemplary flow chart of another method for acquiring an NFC tag script provided by an embodiment of the present disclosure;

图7是本公开实施例提供的一种NFC标签脚本的提供装置的结构示意图;FIG. 7 is a schematic structural diagram of an apparatus for providing an NFC tag script provided by an embodiment of the present disclosure;

图8是本公开实施例提供的另一NFC标签脚本的提供装置的结构示意图;8 is a schematic structural diagram of another NFC tag script providing device provided by an embodiment of the present disclosure;

图9是本公开实施例提供的一种NFC标签脚本的获取装置的结构示意图;9 is a schematic structural diagram of an acquisition device for an NFC tag script provided by an embodiment of the present disclosure;

图10是本公开实施例提供的另一NFC标签脚本的获取装置的结构示意图;FIG. 10 is a schematic structural diagram of another NFC tag acquisition device provided by an embodiment of the present disclosure;

图11是本公开实施例提供的移动终端的硬件结构图;FIG. 11 is a hardware structural diagram of a mobile terminal provided by an embodiment of the present disclosure;

图12是本公开实施例提供的服务器的结构示意图。Fig. 12 is a schematic structural diagram of a server provided by an embodiment of the present disclosure.

通过上述附图,已示出本公开明确的实施例,后文中将有更详细的描述。这些附图和文字描述并不是为了通过任何方式限制本公开构思的范围,而是通过参考特定实施例为本领域技术人员说明本公开的概念。By means of the above-mentioned drawings, certain embodiments of the present disclosure have been shown and will be described in more detail hereinafter. These drawings and written description are not intended to limit the scope of the disclosed concept in any way, but to illustrate the disclosed concept for those skilled in the art by referring to specific embodiments.

具体实施方式Detailed ways

为使本公开的目的、技术方案和优点更加清楚明白,下面结合实施方式和附图,对本公开做进一步详细说明。在此,本公开的示意性实施方式及其说明用于解释本公开,但并不作为对本公开的限定。In order to make the purpose, technical solutions and advantages of the present disclosure clearer, the present disclosure will be described in further detail below in conjunction with the implementation manners and accompanying drawings. Here, the exemplary embodiments of the present disclosure and their descriptions are used to explain the present disclosure, but not to limit the present disclosure.

本公开实施例提供一种近场通信标签脚本的提供与获取方法、装置、移动终端和服务器,以下结合附图对本公开进行详细说明。Embodiments of the present disclosure provide a method, device, mobile terminal, and server for providing and acquiring near-field communication tag scripts, and the present disclosure will be described in detail below with reference to the accompanying drawings.

图1显示了本公开的一个实施例提供的一种NFC标签脚本的提供方法,该方法可以由服务器执行。如图1所示,该方法包括:Fig. 1 shows a method for providing an NFC tag script provided by an embodiment of the present disclosure, and the method can be executed by a server. As shown in Figure 1, the method includes:

在步骤101中,获取NFC标签脚本。In step 101, the NFC tag script is obtained.

一个NFC标签脚本可以包括一个或多个用于写入NFC标签的命令,该命令用于控制写入NFC标签中,支持NFC功能的终端设备通过读取并执行NFC标签中的命令,可以完成各种操作,例如,进入静音模式、设定闹钟、拨打某个电话、启动特定应用程序、关注社交网络上的用户等等。An NFC tag script can include one or more commands for writing to an NFC tag. The command is used to control writing to an NFC tag. A terminal device supporting the NFC function can complete various tasks by reading and executing the commands in the NFC tag. actions such as entering silent mode, setting an alarm, making a certain call, launching a specific application, following a user on a social network, and so on.

通过使NFC标签脚本中包括多个用于写入NFC标签的命令,可以使将各种操作进行合理的组合,例如,进入静音模式和将亮度调节为最低,可以作为睡觉前使用的组合。By including multiple commands for writing NFC tags in the NFC tag script, various operations can be reasonably combined, for example, entering the silent mode and adjusting the brightness to the lowest level can be used as a combination before going to bed.

在步骤102中,发布NFC标签脚本,以供用户下载使用。In step 102, the NFC tag script is issued for users to download and use.

实现时,可以在例如NFC标签脚本商店中发布该NFC标签脚本。When implemented, the NFC tag script can be published in, for example, an NFC tag script store.

本公开通过获取NFC标签脚本并将其发布,使得用户可以根据需要下载NFC标签脚本,进而可以充分挖掘NFC标签的使用潜力。The present disclosure enables users to download NFC tag scripts as required by acquiring and publishing the NFC tag scripts, thereby fully exploiting the use potential of NFC tags.

图2显示了本公开的另一实施例提供的一种NFC标签脚本的提供方法,该方法可以由服务器执行。如图2所示,该方法包括:Fig. 2 shows a method for providing an NFC tag script provided by another embodiment of the present disclosure, and the method may be executed by a server. As shown in Figure 2, the method includes:

在步骤201中,获取NFC标签脚本。In step 201, the NFC tag script is obtained.

一个NFC标签脚本可以包括一个或多个用于写入NFC标签的命令,该命令用于控制写入NFC标签中,支持NFC功能的终端设备通过读取并执行NFC标签中的命令,可以完成各种操作,例如,进入静音模式、设定闹钟、拨打某个电话、启动特定应用程序、关注社交网络上的用户等等。An NFC tag script can include one or more commands for writing to an NFC tag. The command is used to control writing to an NFC tag. A terminal device supporting the NFC function can complete various tasks by reading and executing the commands in the NFC tag. actions such as entering silent mode, setting an alarm, making a certain call, launching a specific application, following a user on a social network, and so on.

通过使NFC标签脚本中包括多个用于写入NFC标签的命令,可以使将各种操作进行合理的组合,例如,进入静音模式和将亮度调节为最低,可以作为睡觉前使用的组合。By including multiple commands for writing NFC tags in the NFC tag script, various operations can be reasonably combined, for example, entering the silent mode and adjusting the brightness to the lowest level can be used as a combination before going to bed.

可选地,NFC标签脚本中还可以包括执行该NFC标签脚本中的命令所需的终端配置条件。该终端配置条件可以是硬件配置条件,例如,具备蓝牙、具备摄像头等等;该终端配置条件也可以是软件配置条件,例如,安装有邮件应用程序、或者安装有微博应用软件且微博应用软件的版本信息为2.0以上等等。Optionally, the NFC tag script may also include terminal configuration conditions required for executing the commands in the NFC tag script. The terminal configuration condition may be a hardware configuration condition, for example, having bluetooth, having a camera, etc.; The version information of the software is above 2.0 and so on.

在一种可能的实现方式中,该步骤201可以采用如下方式:In a possible implementation manner, this step 201 may adopt the following manner:

接收服务提供商开发的NFC标签脚本。服务提供商可以直接将其开发的NFC标签脚本配置在服务器上。Receive the NFC tag script developed by the service provider. The service provider can directly configure the NFC tag script it develops on the server.

在另一种可能的实现方式中,该步骤201可以采用如下方式:接收用户上传的NFC标签脚本。其中,用户上传的NFC标签脚本可以是将下载的服务商提供的各NFC标签脚本进行重新组合得到,也可以是由用户自行编写的NFC标签脚本。通过接收用户上传的NFC标签脚本,可以挖掘用户的潜力,共享各个用户的创意,充分扩展NFC标签的应用范围。In another possible implementation manner, this step 201 may adopt the following manner: receiving the NFC tag script uploaded by the user. Wherein, the NFC tag script uploaded by the user may be obtained by recombining the downloaded NFC tag scripts provided by the service provider, or may be an NFC tag script written by the user himself. By receiving the NFC tag script uploaded by the user, the potential of the user can be tapped, the creativity of each user can be shared, and the application range of the NFC tag can be fully expanded.

在步骤202中,对获取到的NFC标签脚本进行预处理。In step 202, the acquired NFC tag script is preprocessed.

预处理包括但不限于安全检测、去重处理和分类索引。Preprocessing includes but is not limited to security detection, deduplication processing, and classification indexing.

在本实施例的一种实现方式中,该步骤202可以采用如下方式:In an implementation manner of this embodiment, this step 202 may adopt the following manner:

在步骤2021中,判断当前获取到的NFC标签脚本是否与服务器上已保存的NFC标签脚本重复。当当前获取到的NFC标签脚本与服务器上已保存的NFC标签脚本不重复(即服务器上已保存的NFC标签脚本中不存在与当前获取到的脚本相同的NFC标签脚本)时,执行步骤2022,否则,执行步骤2024。In step 2021, it is judged whether the currently obtained NFC tag script is the same as the NFC tag script saved on the server. When the NFC tag script currently obtained is not repeated with the saved NFC tag script on the server (that is, there is no NFC tag script identical to the currently obtained script in the saved NFC tag script on the server), execute step 2022, Otherwise, execute step 2024 .

该步骤2021可以采用如下方式:This step 2021 can be done in the following ways:

将当前获取到的NFC标签脚本中涉及的应用包名和硬件接口与服务器中已保存的NFC标签脚本中的包名和硬件接口进行比对,当两者中包名和硬件接口完全一样时,删除当前获取到的NFC标签脚本。Compare the application package name and hardware interface involved in the currently acquired NFC tag script with the package name and hardware interface in the NFC tag script saved in the server. When the package name and hardware interface in the two are exactly the same, delete the currently acquired to the NFC tag script.

在步骤2022中,检测当前上传的NFC标签脚本是否安全,当用户上传的NFC标签脚本安全时,执行步骤2023,否则,执行步骤2024。In step 2022, it is detected whether the currently uploaded NFC tag script is safe, and when the NFC tag script uploaded by the user is safe, step 2023 is executed; otherwise, step 2024 is executed.

对NFC标签脚本进行安全检测主要是检查脚本内容是否有损害用户系统安全的代码,可以采用脚本病毒特征扫描、自动化或人工真机测试来实现。当检测结果为安全时,才有可能将获取到的NFC标签脚本发布在商店中。The security detection of the NFC tag script is mainly to check whether the script content has codes that damage the security of the user system, which can be realized by script virus feature scanning, automatic or manual real machine testing. When the detection result is safe, it is possible to publish the obtained NFC tag script in the store.

在步骤2023中,对当前上传的NFC标签脚本进行分类索引。In step 2023, classify and index the currently uploaded NFC tag scripts.

对当前上传的NFC标签脚本进行分析得到关键词,然后依据关键词进行分类(例如音乐、日历和浏览器等)建立索引,以便用户快速找到所需的NFC标签脚本。Analyze the currently uploaded NFC tag script to get keywords, and then classify according to keywords (such as music, calendar, browser, etc.) to build an index so that users can quickly find the required NFC tag script.

需要说明的是,对NFC标签脚本进行分类索引,可以由服务器按照一定的规则自动执行,例如根据命令中的包名packagename来分类,然后将涉及到同一个包名的命令与同一类别相关联,建立索引数据库,也可以由人工进行分类,然后服务器再为分类后的NFC脚本建立索引数据库。It should be noted that the classification and indexing of NFC tag scripts can be automatically executed by the server according to certain rules, for example, according to the package name packagename in the command to classify, and then associate the commands related to the same package name with the same category, The index database is established, and classification can also be performed manually, and then the server establishes an index database for the classified NFC scripts.

在执行步骤2024中,删除该脚本。In execution step 2024, the script is deleted.

需要说明的是,上述步骤201的实现过程仅为举例,本公开并不以此为限,在其他实现方式中,也可以先执行步骤2012,再执行步骤2011。此外,在上述步骤201的实现过程中,对获取到的所有NFC标签脚本均进行了安全检测和去重处理,当然也可以仅对用户上传的NFC标签脚本进行安全检测和去重处理。It should be noted that the above implementation process of step 201 is only an example, and the present disclosure is not limited thereto. In other implementation manners, step 2012 may be performed first, and then step 2011 may be performed. In addition, in the implementation process of the above step 201, security detection and deduplication processing are performed on all acquired NFC tag scripts, of course, security detection and deduplication processing may be performed only on NFC tag scripts uploaded by users.

在步骤203中,发布NFC标签脚本,以供用户下载使用。In step 203, the NFC tag script is issued for users to download and use.

用户可以通过移动终端上的NFC标签脚本商店应用程序访问服务器,并且可以浏览、搜索和查看NFC标签脚本商店中所有的内容。并且用户可以根据需要选择性的下载适合自己的NFC标签脚本,然后将其写入NFC标签中,以便后续使用。The user can access the server through the NFC tag script store application program on the mobile terminal, and can browse, search and view all the contents in the NFC tag script store. And users can selectively download the NFC tag script suitable for them according to their needs, and then write it into the NFC tag for subsequent use.

相应地,该方法还可以包括:Correspondingly, the method may also include:

接收移动终端发送的浏览或搜索请求;Receive browsing or search requests sent by mobile terminals;

显示浏览或搜索请求对应的NFC标签脚本。Displays the NFC tag script corresponding to the browse or search request.

在步骤204中,接收移动终端发送的脚本下载请求,该脚本下载请求用于请求第一NFC标签脚本。In step 204, a script download request sent by the mobile terminal is received, and the script download request is used to request the first NFC tag script.

在本公开实施例中,第一NFC标签脚本是指用户选择的欲下载的NFC标签脚本。该第一NFC标签脚本还包括执行第一NFC标签脚本中的命令所需的终端配置条件。例如,用户通过NFC标签脚本商店应用程序访问服务器,找到想要下载的脚本(即第一NFC标签脚本)后,点击下载,移动终端就向服务器发送该脚本下载请求。In the embodiment of the present disclosure, the first NFC tag script refers to the NFC tag script selected by the user to be downloaded. The first NFC tag script also includes terminal configuration conditions required to execute commands in the first NFC tag script. For example, the user accesses the server through the NFC tag script store application program, finds the script to be downloaded (ie the first NFC tag script), clicks download, and the mobile terminal sends the script download request to the server.

在步骤205中,获取移动终端的配置信息。In step 205, the configuration information of the mobile terminal is acquired.

实现时,可以在移动终端启动NFC标签脚本商店应用程序时,通过NFC标签脚本商店应用程序将移动终端的设定的配置信息主动发送给服务器,从而服务器可以获得正在使用NFC标签脚本商店的移动终端的设定的配置信息。设定的配置信息包括但不限于设备型号、系统版本号、硬件支持信息等,为了保护隐私安全,设定的配置信息通常为一些公开的配置信息。容易知道,也可以移动终端也可以在其它需要的时候将移动终端的设定的配置信息主动发送给服务器,本公开对比不作限制。During implementation, when the mobile terminal starts the NFC tag script store application program, the configuration information of the mobile terminal's settings can be actively sent to the server through the NFC tag script store application program, so that the server can obtain the mobile terminal that is using the NFC tag script store. The configuration information of the settings. The set configuration information includes but is not limited to device model, system version number, hardware support information, etc. In order to protect privacy and security, the set configuration information is usually some public configuration information. It is easy to know that the mobile terminal can also actively send the configuration information set by the mobile terminal to the server when needed, and the present disclosure does not limit the comparison.

若不考虑隐私,设定的配置信息还可以包括移动终端安装了哪些应用以及这些应用的版本信息、运营商信息等。If privacy is not considered, the set configuration information may also include which applications are installed on the mobile terminal, version information of these applications, operator information, and the like.

在步骤206中,判断移动终端的配置信息是否满足第一NFC标签脚本中的终端配置条件。当移动终端的配置信息不满足第一NFC标签脚本中的终端配置条件时,执行步骤207,当移动终端的配置信息满足第一NFC标签脚本中的终端配置条件时,执行步骤208。In step 206, it is judged whether the configuration information of the mobile terminal satisfies the terminal configuration condition in the first NFC tag script. When the configuration information of the mobile terminal does not meet the terminal configuration conditions in the first NFC tag script, perform step 207, and when the configuration information of the mobile terminal meets the terminal configuration conditions in the first NFC tag script, perform step 208.

终端配置条件可以为软件配置条件、硬件配置条件和网络配置条件中的一种或多种,其中,软件配置条件包括但不限于移动终端是否安装待执行应用(即NFC标签脚本中的命令将会调用的应用程序),应用版本是否支持这些脚本中的命令,网络配置条件例如设备运营商的情况等。The terminal configuration condition can be one or more in the software configuration condition, the hardware configuration condition and the network configuration condition, wherein, the software configuration condition includes but is not limited to whether the mobile terminal installs the application to be executed (that is, the command in the NFC tag script will Invoked application), whether the application version supports the commands in these scripts, network configuration conditions such as the situation of the device operator, etc.

例如,假设第一NFC标签脚本中的终端配置条件包括具备蓝牙,若该移动终端的配置信息显示其不具备蓝牙功能,则执行步骤207,若该移动终端的配置信息显示其具备蓝牙功能,则执行步骤208。For example, assuming that the terminal configuration condition in the first NFC tag script includes having Bluetooth, if the configuration information of the mobile terminal shows that it does not have the Bluetooth function, then perform step 207, if the configuration information of the mobile terminal shows that it has the Bluetooth function, then Execute step 208.

在步骤207中,提示用户第一NFC标签脚本不适用于该移动终端。In step 207, the user is prompted that the first NFC tag script is not applicable to the mobile terminal.

在步骤208中,向该移动终端发送第一NFC标签脚本。In step 208, the first NFC tag script is sent to the mobile terminal.

移动终端成功接收第一NFC标签脚本后,第一NFC标签脚本下载完成。After the mobile terminal successfully receives the first NFC tag script, the download of the first NFC tag script is completed.

可选地,该方法还包括:Optionally, the method also includes:

接收讨论信息的发表请求,并在NFC标签脚本商店中发布讨论信息。该发表请求用于提示NFC标签脚本商店接收用户的讨论信息,该讨论信息可以是对脚本使用的评价和改进建议等。Receive posting requests for discussion information and publish discussion information in the NFC tag script store. The publication request is used to prompt the NFC tag script store to receive the user's discussion information, and the discussion information may be comments on the use of scripts and suggestions for improvement.

本公开通过获取NFC标签脚本并将其发布,使得用户可以根据需要下载NFC标签脚本,进而可以充分挖掘NFC标签的使用潜力。并且,通过在NFC标签脚本中包括执行该NFC标签脚本所需的终端配置条件,可以根据移动终端的配置信息,判断是否用户当前要下载的NFC标签脚本是否适用于其移动终端,若不适用,则会提醒用户,避免了用户下载后才发现下载的NFC标签脚本不能正常执行的情况,可以节省时间、提高效率,并且节约网络资源和用户流量。The present disclosure enables users to download NFC tag scripts as required by acquiring and publishing the NFC tag scripts, thereby fully exploiting the use potential of NFC tags. And, by including the terminal configuration conditions required for executing the NFC tag script in the NFC tag script, it can be judged whether the NFC tag script that the user currently wants to download is applicable to its mobile terminal according to the configuration information of the mobile terminal, if not applicable, It will remind the user to avoid the situation that the downloaded NFC tag script cannot be executed normally after the user downloads it, which can save time, improve efficiency, and save network resources and user traffic.

图3显示了本公开又一实施例提供的一种NFC标签脚本的提供方法,该方法可以由服务器执行。如图3所示,该方法包括:Fig. 3 shows a method for providing an NFC tag script provided by another embodiment of the present disclosure, and the method may be executed by a server. As shown in Figure 3, the method includes:

在步骤301中,获取NFC标签脚本。In step 301, an NFC tag script is obtained.

该步骤301与前述步骤201相同,在此不再赘述。This step 301 is the same as the aforementioned step 201, and will not be repeated here.

在步骤302中,对获取到的NFC标签脚本进行预处理。In step 302, the acquired NFC tag script is preprocessed.

该步骤302与前述步骤202相同,在此不再赘述。This step 302 is the same as the aforementioned step 202, and will not be repeated here.

在步骤303中,在NFC标签脚本商店中发布NFC标签脚本,以供用户下载使用。In step 303, the NFC tag script is published in the NFC tag script store for users to download and use.

该步骤303与前述步骤203相同,在此不再赘述。This step 303 is the same as the aforementioned step 203, and will not be repeated here.

在步骤304中,获取移动终端的配置信息。In step 304, configuration information of the mobile terminal is obtained.

实现时,当移动终端启动NFC标签脚本商店应用程序时,会通过NFC标签脚本商店应用程序将移动终端的设定的配置信息主动发送给服务器,从而服务器可以获得该移动终端的设定的配置信息。设定的配置信息包括但不限于设备型号、系统版本号、硬件支持信息等,为了保护隐私安全,设定的配置信息通常为一些公开的配置信息。During implementation, when the mobile terminal starts the NFC tag script store application program, the configuration information of the mobile terminal settings will be actively sent to the server through the NFC tag script store application program, so that the server can obtain the configuration information of the mobile terminal settings . The set configuration information includes but is not limited to device model, system version number, hardware support information, etc. In order to protect privacy and security, the set configuration information is usually some public configuration information.

在步骤305中,屏蔽该移动终端的配置信息不满足的终端配置条件所属的NFC标签脚本。In step 305, shield the NFC tag script to which the configuration information of the mobile terminal does not satisfy the terminal configuration condition.

例如,步骤304中获取到的移动终端的配置信息,限制该移动终端不具备摄像头,则服务器会过滤掉所有需要使用摄像头的NFC标签脚本(根据NFC标签脚本中的终端配置条件),进而为该移动终端屏蔽所有需要使用摄像头的NFC标签脚本(即NFC标签脚本商店中,不显示所有需要使用摄像头的NFC标签脚本)。For example, the configuration information of the mobile terminal obtained in step 304 restricts the mobile terminal from having a camera, then the server will filter out all NFC tag scripts that need to use the camera (according to the terminal configuration conditions in the NFC tag script), and then provide the The mobile terminal blocks all NFC tag scripts that need to use the camera (that is, all NFC tag scripts that need to use the camera are not displayed in the NFC tag script store).

在步骤306中,接收移动终端发送的脚本下载请求,该脚本下载请求用于请求第一NFC标签脚本。In step 306, a script download request sent by the mobile terminal is received, and the script download request is used to request the first NFC tag script.

在本公开实施例中,第一NFC标签脚本是指用户选择的欲下载的NFC标签脚本。该第一NFC标签脚本还包括执行第一NFC标签脚本中的命令所需的终端配置条件。例如,用户通过NFC标签脚本商店应用程序访问服务器,找到想要下载的脚本(即第一NFC标签脚本)后,点击下载,移动终端就向服务器发送该脚本下载请求。由于在步骤305中,屏蔽该移动终端的配置信息不满足的终端配置条件所属的NFC标签脚本,所以移动终端显示的NFC标签脚本中不能使用的NFC标签脚本较少,这样可以减少用户浏览所用时间,进而可以进一步为用户节省时间,使其可以快速找到自己想要下载的NFC标签脚本。In the embodiment of the present disclosure, the first NFC tag script refers to the NFC tag script selected by the user to be downloaded. The first NFC tag script also includes terminal configuration conditions required to execute commands in the first NFC tag script. For example, the user accesses the server through the NFC tag script store application program, finds the script to be downloaded (ie the first NFC tag script), clicks download, and the mobile terminal sends the script download request to the server. Because in step 305, shield the NFC label script that the terminal configuration condition that the configuration information of this mobile terminal does not satisfy belongs to, so the NFC label script that can't be used in the NFC label script displayed by the mobile terminal is less, can reduce the time that the user browses like this , which can further save time for the user, allowing them to quickly find the NFC tag script they want to download.

在步骤307中,向该移动终端发送第一NFC标签脚本。In step 307, the first NFC tag script is sent to the mobile terminal.

本公开通过获取NFC标签脚本并将其发布,使得用户可以根据需要下载NFC标签脚本,进而可以充分挖掘NFC标签的使用潜力。并且,通过在NFC标签脚本中包括执行该NFC标签脚本所需的终端配置条件,可以实现在NFC标签脚本商店中,屏蔽该移动终端的配置信息不满足的终端配置条件所属的NFC标签脚本,为用户节省时间,使其可以快速找到自己想要下载的NFC标签脚本。The present disclosure enables users to download NFC tag scripts as required by acquiring and publishing the NFC tag scripts, thereby fully exploiting the use potential of NFC tags. And, by including the terminal configuration conditions required for executing the NFC tag script in the NFC tag script, it can be realized that in the NFC tag script store, the NFC tag script to which the configuration information of the mobile terminal does not satisfy the terminal configuration condition belongs to can be realized, for Users save time and can quickly find the NFC tag script they want to download.

图4显示了本公开一个实施例提供的一种NFC标签脚本的获取方法,该方法可以由移动终端执行,该方法适用于从服务器获取第一NFC标签脚本。进一步地,如图4所示,该方法包括:Fig. 4 shows a method for acquiring an NFC tag script provided by an embodiment of the present disclosure, the method can be executed by a mobile terminal, and the method is suitable for acquiring a first NFC tag script from a server. Further, as shown in Figure 4, the method includes:

在步骤401中,发送脚本下载请求,该脚本下载请求用于请求第一NFC标签脚本。In step 401, a script download request is sent, and the script download request is used to request a first NFC tag script.

一个NFC标签脚本可以包括一个或多个用于写入NFC标签的命令,该命令用于控制写入NFC标签中,支持NFC功能的终端设备通过读取并执行NFC标签中的命令,可以完成各种操作,例如,进入静音模式、设定闹钟、拨打某个电话、启动特定应用程序、关注社交网络上的用户等等。An NFC tag script can include one or more commands for writing to an NFC tag. The command is used to control writing to an NFC tag. A terminal device supporting the NFC function can complete various tasks by reading and executing the commands in the NFC tag. actions such as entering silent mode, setting an alarm, making a certain call, launching a specific application, following a user on a social network, and so on.

通过使NFC标签脚本中包括多个用于写入NFC标签的命令,可以使将各种操作进行合理的组合,例如,进入静音模式和将亮度调节为最低,可以作为睡觉前使用的组合。By including multiple commands for writing NFC tags in the NFC tag script, various operations can be reasonably combined, for example, entering the silent mode and adjusting the brightness to the lowest level can be used as a combination before going to bed.

在步骤402中,下载该第一NFC标签脚本。In step 402, the first NFC tag script is downloaded.

移动终端成功下载第一NFC标签脚本后,可以将其写入NFC标签中,以便后续使用。After the mobile terminal successfully downloads the first NFC tag script, it can be written into the NFC tag for subsequent use.

本公开通过获取NFC标签脚本并将其发布,使得用户可以根据需要下载NFC标签脚本,进而可以充分挖掘NFC标签的使用潜力。The present disclosure enables users to download NFC tag scripts as required by acquiring and publishing the NFC tag scripts, thereby fully exploiting the use potential of NFC tags.

图5显示了本公开一个实施例提供的一种NFC标签脚本的获取方法,该方法可以由移动终端执行,该方法适用于从服务器获取第一NFC标签脚本,如图5所示,该方法包括:Fig. 5 has shown the acquisition method of a kind of NFC tag script that an embodiment of the present disclosure provides, and this method can be carried out by mobile terminal, and this method is suitable for obtaining the first NFC tag script from server, as shown in Fig. 5, this method includes :

在步骤501中,移动终端启动NFC标签脚本商店应用程序。In step 501, the mobile terminal starts an NFC tag script store application.

需要说明的是,在本公开实施例中,NFC标签脚本商店应用程序这一名称仅为举例,也可以叫做NFC标签玩法中心等等,在此不做限制,主要用于为用户提供NFC标签脚本的下载。It should be noted that, in this disclosed embodiment, the name of the NFC tag script store application program is only an example, and it can also be called the NFC tag play center, etc., and is not limited here, and is mainly used to provide users with NFC tag scripts. download.

通过NFC标签脚本商店应用程序,可以看到服务器发布的多个NFC标签脚本,这些NFC标签脚本保存在服务器上。每个NFC标签脚本可以包括一个或多个用于写入NFC标签的命令,该命令用于控制写入NFC标签中,支持NFC功能的终端设备通过读取并执行NFC标签中的命令,可以完成各种操作,例如,进入静音模式、设定闹钟、拨打某个电话、启动特定应用程序、关注社交网络上的用户等等。Through the NFC tag script store application, you can see multiple NFC tag scripts issued by the server, and these NFC tag scripts are stored on the server. Each NFC tag script can include one or more commands for writing to the NFC tag. The command is used to control writing to the NFC tag. A terminal device supporting the NFC function can complete the command by reading and executing the commands in the NFC tag. Various actions, such as entering silent mode, setting an alarm, making a certain call, launching a specific application, following a user on a social network, etc.

通过使NFC标签脚本中包括多个用于写入NFC标签的命令,可以使将各种操作进行合理的组合,例如,进入静音模式和将亮度调节为最低,可以作为睡觉前使用的组合。By including multiple commands for writing NFC tags in the NFC tag script, various operations can be reasonably combined, for example, entering the silent mode and adjusting the brightness to the lowest level can be used as a combination before going to bed.

可选地,NFC标签脚本中还可以包括执行该NFC标签脚本中的命令所需的终端配置条件。该终端配置条件可以是硬件配置条件,例如,具备蓝牙、具备摄像头等等;该终端配置条件也可以是软件配置条件,例如,安装有邮件应用程序、或者安装有微博应用软件且微博应用软件的版本信息为2.0以上等等。Optionally, the NFC tag script may also include terminal configuration conditions required for executing the commands in the NFC tag script. The terminal configuration condition may be a hardware configuration condition, for example, having bluetooth, having a camera, etc.; The version information of the software is above 2.0 and so on.

可选地,在启动NFC标签脚本商店应用程序时,移动终端可以把将自身的配置信息发送给服务器,以实现上述步骤206和步骤305中服务器的功能。Optionally, when starting the NFC tag script store application program, the mobile terminal may send its own configuration information to the server, so as to realize the functions of the server in step 206 and step 305 above.

在步骤502中,发送NFC标签脚本的获取请求,该获取请求用于请求第一NFC标签脚本。In step 502, an acquisition request of the NFC tag script is sent, and the acquisition request is used to request the first NFC tag script.

在步骤503中,下载该第一NFC标签脚本。In step 503, download the first NFC tag script.

移动终端成功下载第一NFC标签脚本后,可以根据需要选择是否将其写入NFC标签中,如图5c所示,该移动终端中已成功下载的NFC标签脚本包括碰碰闹钟、碰碰番茄工作法和一起来做俯卧撑,用户通过选中这些脚本,触发将其写入NFC标签的动作。此外,还可以为该移动终端推荐脚本,例如图5c中的碰碰传情。After the mobile terminal successfully downloads the first NFC tag script, you can choose whether to write it into the NFC tag according to your needs. As shown in Figure 5c, the NFC tag scripts that have been successfully downloaded in the mobile terminal include Bumper Alarm Clock and Bumper Tomato Work. Let's do push-ups together, and the user selects these scripts to trigger the action of writing them into the NFC tag. In addition, scripts can also be recommended for the mobile terminal, such as the teaser in Fig. 5c.

在本实施例中,该第一NFC标签脚本包括执行该第一NFC标签脚本中的命令所需的终端配置条件。In this embodiment, the first NFC tag script includes terminal configuration conditions required to execute commands in the first NFC tag script.

终端配置条件可以为软件配置条件、硬件配置条件和网络配置条件中的一种或多种,其中,软件配置条件包括但不限于移动终端是否安装待执行应用(即NFC标签脚本中的命令将会调用的应用程序),应用版本是否支持这些脚本中的命令,网络配置条件例如设备运营商的情况等。The terminal configuration condition can be one or more in the software configuration condition, the hardware configuration condition and the network configuration condition, wherein, the software configuration condition includes but is not limited to whether the mobile terminal installs the application to be executed (that is, the command in the NFC tag script will Invoked application), whether the application version supports the commands in these scripts, network configuration conditions such as the situation of the device operator, etc.

图5a显示了前述步骤501-503的详细过程,如图5a所示,移动终端51启动NFC标签脚本商店应用程序51a后,就可以在NFC标签脚本商店中浏览和搜索NFC标签脚本,确定需要下载的第一NFC标签脚本后,用户就会向发出脚本下载命令,移动终端就会根据收到的脚本下载命令向服务器52发送该获取请求,服务器52收到该获取请求后,会将该请求对应的第一NFC标签脚本发送给移动终端51。Fig. 5 a has shown the detailed process of aforementioned steps 501-503, as shown in Fig. 5 a, after mobile terminal 51 starts NFC tag script store application program 51a, just can browse and search NFC tag script in NFC tag script store, determine to need to download After the first NFC tag script, the user will send a script download command to the mobile terminal, and the mobile terminal will send the acquisition request to the server 52 according to the received script download command. After the server 52 receives the acquisition request, it will correspond to the request. The first NFC tag script is sent to the mobile terminal 51.

在步骤504中,检测移动终端的配置信息是否符合第一NFC标签脚本中的终端配置条件。In step 504, it is detected whether the configuration information of the mobile terminal conforms to the terminal configuration condition in the first NFC tag script.

在步骤505中,当移动终端的配置信息不符合第一NFC标签脚本中的终端配置条件时,提示用户第一NFC标签脚本不适用于移动终端。In step 505, when the configuration information of the mobile terminal does not meet the terminal configuration conditions in the first NFC tag script, the user is prompted that the first NFC tag script is not applicable to the mobile terminal.

在本实施例的一种实现方式中,提示用户第一NFC标签脚本不适用于移动终端(主要是移动终端的配置信息不符合前述软件配置信息时),可以采用如下方式:In an implementation of this embodiment, prompting the user that the first NFC tag script is not applicable to the mobile terminal (mainly when the configuration information of the mobile terminal does not conform to the aforementioned software configuration information), the following methods can be used:

步骤5051:输出是否更新或下载指定应用程序的操作选项,该指定应用程序为前述第一NFC标签脚本中的命令需要调用的应用程序。Step 5051: Outputting the operation option of whether to update or download the specified application program, the specified application program is the application program that needs to be invoked by the command in the aforementioned first NFC tag script.

进一步地,在该实现方式中,该方法还包括:Further, in this implementation, the method also includes:

步骤5052:接收用户的更新命令或下载命令;Step 5052: receiving an update command or download command from the user;

步骤5053:根据指定应用程序的包名,更新或下载指定应用程序。Step 5053: Update or download the specified application program according to the package name of the specified application program.

容易知道,包名为应用程序的唯一标识,不同的应用程序具有不同的包名,通过该包名可以链接到应用超市中的相应资源并进行下载。It is easy to know that the package name is the unique identifier of the application program, and different application programs have different package names, through which the corresponding resources in the application supermarket can be linked to and downloaded.

例如,假设第一NFC标签脚本中的命令包括给某账号发送邮件,终端配置条件包括安装邮件应用程序,若该移动终端的配置信息显示其没有安装邮件应用程序,则输出是否下载邮件应用程序的操作选项。若收到用户下载命令(表示用户确认下载),根据邮件应用程序的包名,去应用超市中下载邮件应用程序。若用户不发出下载命令,通过该操作选项,用户也可以知道该移动终端不能指定第一NFC标签脚本中的程序,所以不会浪费精力将其写入NFC标签中,不必等到写入NFC标签中想使用的时候才发现无法使用。For example, assume that the command in the first NFC tag script includes sending mail to a certain account, and the terminal configuration conditions include installing a mail application program. If the configuration information of the mobile terminal shows that it does not install a mail application program, then output whether to download the mail application program. Action options. If a download command from the user is received (indicating that the user confirms the download), go to the application store to download the mail application according to the package name of the mail application. If the user does not issue a download command, through this operation option, the user can also know that the mobile terminal cannot specify the program in the first NFC tag script, so it will not waste energy to write it into the NFC tag, and it is not necessary to wait until it is written into the NFC tag When I wanted to use it, I found it couldn't be used.

在本实施例的另一实现方式中,提示用户第一NFC标签脚本不适用于移动终端(主要是移动终端的配置信息不符合前述软件配置信息时),可以仅输出表明第一NFC标签脚本不适用于该移动终端的信息。In another implementation of this embodiment, the user is prompted that the first NFC tag script is not applicable to the mobile terminal (mainly when the configuration information of the mobile terminal does not conform to the aforementioned software configuration information), and it can only be output to indicate that the first NFC tag script is not applicable. Information Applicable to the Mobile Terminal.

例如,假设第一NFC标签脚本中的终端配置条件包括具备蓝牙,若该移动终端的配置信息显示其不具备蓝牙功能,则直接输出第一NFC标签脚本不适用于该移动终端的信息。For example, assuming that the terminal configuration condition in the first NFC tag script includes having Bluetooth, if the configuration information of the mobile terminal shows that it does not have the Bluetooth function, then directly output the information that the first NFC tag script is not applicable to the mobile terminal.

可选地,该方法还包括:向服务器上传NFC标签脚本,以使服务器在NFC标签脚本商店中发布上传的NFC标签脚本(见图5a)。容易知道,该方法和前述步骤501-505没有先后顺序,可以同时执行。Optionally, the method further includes: uploading the NFC tag script to the server, so that the server publishes the uploaded NFC tag script in the NFC tag script store (see Figure 5a). It is easy to know that this method and the aforementioned steps 501-505 have no sequence and can be executed at the same time.

可选地,该方法还包括发送讨论信息的发表请求,收到确认信息后上传讨论信息。该发表请求用于提示NFC标签脚本商店接收用户的讨论信息,该讨论信息可以包括用户对脚本使用的评价和改进建议等。容易知道,该方法和前述步骤501-505没有先后顺序,可以同时执行。Optionally, the method further includes sending a publication request for the discussion information, and uploading the discussion information after receiving the confirmation information. The publication request is used to prompt the NFC tag script store to receive the user's discussion information, and the discussion information may include the user's comments on the use of the script and suggestions for improvement. It is easy to know that this method and the aforementioned steps 501-505 have no sequence and can be executed at the same time.

本公开通过获取NFC标签脚本并将其发布,使得用户可以根据需要下载NFC标签脚本,进而可以充分挖掘NFC标签的使用潜力。The present disclosure enables users to download NFC tag scripts as required by acquiring and publishing the NFC tag scripts, thereby fully exploiting the use potential of NFC tags.

图6显示了本公开一个实施例提供的一种NFC标签脚本的获取方法,该方法可以由移动终端执行,该方法包括:从另一移动终端获取第一NFC通信标签脚本。Fig. 6 shows a method for acquiring an NFC tag script provided by an embodiment of the present disclosure, the method may be executed by a mobile terminal, and the method includes: acquiring a first NFC communication tag script from another mobile terminal.

进一步地,如图6所示,该方法包括:Further, as shown in Figure 6, the method includes:

在步骤601中,接收另一终端设备发送的第一NFC标签脚本。In step 601, a first NFC tag script sent by another terminal device is received.

一个NFC标签脚本可以包括一个或多个用于写入NFC标签的命令,该命令用于控制写入NFC标签中,支持NFC功能的终端设备通过读取并执行NFC标签中的命令,可以完成各种操作,例如,进入静音模式、设定闹钟、拨打某个电话、启动特定应用程序、关注社交网络上的用户等等。An NFC tag script can include one or more commands for writing to an NFC tag. The command is used to control writing to an NFC tag. A terminal device supporting the NFC function can complete various tasks by reading and executing the commands in the NFC tag. actions such as entering silent mode, setting an alarm, making a certain call, launching a specific application, following a user on a social network, and so on.

通过使NFC标签脚本中包括多个用于写入NFC标签的命令,可以使将各种操作进行合理的组合,例如,进入静音模式和将亮度调节为最低,可以作为睡觉前使用的组合。By including multiple commands for writing NFC tags in the NFC tag script, various operations can be reasonably combined, for example, entering the silent mode and adjusting the brightness to the lowest level can be used as a combination before going to bed.

可选地,NFC标签脚本中还可以包括执行该NFC标签脚本中的命令所需的终端配置条件。该终端配置条件可以是硬件配置条件,例如,具备蓝牙、具备摄像头等等;该终端配置条件也可以是软件配置条件,例如,安装有邮件应用程序、或者安装有微博应用软件且微博应用软件的版本信息为2.0以上等等。Optionally, the NFC tag script may also include terminal configuration conditions required for executing the commands in the NFC tag script. The terminal configuration condition may be a hardware configuration condition, for example, having bluetooth, having a camera, etc.; The version information of the software is above 2.0 and so on.

在本实施例中,该第一NFC标签脚本包括执行该第一NFC标签脚本中的命令所需的终端配置条件。In this embodiment, the first NFC tag script includes terminal configuration conditions required to execute commands in the first NFC tag script.

终端配置条件可以为软件配置条件、硬件配置条件和网络配置条件中的一种或多种,其中,软件配置条件包括但不限于移动终端是否安装待执行应用(即NFC标签脚本中的命令将会调用的应用程序),应用版本是否支持这些脚本中的命令,网络配置条件例如设备运营商的情况等。The terminal configuration condition can be one or more in the software configuration condition, the hardware configuration condition and the network configuration condition, wherein, the software configuration condition includes but is not limited to whether the mobile terminal installs the application to be executed (that is, the command in the NFC tag script will Invoked application), whether the application version supports the commands in these scripts, network configuration conditions such as the situation of the device operator, etc.

在实现中,移动终端可以通过其他现有的信息传播渠道接收另一移动终端发送的第一NFC标签脚本,例如邮件、短信、即时通讯软件、论坛等信息传播渠道。In implementation, the mobile terminal can receive the first NFC tag script sent by another mobile terminal through other existing information dissemination channels, such as mail, short message, instant messaging software, forum and other information dissemination channels.

在步骤602中,检测移动终端的配置信息是否符合第一NFC标签脚本中的终端配置条件。In step 602, it is detected whether the configuration information of the mobile terminal conforms to the terminal configuration condition in the first NFC tag script.

在步骤603中,当移动终端的配置信息不符合第一NFC标签脚本中的终端配置条件时,提示用户第一NFC标签脚本不适用于移动终端。In step 603, when the configuration information of the mobile terminal does not meet the terminal configuration conditions in the first NFC tag script, the user is prompted that the first NFC tag script is not applicable to the mobile terminal.

在本实施例的一种实现方式中,提示用户第一NFC标签脚本不适用于移动终端(主要是移动终端的配置信息不符合前述软件配置信息时),可以采用同上述步骤5051至步骤5053中的方法,在此不再赘述。In an implementation of this embodiment, the user is prompted that the first NFC tag script is not applicable to the mobile terminal (mainly when the configuration information of the mobile terminal does not conform to the aforementioned software configuration information), the same method as in the above steps 5051 to 5053 can be used. method, which will not be repeated here.

容易知道,包名为应用程序的唯一标识,不同的应用程序具有不同的包名,通过该包名可以链接到应用超市中的相应资源并进行下载。It is easy to know that the package name is the unique identifier of the application program, and different application programs have different package names, through which the corresponding resources in the application supermarket can be linked to and downloaded.

在本实施例的另一实现方式中,提示用户第一NFC标签脚本不适用于移动终端(主要是移动终端的配置信息不符合前述软件配置信息时),可以仅输出表明第一NFC标签脚本不适用于该移动终端的信息。In another implementation of this embodiment, the user is prompted that the first NFC tag script is not applicable to the mobile terminal (mainly when the configuration information of the mobile terminal does not conform to the aforementioned software configuration information), and it can only be output to indicate that the first NFC tag script is not applicable. Information Applicable to the Mobile Terminal.

例如,假设第一NFC标签脚本中的终端配置条件包括具备蓝牙,若该移动终端的配置信息显示其不具备蓝牙功能,则直接输出第一NFC标签脚本不适用于该移动终端的信息。For example, assuming that the terminal configuration condition in the first NFC tag script includes having Bluetooth, if the configuration information of the mobile terminal shows that it does not have the Bluetooth function, then directly output the information that the first NFC tag script is not applicable to the mobile terminal.

本公开通过从另一移动终端设备获取NFC标签脚本,使得用户可以共享各自的NFC标签脚本的内容,进而可以充分挖掘NFC标签的使用潜力。The present disclosure enables users to share the content of their respective NFC tag scripts by acquiring NFC tag scripts from another mobile terminal device, thereby fully exploiting the use potential of NFC tags.

图7显示了本公开一个实施例提供的一种NFC标签脚本的提供装置,该装置可以应用于服务器,如图7所示,该装置包括:Figure 7 shows a device for providing an NFC tag script provided by an embodiment of the present disclosure, the device can be applied to a server, as shown in Figure 7, the device includes:

获取模块701,用于获取NFC标签脚本;Obtaining module 701, used to obtain the NFC tag script;

发布模块702,用于在NFC标签脚本商店中发布NFC标签脚本,以供用户下载使用。The issuing module 702 is configured to issue NFC tag scripts in the NFC tag script store for users to download and use.

一个NFC标签脚本可以包括一个或多个用于写入NFC标签的命令,该命令用于控制写入NFC标签中,支持NFC功能的终端设备通过读取并执行NFC标签中的命令,可以完成各种操作,例如,进入静音模式、设定闹钟、拨打某个电话、启动特定应用程序、关注社交网络上的用户等等。An NFC tag script can include one or more commands for writing to an NFC tag. The command is used to control writing to an NFC tag. A terminal device supporting the NFC function can complete various tasks by reading and executing the commands in the NFC tag. actions such as entering silent mode, setting an alarm, making a certain call, launching a specific application, following a user on a social network, and so on.

通过使NFC标签脚本中包括多个用于写入NFC标签的命令,可以使将各种操作进行合理的组合,例如,进入静音模式和将亮度调节为最低,可以作为睡觉前使用的组合。By including multiple commands for writing NFC tags in the NFC tag script, various operations can be reasonably combined, for example, entering the silent mode and adjusting the brightness to the lowest level can be used as a combination before going to bed.

本公开通过获取NFC标签脚本并将其发布,使得用户可以根据需要下载NFC标签脚本,进而可以充分挖掘NFC标签的使用潜力。The present disclosure enables users to download NFC tag scripts as required by acquiring and publishing the NFC tag scripts, thereby fully exploiting the use potential of NFC tags.

图8显示了本公开一个实施例提供的一种NFC标签脚本的提供装置,该装置可以应用于服务器,如图8所示,该装置包括:Figure 8 shows a device for providing an NFC tag script provided by an embodiment of the present disclosure, the device can be applied to a server, as shown in Figure 8, the device includes:

获取模块801,用于获取NFC标签脚本;Obtaining module 801, used to obtain the NFC tag script;

发布模块802,用于在NFC标签脚本商店中发布NFC标签脚本,以供用户下载使用。The publishing module 802 is configured to publish NFC tag scripts in the NFC tag script store for users to download and use.

一个NFC标签脚本可以包括一个或多个用于写入NFC标签的命令,该命令用于控制写入NFC标签中,支持NFC功能的终端设备通过读取并执行NFC标签中的命令,可以完成各种操作,例如,进入静音模式、设定闹钟、拨打某个电话、启动特定应用程序、关注社交网络上的用户等等。An NFC tag script can include one or more commands for writing to an NFC tag. The command is used to control writing to an NFC tag. A terminal device supporting the NFC function can complete various tasks by reading and executing the commands in the NFC tag. actions such as entering silent mode, setting an alarm, making a certain call, launching a specific application, following a user on a social network, and so on.

通过使NFC标签脚本中包括多个用于写入NFC标签的命令,可以使将各种操作进行合理的组合,例如,进入静音模式和将亮度调节为最低,可以作为睡觉前使用的组合。By including multiple commands for writing NFC tags in the NFC tag script, various operations can be reasonably combined, for example, entering the silent mode and adjusting the brightness to the lowest level can be used as a combination before going to bed.

在一种可能的实现方式中,获取模块801用于接收服务提供商开发的NFC标签脚本。服务提供商可以直接将其开发的NFC标签脚本配置在服务器上。In a possible implementation manner, the acquiring module 801 is configured to receive an NFC tag script developed by a service provider. The service provider can directly configure the NFC tag script it develops on the server.

在另一种可能的实现方式中,获取模块801用于接收用户上传的NFC标签脚本。其中,用户上传的NFC标签脚本可以是将下载的服务商提供的各NFC标签脚本进行重新组合得到,也可以是由用户自行编写的NFC标签脚本。通过接收用户上传的NFC标签脚本,可以挖掘用户的潜力,共享各个用户的创意,充分扩展NFC标签的应用范围。In another possible implementation manner, the acquiring module 801 is configured to receive an NFC tag script uploaded by a user. Wherein, the NFC tag script uploaded by the user may be obtained by recombining the downloaded NFC tag scripts provided by the service provider, or may be an NFC tag script written by the user himself. By receiving the NFC tag script uploaded by the user, the potential of the user can be tapped, the creativity of each user can be shared, and the application range of the NFC tag can be fully expanded.

可选地,该装置还包括:预处理模块803,用于对获取到的NFC标签脚本进行预处理。其中,预处理包括安全检测、去重处理和分类索引中的一种或多种。Optionally, the device further includes: a preprocessing module 803, configured to preprocess the acquired NFC tag script. Wherein, the preprocessing includes one or more of security detection, deduplication processing, and classification indexing.

可选地,该装置还包括:Optionally, the device also includes:

接收模块804,用于接收移动终端发送的脚本下载请求,该脚本下载请求用于请求从NFC标签商店下载第一NFC标签脚本;The receiving module 804 is configured to receive a script download request sent by the mobile terminal, and the script download request is used to request to download the first NFC tag script from the NFC tag store;

发送模块805,用于向移动终端发送第一NFC标签脚本。The sending module 805 is configured to send the first NFC tag script to the mobile terminal.

其中,第一NFC标签脚本还可以包括执行该NFC标签脚本中的命令所需的终端配置条件。该终端配置条件可以是硬件配置条件,例如,具备蓝牙、具备摄像头等等;该终端配置条件也可以是软件配置条件,例如,安装有邮件应用程序、或者安装有微博应用软件且微博应用软件的版本信息为2.0以上等等。Wherein, the first NFC tag script may also include terminal configuration conditions required for executing commands in the NFC tag script. The terminal configuration condition may be a hardware configuration condition, for example, having bluetooth, having a camera, etc.; The version information of the software is above 2.0 and so on.

在一种可能的实现方式中,该装置还包括:In a possible implementation manner, the device also includes:

信息获取模块806,用于获取移动终端的配置信息;An information acquisition module 806, configured to acquire configuration information of the mobile terminal;

判断模块807,用于判断移动终端的配置信息是否满足第一NFC标签脚本中的终端配置条件;Judging module 807, for judging whether the configuration information of the mobile terminal satisfies the terminal configuration condition in the first NFC tag script;

提示模块808,用于当移动终端的配置信息不满足第一NFC标签脚本中的终端配置条件时,提示用户第一NFC标签脚本不适用于移动终端。The prompt module 808 is configured to prompt the user that the first NFC tag script is not applicable to the mobile terminal when the configuration information of the mobile terminal does not meet the terminal configuration conditions in the first NFC tag script.

其中,信息获取模块806获取移动终端的配置信息可以是,当移动终端启动NFC标签脚本商店时,会通过NFC标签脚本商店应用程序将移动终端的设定的配置信息主动发送给服务器,从而服务器可以获得正在使用NFC标签脚本商店的移动终端的设定的配置信息。设定的配置信息包括但不限于设备型号、系统版本号、硬件支持信息等,为了保护隐私安全,设定的配置信息通常为一些公开的配置信息。Wherein, the configuration information of the mobile terminal obtained by the information acquisition module 806 may be that when the mobile terminal starts the NFC tag script store, it will actively send the set configuration information of the mobile terminal to the server through the NFC tag script store application program, so that the server can Obtain the configuration information of the setting of the mobile terminal that is using the NFC tag script store. The set configuration information includes but is not limited to device model, system version number, hardware support information, etc. In order to protect privacy and security, the set configuration information is usually some public configuration information.

若不考虑隐私,设定的配置信息还可以包括移动终端安装了哪些应用以及这些应用的版本信息、运营商信息等。If privacy is not considered, the set configuration information may also include which applications are installed on the mobile terminal, version information of these applications, operator information, and the like.

在另一种实现方式中,上述判断模块807和提示模块808可以由屏蔽模块代替,屏蔽模块用于在NFC标签脚本商店中,屏蔽移动终端的配置信息不满足的终端配置条件所属的NFC标签。In another implementation, the judgment module 807 and the prompt module 808 may be replaced by a shielding module, which is used to shield the NFC tags whose configuration information of the mobile terminal does not meet the terminal configuration conditions in the NFC tag script store.

可选地,获取模块801还用于接收讨论信息的发表请求;发布模块802还用于在NFC标签脚本商店中发布讨论信息。该发表请求用于提示NFC标签脚本商店接收用户的讨论信息,该讨论信息可以是对脚本使用的评价和改进建议等。Optionally, the obtaining module 801 is further configured to receive a request for publishing discussion information; the publishing module 802 is also configured to publish the discussion information in the NFC tag script store. The publication request is used to prompt the NFC tag script store to receive the user's discussion information, and the discussion information may be comments on the use of scripts and suggestions for improvement.

本公开通过获取NFC标签脚本并将其发布,使得用户可以根据需要下载NFC标签脚本,进而可以充分挖掘NFC标签的使用潜力。The present disclosure enables users to download NFC tag scripts as required by acquiring and publishing the NFC tag scripts, thereby fully exploiting the use potential of NFC tags.

图9显示了本公开一个实施例提供的一种NFC标签脚本的获取装置,该装置可以用于移动终端,该装置用于从NFC标签脚本商店中获取第一NFC标签脚本。进一步地,如图9所示,该装置包括:Fig. 9 shows a device for obtaining an NFC tag script provided by an embodiment of the present disclosure. The device can be used in a mobile terminal, and the device is used to obtain a first NFC tag script from an NFC tag script store. Further, as shown in Figure 9, the device includes:

请求发送模块901,用于发送脚本下载请求,该脚本下载请求用于请求第一NFC标签脚本;The request sending module 901 is used to send a script download request, and the script download request is used to request the first NFC tag script;

下载模块902,用于下载第一NFC标签脚本。The download module 902 is configured to download the first NFC tag script.

其中,一个NFC标签脚本可以包括一个或多个用于写入NFC标签的命令,该命令用于控制写入NFC标签中,支持NFC功能的终端设备通过读取并执行NFC标签中的命令,可以完成各种操作,例如,进入静音模式、设定闹钟、拨打某个电话、启动特定应用程序、关注社交网络上的用户等等。Wherein, an NFC tag script can include one or more commands for writing into the NFC tag, and the command is used to control writing in the NFC tag, and a terminal device supporting the NFC function can read and execute the commands in the NFC tag to Take actions such as going silent, setting an alarm, making a call, launching a specific application, following a user on a social network, and more.

通过使NFC标签脚本中包括多个用于写入NFC标签的命令,可以使将各种操作进行合理的组合,例如,进入静音模式和将亮度调节为最低,可以作为睡觉前使用的组合。By including multiple commands for writing NFC tags in the NFC tag script, various operations can be reasonably combined, for example, entering the silent mode and adjusting the brightness to the lowest level can be used as a combination before going to bed.

本公开通过获取NFC标签脚本并将其发布,使得用户可以根据需要下载NFC标签脚本,进而可以充分挖掘NFC标签的使用潜力。The present disclosure enables users to download NFC tag scripts as required by acquiring and publishing the NFC tag scripts, thereby fully exploiting the use potential of NFC tags.

图10显示了本公开一个实施例提供的一种NFC标签脚本的获取装置,该装置可以用于移动终端,如图10所示,该装置包括:Figure 10 shows a device for obtaining an NFC tag script provided by an embodiment of the present disclosure, the device can be used in a mobile terminal, as shown in Figure 10, the device includes:

请求发送模块10011,用于发送脚本下载请求,该脚本下载请求用于请求第一NFC标签脚本;The request sending module 10011 is used to send a script download request, and the script download request is used to request the first NFC tag script;

下载模块10012,用于下载第一NFC标签脚本。The download module 10012 is used to download the first NFC tag script.

实现时,该装置可以从服务器获取NFC标签脚本,服务器上保存有多个NFC标签脚本,通过NFC标签脚本商店应用程序,可以看到服务器发布的多个NFC标签脚本,需要说明的是,该装置也可以从其它用户设备下载第一NFC标签脚本,并且,在本公开的其它实施例中,还可以用脚本接收模块替代请求发送模块10011和下载模块10012,该脚本接收模块用于接收另一移动终端主动发送的第一NFC标签脚本。另一移动终端可以通过邮件、即时通讯等方式发送第一NFC标签脚本。When implemented, the device can obtain NFC tag scripts from the server, and there are multiple NFC tag scripts stored on the server. Through the NFC tag script store application program, you can see multiple NFC tag scripts issued by the server. It should be noted that the device The first NFC tag script can also be downloaded from other user equipment, and, in other embodiments of the present disclosure, the request sending module 10011 and the download module 10012 can also be replaced by a script receiving module, which is used to receive another mobile The first NFC tag script actively sent by the terminal. Another mobile terminal may send the first NFC tag script by means of mail, instant messaging, or the like.

一个NFC标签脚本可以包括一个或多个用于写入NFC标签的命令,该命令用于控制写入NFC标签中,支持NFC功能的终端设备通过读取并执行NFC标签中的命令,可以完成各种操作,例如,进入静音模式、设定闹钟、拨打某个电话、启动特定应用程序、关注社交网络上的用户等等。An NFC tag script can include one or more commands for writing to an NFC tag. The command is used to control writing to an NFC tag. A terminal device supporting the NFC function can complete various tasks by reading and executing the commands in the NFC tag. actions such as entering silent mode, setting an alarm, making a certain call, launching a specific application, following a user on a social network, and so on.

通过使NFC标签脚本中包括多个用于写入NFC标签的命令,可以使将各种操作进行合理的组合,例如,进入静音模式和将亮度调节为最低,可以作为睡觉前使用的组合。By including multiple commands for writing NFC tags in the NFC tag script, various operations can be reasonably combined, for example, entering the silent mode and adjusting the brightness to the lowest level can be used as a combination before going to bed.

可选地,NFC标签脚本中还可以包括执行该NFC标签脚本中的命令所需的终端配置条件。该终端配置条件可以是硬件配置条件,例如,具备蓝牙、具备摄像头等等;该终端配置条件也可以是软件配置条件,例如,安装有邮件应用程序、或者安装有微博应用软件且微博应用软件的版本信息为2.0以上等等。Optionally, the NFC tag script may also include terminal configuration conditions required for executing the commands in the NFC tag script. The terminal configuration condition may be a hardware configuration condition, for example, having bluetooth, having a camera, etc.; The version information of the software is above 2.0 and so on.

在该实现方式中,该装置还包括:In this implementation, the device also includes:

配置信息发送模块1002,用于将移动终端的配置信息发送给服务器。例如,可以在移动终端启动NFC标签脚本商店应用时,将移动终端的配置信息发送给服务器。The configuration information sending module 1002 is configured to send the configuration information of the mobile terminal to the server. For example, when the mobile terminal starts the NFC tag script store application, the configuration information of the mobile terminal can be sent to the server.

其中,终端配置条件可以为软件配置条件、硬件配置条件和网络配置条件中的一种或多种,其中,软件配置条件包括但不限于移动终端是否安装待执行应用(即NFC标签脚本中的命令将会调用的应用程序),应用版本是否支持这些脚本中的命令,网络配置条件例如设备运营商的情况等。Wherein, terminal configuration condition can be one or more in software configuration condition, hardware configuration condition and network configuration condition, wherein, software configuration condition includes but not limited to whether mobile terminal installs application to be executed (namely the command in the NFC tag script The application that will be called), whether the application version supports the commands in these scripts, network configuration conditions such as the situation of the device operator, etc.

在本实施例中,该装置还包括:In this embodiment, the device also includes:

检测模块1003,用于检测移动终端的配置信息是否符合第一NFC标签脚本中的终端配置条件;Detection module 1003, configured to detect whether the configuration information of the mobile terminal meets the terminal configuration conditions in the first NFC tag script;

提示模块1004,用于当移动终端的配置信息不符合第一NFC标签脚本中的终端配置条件时,提示用户第一NFC标签脚本不适用于移动终端。The prompt module 1004 is configured to prompt the user that the first NFC tag script is not applicable to the mobile terminal when the configuration information of the mobile terminal does not meet the terminal configuration conditions in the first NFC tag script.

在本实施例的一种可能的实现方式中,提示模块1004还用于输出是否更新或下载指定应用程序的操作选项,该指定应用程序为第一NFC标签脚本中的命令需要调用的应用程序。In a possible implementation of this embodiment, the prompting module 1004 is further configured to output an operation option of whether to update or download a specified application, where the specified application is an application to be invoked by the command in the first NFC tag script.

命令接收模块1005,用于接收用户的更新命令或下载命令;A command receiving module 1005, configured to receive a user's update command or download command;

执行模块1006,用于根据指定应用程序的包名,更新或下载指定应用程序。Executing module 1006, configured to update or download the specified application program according to the package name of the specified application program.

其中,指定应用程序为所述第一NFC标签脚本中的命令需要调用的应用程序。Wherein, the specified application program is the application program that needs to be invoked by the command in the first NFC tag script.

容易知道,包名为应用程序的唯一标识,不同的应用程序具有不同的包名,通过该包名可以链接到应用超市中的相应资源并进行下载。It is easy to know that the package name is the unique identifier of the application program, and different application programs have different package names, through which the corresponding resources in the application supermarket can be linked to and downloaded.

在本实施例的另一实现方式中,提示用户第一NFC标签脚本不适用于移动终端(主要是移动终端的配置信息不符合前述软件配置信息时),可以仅输出表明第一NFC标签脚本不适用于该移动终端的信息。In another implementation of this embodiment, the user is prompted that the first NFC tag script is not applicable to the mobile terminal (mainly when the configuration information of the mobile terminal does not conform to the aforementioned software configuration information), and it can only be output to indicate that the first NFC tag script is not applicable. Information Applicable to the Mobile Terminal.

可选地,该装置还包括:Optionally, the device also includes:

脚本上传模块1007,用于向服务器上传NFC标签脚本,以使服务器发布上传的NFC标签脚本。The script uploading module 1007 is used for uploading the NFC tag script to the server, so that the server publishes the uploaded NFC tag script.

可选地,该装置还包括:Optionally, the device also includes:

接收模块1008,用于接收用户输入的讨论信息;A receiving module 1008, configured to receive discussion information input by the user;

讨论信息发送模块1009,用于将讨论信息发送给服务器,以使所述服务器发布所述讨论信息。The discussion information sending module 1009 is configured to send the discussion information to the server, so that the server publishes the discussion information.

本公开通过获取NFC标签脚本并将其发布,使得用户可以根据需要下载NFC标签脚本,进而可以充分挖掘NFC标签的使用潜力。并且从另一移动终端设备获取NFC标签脚本,使得用户可以共享各自的NFC标签脚本的内容,进而可以充分挖掘NFC标签的使用潜力。The present disclosure enables users to download NFC tag scripts as required by acquiring and publishing the NFC tag scripts, thereby fully exploiting the use potential of NFC tags. In addition, the NFC tag script is obtained from another mobile terminal device, so that users can share the content of their respective NFC tag scripts, thereby fully exploiting the use potential of the NFC tag.

图11是本公开实施例中移动终端(可以是请求方终端或者相关联终端)结构示意图。参见图11,该移动终端可以用于实施上述实施例中提供的方法。优选的:Fig. 11 is a schematic structural diagram of a mobile terminal (which may be a requester terminal or an associated terminal) in an embodiment of the present disclosure. Referring to FIG. 11 , the mobile terminal can be used to implement the methods provided in the foregoing embodiments. Preferred:

移动终端800可以包括通信单元110、包括有一个或一个以上计算机可读存储介质的存储器120、输入单元130、显示单元140、传感器150、音频电路160、WIFI(WirelessFidelity,无线保真)模块170、包括有一个或者一个以上处理核心的处理器180、以及电源190等部件。本领域技术人员可以理解,图中示出的移动终端结构并不构成对移动终端的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:The mobile terminal 800 may include a communication unit 110, a memory 120 including one or more computer-readable storage media, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a WIFI (Wireless Fidelity, wireless fidelity) module 170, It includes a processor 180 with one or more processing cores, a power supply 190 and other components. Those skilled in the art can understand that the structure of the mobile terminal shown in the figure does not constitute a limitation on the mobile terminal, and may include more or less components than those shown in the figure, or combine certain components, or arrange different components. in:

通信单元110可用于收发信息或通话过程中,信号的接收和发送,该通信单元110可以为RF(RadioFrequency,射频)电路、路由器、调制解调器、等网络通信设备。特别地,当通信单元110为RF电路时,将基站的下行信息接收后,交由一个或者一个以上处理器180处理;另外,将涉及上行的数据发送给基站。通常,作为通信单元的RF电路包括但不限于天线、至少一个放大器、调谐器、一个或多个振荡器、用户身份模块(SIM)卡、收发信机、耦合器、LNA(LowNoiseAmplifier,低噪声放大器)、双工器等。此外,通信单元110还可以通过无线通信与网络和其他设备通信。所述无线通信可以使用任一通信标准或协议,包括但不限于GSM(GlobalSystemofMobilecommunication,全球移动通讯系统)、GPRS(GeneralPacketRadioService,通用分组无线服务)、CDMA(CodeDivisionMultipleAccess,码分多址)、WCDMA(WidebandCodeDivisionMultipleAccess,宽带码分多址)、LTE(LongTermEvolution,长期演进)、电子邮件、SMS(ShortMessagingService,短消息服务)等。存储器120可用于存储软件程序以及模块,处理器180通过运行存储在存储器120的软件程序以及模块,从而执行各种功能应用以及数据处理。存储器120可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据移动终端800的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器120可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器120还可以包括存储器控制器,以提供处理器180和输入单元130对存储器120的访问。The communication unit 110 can be used for sending and receiving information or receiving and sending signals during a call. The communication unit 110 can be an RF (Radio Frequency, radio frequency) circuit, router, modem, and other network communication equipment. In particular, when the communication unit 110 is an RF circuit, after receiving the downlink information of the base station, it is processed by one or more processors 180; in addition, the uplink data is sent to the base station. Typically, an RF circuit as a communication unit includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (LowNoiseAmplifier, low noise amplifier) ), duplexer, etc. In addition, the communication unit 110 can also communicate with a network and other devices through wireless communication. The wireless communication can use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication, Global System for Mobile Communications), GPRS (General Packet Radio Service, General Packet Radio Service), CDMA (Code Division Multiple Access, Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access , wideband code division multiple access), LTE (LongTermEvolution, long-term evolution), e-mail, SMS (ShortMessagingService, short message service), etc. The memory 120 can be used to store software programs and modules, and the processor 180 executes various functional applications and data processing by running the software programs and modules stored in the memory 120 . The memory 120 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as a sound playback function, an image playback function, etc.); Data created using the mobile terminal 800 (such as audio data, phonebook, etc.) and the like. In addition, the memory 120 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices. Correspondingly, the memory 120 may further include a memory controller to provide access to the memory 120 by the processor 180 and the input unit 130 .

输入单元130可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。优选地,输入单元130可包括触敏表面131以及其他输入设备132。触敏表面131,也称为触摸显示屏或者触控板,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触敏表面131上或在触敏表面131附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触敏表面131可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器180,并能接收处理器180发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触敏表面131。除了触敏表面131,输入单元130还可以包括其他输入设备132。优选地,其他输入设备132可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 130 can be used to receive input numbers or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. Preferably, the input unit 130 may include a touch-sensitive surface 131 and other input devices 132 . The touch-sensitive surface 131, also referred to as a touch screen or a touchpad, can collect touch operations of the user on or near it (for example, the user uses any suitable object or accessory such as a finger or a stylus on the touch-sensitive surface 131 or on the operation near the touch-sensitive surface 131), and drive the corresponding connection device according to the preset program. Optionally, the touch-sensitive surface 131 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to the to the processor 180, and can receive and execute commands sent by the processor 180. In addition, the touch-sensitive surface 131 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch-sensitive surface 131 , the input unit 130 may also include other input devices 132 . Preferably, other input devices 132 may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, joysticks, and the like.

显示单元140可用于显示由用户输入的信息或提供给用户的信息以及移动终端800的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示单元140可包括显示面板141,可选的,可以采用LCD(LiquidCrystalDisplay,液晶显示器)、OLED(OrganicLight-EmittingDiode,有机发光二极管)等形式来配置显示面板141。进一步的,触敏表面131可覆盖显示面板141,当触敏表面131检测到在其上或附近的触摸操作后,传送给处理器180以确定触摸事件的类型,随后处理器180根据触摸事件的类型在显示面板141上提供相应的视觉输出。虽然在图11中,触敏表面131与显示面板141是作为两个独立的部件来实现输入和输入功能,但是在某些实施例中,可以将触敏表面131与显示面板141集成而实现输入和输出功能。The display unit 140 can be used to display information input by or provided to the user and various graphical user interfaces of the mobile terminal 800, which can be composed of graphics, text, icons, videos and any combination thereof. The display unit 140 may include a display panel 141 , and optionally, the display panel 141 may be configured in the form of an LCD (Liquid Crystal Display, liquid crystal display), an OLED (Organic Light-Emitting Diode, organic light-emitting diode), or the like. Further, the touch-sensitive surface 131 may cover the display panel 141, and when the touch-sensitive surface 131 detects a touch operation on or near it, the touch operation is sent to the processor 180 to determine the type of the touch event, and then the processor 180 determines the type of the touch event according to the type of the touch event. The type provides a corresponding visual output on the display panel 141 . Although in FIG. 11 , the touch-sensitive surface 131 and the display panel 141 are used as two independent components to realize input and input functions, in some embodiments, the touch-sensitive surface 131 and the display panel 141 can be integrated to realize input. and output functions.

移动终端800还可包括至少一种传感器150,比如光传感器、运动传感器以及其他传感器。光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板141的亮度,接近传感器可在移动终端800移动到耳边时,关闭显示面板141和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于移动终端800还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The mobile terminal 800 may also include at least one sensor 150, such as a light sensor, a motion sensor, and other sensors. The light sensor can include an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 141 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 141 and/or when the mobile terminal 800 moves to the ear. backlight. As a kind of motion sensor, the gravitational acceleration sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is stationary, and can be used for applications that recognize the attitude of mobile phones (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration), vibration recognition-related functions (such as pedometer, tap), etc.; as for other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. that can be configured on the mobile terminal 800, here No longer.

音频电路160、扬声器161,传声器162可提供用户与移动终端800之间的音频接口。音频电路160可将接收到的音频数据转换后的电信号,传输到扬声器161,由扬声器161转换为声音信号输出;另一方面,传声器162将收集的声音信号转换为电信号,由音频电路160接收后转换为音频数据,再将音频数据输出处理器180处理后,经RF电路110以发送给比如另一终端设备,或者将音频数据输出至存储器120以便进一步处理。音频电路160还可能包括耳塞插孔,以提供外设耳机与移动终端800的通信。The audio circuit 160 , the speaker 161 and the microphone 162 can provide an audio interface between the user and the mobile terminal 800 . The audio circuit 160 can transmit the electrical signal converted from the received audio data to the loudspeaker 161, and the loudspeaker 161 converts it into an audio signal output; After being received, it is converted into audio data, and then the audio data is processed by the output processor 180, and then sent to another terminal device through the RF circuit 110, or the audio data is output to the memory 120 for further processing. The audio circuit 160 may also include an earphone jack to provide communication between an external earphone and the mobile terminal 800 .

为了实现无线通信,该移动终端上可以配置有无线通信单元170,该无线通信单元170可以为WIFI模块。WIFI属于短距离无线传输技术,移动终端800通过无线通信单元170可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图中示出了无线通信单元170,但是可以理解的是,其并不属于移动终端800的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。In order to realize wireless communication, the mobile terminal may be configured with a wireless communication unit 170, and the wireless communication unit 170 may be a WIFI module. WIFI is a short-distance wireless transmission technology. The mobile terminal 800 can help users send and receive emails, browse web pages, and access streaming media through the wireless communication unit 170. It provides users with wireless broadband Internet access. Although the wireless communication unit 170 is shown in the figure, it can be understood that it is not an essential component of the mobile terminal 800 and can be completely omitted as required without changing the essence of the invention.

处理器180是移动终端800的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器120内的软件程序和/或模块,以及调用存储在存储器120内的数据,执行终端设备800的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器180可包括一个或多个处理核心;优选的,处理器180可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器180中。The processor 180 is the control center of the mobile terminal 800, and uses various interfaces and lines to connect various parts of the entire mobile phone, by running or executing software programs and/or modules stored in the memory 120, and calling data stored in the memory 120 , execute various functions and process data of the terminal device 800, so as to monitor the mobile phone as a whole. Optionally, the processor 180 may include one or more processing cores; preferably, the processor 180 may integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems, user interfaces, and application programs, etc. , the modem processor mainly handles wireless communications. It can be understood that the foregoing modem processor may not be integrated into the processor 180 .

移动终端800还包括给各个部件供电的电源190(比如电池),优选的,电源可以通过电源管理系统与处理器180逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源190还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。The mobile terminal 800 also includes a power supply 190 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 180 through the power management system, so that functions such as charging, discharging, and power consumption management can be realized through the power management system. . The power supply 190 may also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components.

尽管未示出,移动终端800还可以包括摄像头、蓝牙模块等,在此不再赘述。在本实施例中,移动终端还包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行,该一个或者一个以上程序包含用于进行以下操作的指令:Although not shown, the mobile terminal 800 may also include a camera, a Bluetooth module, etc., which will not be repeated here. In this embodiment, the mobile terminal further includes a memory, and one or more programs, wherein one or more programs are stored in the memory, and are configured to be executed by one or more processors, and the one or more programs A program contains instructions for:

发送脚本下载请求,脚本下载请求用于请求第一NFC标签脚本;Send a script download request, and the script download request is used to request the first NFC tag script;

下载第一NFC标签脚本。Download the first NFC tag script.

其中,第一NFC标签脚本包括一个或多个用于写入NFC标签的命令。Wherein, the first NFC tag script includes one or more commands for writing into the NFC tag.

可选地,第一NFC标签脚本还包括执行所述第一NFC标签脚本中的命令所需的终端配置条件。Optionally, the first NFC tag script further includes terminal configuration conditions required for executing commands in the first NFC tag script.

可选地,该一个或者一个以上程序还包含用于进行以下操作的指令:Optionally, the one or more programs also include instructions for:

检测移动终端的配置信息是否符合第一NFC标签脚本中的终端配置条件;Detect whether the configuration information of the mobile terminal meets the terminal configuration condition in the first NFC tag script;

当移动终端的配置信息不符合第一NFC标签脚本中的终端配置条件时,提示用户第一NFC标签脚本不适用于移动终端。When the configuration information of the mobile terminal does not meet the terminal configuration conditions in the first NFC tag script, the user is prompted that the first NFC tag script is not applicable to the mobile terminal.

可选地,该一个或者一个以上程序还包含用于进行以下操作的指令:Optionally, the one or more programs also include instructions for:

输出是否更新或下载指定应用程序的操作选项,指定应用程序为第一NFC标签脚本中的命令需要调用的应用程序。Output whether to update or download the operation option of the specified application program, and the specified application program is the application program that needs to be called by the command in the first NFC tag script.

可选地,该一个或者一个以上程序还包含用于进行以下操作的指令:Optionally, the one or more programs also include instructions for:

接收用户的更新命令或下载命令;Receive the user's update command or download command;

根据指定应用程序的包名,更新或下载指定应用程序。Update or download the specified application according to the package name of the specified application.

可选地,该一个或者一个以上程序还包含用于进行以下操作的指令:Optionally, the one or more programs also include instructions for:

从另一移动终端获取第一NFC标签脚本。Obtain the first NFC tag script from another mobile terminal.

可选地,该一个或者一个以上程序还包含用于进行以下操作的指令:Optionally, the one or more programs also include instructions for:

向服务器上传NFC标签脚本,以使服务器发布上传的NFC标签脚本。Upload the NFC tag script to the server, so that the server publishes the uploaded NFC tag script.

可选地,该一个或者一个以上程序还包含用于进行以下操作的指令:Optionally, the one or more programs also include instructions for:

将移动终端的配置信息发送给服务器。Send the configuration information of the mobile terminal to the server.

可选地,该一个或者一个以上程序还包含用于进行以下操作的指令:Optionally, the one or more programs also include instructions for:

接收用户输入的讨论信息;Receive discussion information input by users;

将讨论信息发送给服务器,以使服务器发布所述讨论信息。The discussion information is sent to the server, so that the server publishes the discussion information.

本公开通过获取NFC标签脚本并将其发布,使得用户可以根据需要下载NFC标签脚本,进而可以充分挖掘NFC标签的使用潜力。The present disclosure enables users to download NFC tag scripts as required by acquiring and publishing the NFC tag scripts, thereby fully exploiting the use potential of NFC tags.

图12是本公开实施例中提供的服务器的结构示意图。该服务器1900可因配置或性能不同而产生比较大的差异,可以包括一个或一个以上中央处理器(centralprocessingunits,CPU)1922(例如,一个或一个以上处理器)和存储器1932,一个或一个以上存储应用程序1942或数据1944的存储介质1930(例如一个或一个以上海量存储设备)。其中,存储器1932和存储介质1930可以是短暂存储或持久存储。存储在存储介质1930的程序可以包括一个或一个以上模块(图示没标出),每个模块可以包括对服务器中的一系列指令操作。更进一步地,中央处理器1922可以设置为与存储介质1930通信,在服务器1900上执行存储介质1930中的一系列指令操作。Fig. 12 is a schematic structural diagram of a server provided in an embodiment of the present disclosure. The server 1900 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (central processing units, CPU) 1922 (for example, one or more processors) and memory 1932, one or more storage A storage medium 1930 for applications 1942 or data 1944 (eg, one or more mass storage devices). Wherein, the memory 1932 and the storage medium 1930 may be temporary storage or persistent storage. The program stored in the storage medium 1930 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the server. Further, the central processing unit 1922 may be configured to communicate with the storage medium 1930 , and execute a series of instruction operations in the storage medium 1930 on the server 1900 .

服务器1900还可以包括一个或一个以上电源1926,一个或一个以上有线或无线网络接口1950,一个或一个以上输入输出接口1958,一个或一个以上键盘1956,和/或,一个或一个以上操作系统1941,例如WindowsServerTM,MacOSXTM,UnixTM,LinuxTM,FreeBSDTM等等。Server 1900 may also include one or more power supplies 1926, one or more wired or wireless network interfaces 1950, one or more input and output interfaces 1958, one or more keyboards 1956, and/or, one or more operating systems 1941 , such as WindowsServerTM, MacOSXTM, UnixTM, LinuxTM, FreeBSDTM and so on.

在本实施例中,服务器还包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行,该一个或者一个以上程序包含用于进行以下操作的指令:In this embodiment, the server also includes a memory, and one or more programs, wherein one or more programs are stored in the memory, and are configured to be executed by one or more processors, and the one or more programs Contains instructions for:

获取NFC标签脚本;Get NFC tag script;

发布NFC标签脚本,以供用户下载使用。Release the NFC tag script for users to download and use.

其中,NFC标签脚本包括一个或多个用于写入NFC标签的命令。Wherein, the NFC tag script includes one or more commands for writing the NFC tag.

可选地,该一个或者一个以上程序还包含用于进行以下操作的指令:Optionally, the one or more programs also include instructions for:

接收移动终端发送的脚本下载请求,脚本下载请求用于请求从NFC标签商店下载第一NFC标签脚本;Receive a script download request sent by the mobile terminal, and the script download request is used to request to download the first NFC tag script from the NFC tag store;

向移动终端发送第一NFC标签脚本。Send the first NFC tag script to the mobile terminal.

其中,第一NFC标签脚本还包括执行第一NFC标签脚本中的命令所需的终端配置条件。Wherein, the first NFC tag script also includes terminal configuration conditions required for executing the commands in the first NFC tag script.

可选地,该一个或者一个以上程序还包含用于进行以下操作的指令:Optionally, the one or more programs also include instructions for:

获取移动终端的配置信息;Obtain configuration information of the mobile terminal;

判断移动终端的配置信息是否满足第一NFC标签脚本中的终端配置条件;Judging whether the configuration information of the mobile terminal satisfies the terminal configuration condition in the first NFC tag script;

当移动终端的配置信息不满足第一NFC标签脚本中的终端配置条件时,提示用户第一NFC标签脚本不适用于移动终端。When the configuration information of the mobile terminal does not satisfy the terminal configuration condition in the first NFC tag script, the user is prompted that the first NFC tag script is not applicable to the mobile terminal.

可选地,该一个或者一个以上程序还包含用于进行以下操作的指令:Optionally, the one or more programs also include instructions for:

获取移动终端的配置信息;Obtain configuration information of the mobile terminal;

屏蔽移动终端的配置信息不满足的终端配置条件所属的NFC标签。Shield the NFC tags to which the configuration information of the mobile terminal does not meet the terminal configuration conditions.

可选地,该一个或者一个以上程序还包含用于进行以下操作的指令:Optionally, the one or more programs also include instructions for:

接收用户上传的NFC标签脚本。Receive the NFC tag script uploaded by the user.

可选地,该一个或者一个以上程序还包含用于进行以下操作的指令:Optionally, the one or more programs also include instructions for:

对获取到的NFC标签脚本进行预处理,预处理包括安全检测、去重处理和分类索引中的一种或多种。The acquired NFC tag script is preprocessed, and the preprocessing includes one or more of security detection, deduplication processing, and classification index.

可选地,该一个或者一个以上程序还包含用于进行以下操作的指令:Optionally, the one or more programs also include instructions for:

接收讨论信息的发表请求;Receive requests for publication of discussion information;

发布讨论信息。Post a discussion message.

本公开通过获取NFC标签脚本并将其发布,使得用户可以根据需要下载NFC标签脚本,进而可以充分挖掘NFC标签的使用潜力。The present disclosure enables users to download NFC tag scripts as required by acquiring and publishing the NFC tag scripts, thereby fully exploiting the use potential of NFC tags.

此外,典型地,本公开所述的移动终端可为各种手持终端设备,例如手机、个人数字助理(PDA)等,因此本公开的保护范围不应限定为某种特定类型的移动终端。In addition, typically, the mobile terminals described in the present disclosure can be various handheld terminal devices, such as mobile phones, personal digital assistants (PDAs), etc., therefore, the protection scope of the present disclosure should not be limited to a specific type of mobile terminals.

此外,根据本公开的方法还可以被实现为由CPU执行的计算机程序。在该计算机程序被CPU执行时,执行本公开的方法中限定的上述功能。Furthermore, the method according to the present disclosure can also be implemented as a computer program executed by a CPU. When the computer program is executed by the CPU, the above-mentioned functions defined in the method of the present disclosure are performed.

此外,上述方法步骤以及系统单元也可以利用控制器以及用于存储使得控制器实现上述步骤或单元功能的计算机程序的计算机可读存储设备实现。In addition, the above-mentioned method steps and system units can also be implemented by using a controller and a computer-readable storage device for storing a computer program that enables the controller to realize the functions of the above-mentioned steps or units.

此外,应该明白的是,本文所述的计算机可读存储设备(例如,存储器)可以是易失性存储器或非易失性存储器,或者可以包括易失性存储器和非易失性存储器两者。作为例子而非限制性的,非易失性存储器可以包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦写可编程ROM(EEPROM)或快闪存储器。易失性存储器可以包括随机存取存储器(RAM),该RAM可以充当外部高速缓存存储器。作为例子而非限制性的,RAM可以以多种形式获得,比如同步RAM(DRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据速率SDRAM(DDRSDRAM)、增强SDRAM(ESDRAM)、同步链路DRAM(SLDRAM)以及直接RambusRAM(DRRAM)。所公开的方面的存储设备意在包括但不限于这些和其它合适类型的存储器。In addition, it should be appreciated that the computer readable storage devices (eg, memories) described herein can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory. By way of example and not limitation, nonvolatile memory can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory memory. Volatile memory can include random access memory (RAM), which can act as external cache memory. By way of example and not limitation, RAM is available in various forms such as Synchronous RAM (DRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM) and Direct RambusRAM (DRRAM). Storage devices of the disclosed aspects are intended to include, but are not limited to, these and other suitable types of memory.

本领域技术人员还将明白的是,结合这里的公开所描述的各种示例性逻辑块、模块、电路和算法步骤可以被实现为电子硬件、计算机软件或两者的组合。为了清楚地说明硬件和软件的这种可互换性,已经就各种示意性组件、方块、模块、电路和步骤的功能对其进行了一般性的描述。这种功能是被实现为软件还是被实现为硬件取决于具体应用以及施加给整个系统的设计约束。本领域技术人员可以针对每种具体应用以各种方式来实现所述的功能,但是这种实现决定不应被解释为导致脱离本公开的范围。Those of skill would also appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described generally in terms of their functionality. Whether such functionality is implemented as software or as hardware depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present disclosure.

结合这里的公开所描述的各种示例性逻辑块、模块和电路可以利用被设计成用于执行这里所述功能的下列部件来实现或执行:通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或其它可编程逻辑器件、分立门或晶体管逻辑、分立的硬件组件或者这些部件的任何组合。通用处理器可以是微处理器,但是可替换地,处理器可以是任何传统处理器、控制器、微控制器或状态机。处理器也可以被实现为计算设备的组合,例如,DSP和微处理器的组合、多个微处理器、一个或多个微处理器结合DSP核、或任何其它这种配置。The various exemplary logical blocks, modules, and circuits described in connection with the disclosure herein can be implemented or performed using the following components designed to perform the functions described herein: general-purpose processors, digital signal processors (DSPs), special-purpose Integrated circuits (ASICs), field programmable gate arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic, discrete hardware components, or any combination of these. A general-purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, multiple microprocessors, one or more microprocessors in conjunction with a DSP core, or any other such configuration.

结合这里的公开所描述的方法或算法的步骤可以直接包含在硬件中、由处理器执行的软件模块中或这两者的组合中。软件模块可以驻留在RAM存储器、快闪存储器、ROM存储器、EPROM存储器、EEPROM存储器、寄存器、硬盘、可移动盘、CD-ROM、或本领域已知的任何其它形式的存储介质中。示例性的存储介质被耦合到处理器,使得处理器能够从该存储介质中读取信息或向该存储介质写入信息。在一个替换方案中,所述存储介质可以与处理器集成在一起。处理器和存储介质可以驻留在ASIC中。ASIC可以驻留在用户终端中。在一个替换方案中,处理器和存储介质可以作为分立组件驻留在用户终端中。The steps of a method or algorithm described in connection with the disclosure herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of both. A software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. In an alternative, the storage medium may be integrated with the processor. The processor and storage medium can reside in an ASIC. The ASIC may reside in a user terminal. In an alternative, the processor and storage medium may reside as discrete components in the user terminal.

在一个或多个示例性设计中,所述功能可以在硬件、软件、固件或其任意组合中实现。如果在软件中实现,则可以将所述功能作为一个或多个指令或代码存储在计算机可读介质上或通过计算机可读介质来传送。计算机可读介质包括计算机存储介质和通信介质,该通信介质包括有助于将计算机程序从一个位置传送到另一个位置的任何介质。存储介质可以是能够被通用或专用计算机访问的任何可用介质。作为例子而非限制性的,该计算机可读介质可以包括RAM、ROM、EEPROM、CD-ROM或其它光盘存储设备、磁盘存储设备或其它磁性存储设备,或者是可以用于携带或存储形式为指令或数据结构的所需程序代码并且能够被通用或专用计算机或者通用或专用处理器访问的任何其它介质。此外,任何连接都可以适当地称为计算机可读介质。例如,如果使用同轴线缆、光纤线缆、双绞线、数字用户线路(DSL)或诸如红外线、无线电和微波的无线技术来从网站、服务器或其它远程源发送软件,则上述同轴线缆、光纤线缆、双绞线、DSL或诸如红外先、无线电和微波的无线技术均包括在介质的定义。如这里所使用的,磁盘和光盘包括压缩盘(CD)、激光盘、光盘、数字多功能盘(DVD)、软盘、蓝光盘,其中磁盘通常磁性地再现数据,而光盘利用激光光学地再现数据。上述内容的组合也应当包括在计算机可读介质的范围内。In one or more exemplary designs, the functions described may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. Storage media may be any available media that can be accessed by a general purpose or special purpose computer. By way of example and not limitation, the computer readable medium may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage device, magnetic disk storage device or other magnetic storage device, or may be used to carry or store instructions in any other medium that can be accessed by a general purpose or special purpose computer or a general purpose or special purpose processor, and the required program code or data structure. Also, any connection is properly termed a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable Cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of media. Disk and disc, as used herein, includes compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk, blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers . Combinations of the above should also be included within the scope of computer-readable media.

尽管前面公开的内容示出了本公开的示例性实施例,但是应当注意,在不背离权利要求限定的本公开的范围的前提下,可以进行多种改变和修改。根据这里描述的公开实施例的方法权利要求的功能、步骤和/或动作不需以任何特定顺序执行。此外,尽管本公开的元素可以以个体形式描述或要求,但是也可以设想多个,除非明确限制为单数。While the foregoing disclosure shows exemplary embodiments of the present disclosure, it should be noted that various changes and modifications can be made without departing from the scope of the present disclosure as defined in the claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosure may be described or claimed in individual form, multiples are also contemplated unless expressly limited to the singular.

以上所述的具体实施方式,对本公开的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本公开的具体实施方式而已,并不用于限定本公开的保护范围,凡在本公开的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本公开的保护范围之内。The specific implementations described above further describe the purpose, technical solutions and beneficial effects of the present disclosure in detail. It should be understood that the above descriptions are only specific implementations of the present disclosure and are not intended to limit the scope of the present disclosure Protection scope, within the spirit and principles of the present disclosure, any modification, equivalent replacement, improvement, etc., shall be included in the protection scope of the present disclosure.

Claims (32)

1.一种近场通信标签脚本的提供方法,其特征在于,所述方法包括:1. A method for providing a near field communication tag script, characterized in that the method comprises: 获取近场通信标签脚本,所述近场通信标签脚本包括一个或多个用于写入近场通信标签中的命令;Obtaining a near field communication tag script, the near field communication tag script including one or more commands for writing into the near field communication tag; 发布所述近场通信标签脚本,用户根据需要选择性的下载适合自己的所述近场通信标签脚本,将下载的所述近场通信标签脚本写入所述近场通信标签中,支持近场通信功能的终端设备通过读取并执行所述近场通信标签中的所述命令完成各种操作。Publish the near field communication tag script, the user selectively downloads the near field communication tag script suitable for himself according to the needs, writes the downloaded near field communication tag script into the near field communication tag, supports near field communication The terminal device with the communication function completes various operations by reading and executing the commands in the near field communication tag. 2.根据权利要求1所述的方法,其特征在于,所述方法还包括:2. The method according to claim 1, characterized in that the method further comprises: 接收移动终端发送的脚本下载请求,所述脚本下载请求用于请求第一近场通信标签脚本;Receive a script download request sent by the mobile terminal, and the script download request is used to request the first NFC tag script; 向所述移动终端发送所述第一近场通信标签脚本。sending the first NFC tag script to the mobile terminal. 3.根据权利要求2所述的方法,其特征在于,所述第一近场通信标签脚本还包括执行所述第一近场通信标签脚本中的命令所需的终端配置条件。3 . The method according to claim 2 , wherein the first NFC tag script further includes terminal configuration conditions required for executing commands in the first NFC tag script. 4 . 4.根据权利要求3所述的方法,其特征在于,所述方法还包括:4. method according to claim 3, is characterized in that, described method also comprises: 获取所述移动终端的配置信息;Obtain configuration information of the mobile terminal; 判断所述移动终端的配置信息是否满足所述第一近场通信标签脚本中的所述终端配置条件;judging whether the configuration information of the mobile terminal satisfies the terminal configuration condition in the first NFC tag script; 当所述移动终端的配置信息不满足所述第一近场通信标签脚本中的所述终端配置条件时,提示用户所述第一近场通信标签脚本不适用于所述移动终端。When the configuration information of the mobile terminal does not satisfy the terminal configuration condition in the first near field communication tag script, prompting the user that the first near field communication tag script is not applicable to the mobile terminal. 5.根据权利要求1所述的方法,其特征在于,所述方法还包括:5. The method according to claim 1, wherein the method further comprises: 获取移动终端的配置信息;Obtain configuration information of the mobile terminal; 屏蔽所述移动终端的配置信息不满足的终端配置条件所属的近场通信标签。Shielding the near field communication tag to which the configuration information of the mobile terminal does not satisfy the terminal configuration condition. 6.根据权利要求1-5任一项所述的方法,其特征在于,所述获取近场通信标签脚本,采用如下方式:6. The method according to any one of claims 1-5, wherein the acquisition of the NFC tag script is performed in the following manner: 接收用户上传的所述近场通信标签脚本。The near field communication tag script uploaded by the user is received. 7.根据权利要求1-5任一项所述的方法,其特征在于,所述方法还包括:7. The method according to any one of claims 1-5, characterized in that the method further comprises: 对获取到的所述近场通信标签脚本进行预处理,所述预处理包括安全检测、去重处理和分类索引中的一种或多种。Perform preprocessing on the acquired near field communication tag script, and the preprocessing includes one or more of security detection, deduplication processing, and classification indexing. 8.根据权利要求1-5任一项所述的方法,其特征在于,所述方法还包括:8. The method according to any one of claims 1-5, wherein the method further comprises: 接收讨论信息的发表请求;Receive requests for publication of discussion information; 发布所述讨论信息。Post said discussion information. 9.一种近场通信标签脚本的获取方法,其特征在于,所述方法包括:9. A method for acquiring a near-field communication tag script, characterized in that the method comprises: 发送脚本下载请求,所述脚本下载请求用于请求第一近场通信标签脚本,所述第一近场通信标签脚本包括一个或多个用于写入近场通信标签的命令;Sending a script download request, the script download request is used to request a first near field communication tag script, and the first near field communication tag script includes one or more commands for writing into the near field communication tag; 下载所述第一近场通信标签脚本;downloading the first NFC tag script; 将下载的所述第一近场通信标签脚本包括的所述命令写入所述近场通信标签中,支持近场通信功能的终端设备通过读取并执行所述近场通信标签中的所述命令完成各种操作。Write the command included in the downloaded first near field communication tag script into the near field communication tag, and the terminal device supporting the near field communication function reads and executes the command in the near field communication tag commands to perform various operations. 10.根据权利要求9所述的方法,其特征在于,所述近场通信标签脚本还包括执行所述第一近场通信标签脚本中的命令所需的终端配置条件。10 . The method according to claim 9 , wherein the near field communication tag script further includes terminal configuration conditions required for executing the commands in the first near field communication tag script. 11 . 11.根据权利要求10所述的方法,其特征在于,所述方法还包括:11. The method of claim 10, further comprising: 检测移动终端的配置信息是否符合所述第一近场通信标签脚本中的所述终端配置条件;Detecting whether the configuration information of the mobile terminal complies with the terminal configuration condition in the first NFC tag script; 当所述移动终端的配置信息不符合所述第一近场通信标签脚本中的所述终端配置条件时,提示用户所述第一近场通信标签脚本不适用于所述移动终端。When the configuration information of the mobile terminal does not meet the terminal configuration condition in the first near field communication tag script, prompting the user that the first near field communication tag script is not applicable to the mobile terminal. 12.根据权利要求11所述的方法,其特征在于,所述提示用户所述第一近场通信标签脚本不适用于所述移动终端,采用如下方式:12. The method according to claim 11, wherein the prompting the user that the first NFC label script is not applicable to the mobile terminal is performed in the following manner: 输出是否更新或下载指定应用程序的操作选项,所述指定应用程序为所述第一近场通信标签脚本中的命令需要调用的应用程序。An operation option of whether to update or download a specified application program is output, and the specified application program is an application program that needs to be invoked by a command in the first NFC tag script. 13.根据权利要求12所述的方法,其特征在于,所述方法还包括:13. The method of claim 12, further comprising: 接收用户的更新命令或下载命令;Receive the user's update command or download command; 根据所述指定应用程序的包名,更新或下载所述指定应用程序。The specified application is updated or downloaded according to the package name of the specified application. 14.根据权利要求9-13任一项所述的方法,其特征在于,所述方法还包括:14. The method according to any one of claims 9-13, wherein the method further comprises: 向服务器上传近场通信标签脚本,以使所述服务器发布上传的所述近场通信标签脚本。uploading the near field communication tag script to the server, so that the server publishes the uploaded near field communication tag script. 15.根据权利要求9-13任一项所述的方法,其特征在于,所述方法还包括:15. The method according to any one of claims 9-13, further comprising: 将所述移动终端的配置信息发送给服务器。Send the configuration information of the mobile terminal to the server. 16.根据权利要求9-13任一项所述的方法,其特征在于,所述方法还包括:16. The method according to any one of claims 9-13, wherein the method further comprises: 接收用户输入的讨论信息;Receive discussion information input by users; 将所述讨论信息发送给服务器,以使所述服务器发布所述讨论信息。Send the discussion information to a server, so that the server publishes the discussion information. 17.一种近场通信标签脚本的提供装置,其特征在于,所述装置包括:17. A device for providing a near field communication label script, characterized in that the device comprises: 获取模块,用于获取近场通信标签脚本,所述近场通信标签脚本包括一个或多个用于写入近场通信标签中的命令;An acquisition module, configured to acquire a near field communication tag script, the near field communication tag script including one or more commands for writing into the near field communication tag; 发布模块,用于发布所述近场通信标签脚本,用户根据需要选择性的下载适合自己的所述近场通信标签脚本,将下载的所述近场通信标签脚本写入所述近场通信标签中,支持近场通信功能的终端设备通过读取并执行所述近场通信标签中的所述命令完成各种操作。A publishing module, configured to publish the near field communication tag script, the user selectively downloads the near field communication tag script suitable for himself according to needs, and writes the downloaded near field communication tag script into the near field communication tag In, the terminal device supporting the near field communication function completes various operations by reading and executing the commands in the near field communication tag. 18.根据权利要求17所述的装置,其特征在于,所述装置还包括:18. The device according to claim 17, further comprising: 接收模块,用于接收移动终端发送的脚本下载请求,所述脚本下载请求用于请求第一近场通信标签脚本;The receiving module is configured to receive a script download request sent by the mobile terminal, and the script download request is used to request the first NFC tag script; 发送模块,用于向所述移动终端发送所述第一近场通信标签脚本。A sending module, configured to send the first NFC tag script to the mobile terminal. 19.根据权利要求18所述的装置,其特征在于,所述第一近场通信标签脚本还包括执行所述第一近场通信标签脚本中的命令所需的终端配置条件。19. The device according to claim 18, wherein the first NFC tag script further includes terminal configuration conditions required for executing commands in the first NFC tag script. 20.根据权利要求19所述的装置,其特征在于,所述装置还包括:20. The device of claim 19, further comprising: 信息获取模块,用于获取所述移动终端的配置信息;An information acquisition module, configured to acquire configuration information of the mobile terminal; 判断模块,用于判断所述移动终端的配置信息是否满足所述第一近场通信标签脚本中的所述终端配置条件;A judging module, configured to judge whether the configuration information of the mobile terminal satisfies the terminal configuration condition in the first NFC tag script; 提示模块,用于当所述移动终端的配置信息不满足所述第一近场通信标签脚本中的所述终端配置条件时,提示用户所述第一近场通信标签脚本不适用于所述移动终端。A prompt module, configured to prompt the user that the first near-field communication tag script is not applicable to the mobile terminal when the configuration information of the mobile terminal does not meet the terminal configuration conditions in the first near-field communication tag script. terminal. 21.根据权利要求17所述的装置,其特征在于,所述装置还包括:21. The device according to claim 17, further comprising: 信息获取模块,用于获取移动终端的配置信息;An information acquisition module, configured to acquire configuration information of the mobile terminal; 屏蔽模块,用于屏蔽所述移动终端的配置信息不满足的终端配置条件所属的近场通信标签。The shielding module is configured to shield the near field communication tags to which the configuration information of the mobile terminal does not meet the terminal configuration conditions. 22.根据权利要求17-21任一项所述的装置,其特征在于,所述获取模块用于接收用户上传的所述近场通信标签脚本。22. The device according to any one of claims 17-21, wherein the acquisition module is configured to receive the near field communication tag script uploaded by a user. 23.根据权利要求17-21任一项所述的装置,其特征在于,所述装置还包括:23. The device according to any one of claims 17-21, further comprising: 预处理模块,用于对获取到的所述近场通信标签脚本进行预处理,所述预处理包括安全检测、去重处理和分类索引中的一种或多种。A preprocessing module, configured to preprocess the acquired NFC tag script, the preprocessing includes one or more of security detection, deduplication processing, and classification indexing. 24.根据权利要求17-21任一项所述的装置,其特征在于,所述获取模块还用于接收讨论信息的发表请求;24. The device according to any one of claims 17-21, wherein the acquisition module is further configured to receive a publication request for discussion information; 所述发布模块还用于发布所述讨论信息。The publishing module is also used to publish the discussion information. 25.一种近场通信标签脚本的获取装置,其特征在于,所述装置包括:25. A device for acquiring a near-field communication tag script, characterized in that the device comprises: 请求发送模块,用于发送脚本下载请求,所述脚本下载请求用于请求第一近场通信标签脚本,所述第一近场通信标签脚本包括一个或多个用于写入近场通信标签的命令;The request sending module is used to send a script download request, and the script download request is used to request a first near field communication tag script, and the first near field communication tag script includes one or more scripts for writing into the near field communication tag Order; 下载模块,用于下载所述第一近场通信标签脚本;将下载的所述第一近场通信标签脚本包括的所述命令写入所述近场通信标签中,支持近场通信功能的终端设备通过读取并执行所述近场通信标签中的所述命令完成各种操作。A download module, configured to download the first near-field communication tag script; write the command included in the downloaded first near-field communication tag script into the near-field communication tag, and support a terminal with a near-field communication function The device completes various operations by reading and executing the commands in the near field communication tag. 26.根据权利要求25所述的装置,其特征在于,所述近场通信标签脚本还包括执行所述第一近场通信标签脚本中的命令所需的终端配置条件。26. The device according to claim 25, wherein the near field communication tag script further includes terminal configuration conditions required for executing the commands in the first near field communication tag script. 27.根据权利要求26所述的装置,其特征在于,所述装置还包括:27. The device of claim 26, further comprising: 检测模块,用于检测移动终端的配置信息是否符合所述第一近场通信标签脚本中的所述终端配置条件;A detection module, configured to detect whether the configuration information of the mobile terminal complies with the terminal configuration conditions in the first near-field communication tag script; 提示模块,用于当所述移动终端的配置信息不符合所述第一近场通信标签脚本中的所述终端配置条件时,提示用户所述第一近场通信标签脚本不适用于所述移动终端。A prompt module, configured to prompt the user that the first near field communication tag script is not applicable to the mobile terminal when the configuration information of the mobile terminal does not meet the terminal configuration conditions in the first near field communication tag script terminal. 28.根据权利要求27所述的装置,其特征在于,所述提示模块用于输出是否更新或下载指定应用程序的操作选项,所述指定应用程序为所述第一近场通信标签脚本中的命令需要调用的应用程序。28. The device according to claim 27, wherein the prompt module is configured to output an operation option of whether to update or download a specified application program, the specified application program being the first NFC tag script The application that the command needs to invoke. 29.根据权利要求28所述的装置,其特征在于,所述装置还包括:29. The device of claim 28, further comprising: 命令接收模块,用于接收用户的更新命令或下载命令;The command receiving module is used to receive the user's update command or download command; 执行模块,用于根据所述指定应用程序的包名,更新或下载所述指定应用程序。An execution module, configured to update or download the specified application program according to the package name of the specified application program. 30.根据权利要求25-29任一项所述的装置,其特征在于,所述装置还包括:30. The device according to any one of claims 25-29, further comprising: 脚本上传模块,用于向服务器上传近场通信标签脚本,以使所述服务器发布上传的所述近场通信标签脚本。The script uploading module is used for uploading the NFC tag script to the server, so that the server publishes the uploaded NFC tag script. 31.根据权利要求25-29任一项所述的装置,其特征在于,所述装置还包括:31. The device according to any one of claims 25-29, further comprising: 配置信息发送模块,用于将所述移动终端的配置信息发送给服务器。The configuration information sending module is configured to send the configuration information of the mobile terminal to the server. 32.根据权利要求25-29任一项所述的装置,其特征在于,所述装置还包括:32. The device according to any one of claims 25-29, further comprising: 接收模块,用于接收用户输入的讨论信息;A receiving module, configured to receive discussion information input by users; 讨论信息发送模块,用于将所述讨论信息发送给服务器,以使所述服务器发布所述讨论信息。A discussion information sending module, configured to send the discussion information to a server, so that the server publishes the discussion information.
CN201310462954.XA 2013-09-30 2013-09-30 Method and device for providing and acquiring near field communication tag script Active CN103546203B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310462954.XA CN103546203B (en) 2013-09-30 2013-09-30 Method and device for providing and acquiring near field communication tag script

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310462954.XA CN103546203B (en) 2013-09-30 2013-09-30 Method and device for providing and acquiring near field communication tag script

Publications (2)

Publication Number Publication Date
CN103546203A CN103546203A (en) 2014-01-29
CN103546203B true CN103546203B (en) 2015-12-09

Family

ID=49969306

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310462954.XA Active CN103546203B (en) 2013-09-30 2013-09-30 Method and device for providing and acquiring near field communication tag script

Country Status (1)

Country Link
CN (1) CN103546203B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105577293B (en) * 2014-10-13 2018-10-30 炬芯(珠海)科技有限公司 A kind of test method of bluetooth equipment, apparatus and system
CN115514396B (en) 2021-06-23 2023-06-13 广州视源电子科技股份有限公司 NFC-based screen transmission device connection method, device and computer equipment
CN113962233B (en) * 2021-10-18 2023-10-10 珠海格力电器股份有限公司 Near field communication triggering method, device, electronic equipment and storage medium
CN116775049A (en) * 2022-03-08 2023-09-19 广州视源电子科技股份有限公司 Application program downloading method, device, equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102957456A (en) * 2011-08-24 2013-03-06 株式会社泛泰 Terminal, system, and method for retrieving application

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102957456A (en) * 2011-08-24 2013-03-06 株式会社泛泰 Terminal, system, and method for retrieving application

Also Published As

Publication number Publication date
CN103546203A (en) 2014-01-29

Similar Documents

Publication Publication Date Title
US9740671B2 (en) Method and apparatus of generating a webpage from an original design file comprising layers
US10186244B2 (en) Sound effect processing method and device, plug-in unit manager and sound effect plug-in unit
RU2628488C2 (en) Method, terminal device and server for nfc data transfer
JP6076501B2 (en) Method, apparatus, facility, system, program, and recording medium for controlling on / off of wireless network
CN107302628B (en) Application function control method and related product
CN103747130B (en) Control method and device of terminal equipment
KR101600999B1 (en) Method, apparatus and terminal device, program and storage medium for selecting character
CN104281394A (en) Method and device for intelligently selecting words
CN106658354B (en) Data transmission method and equipment
EP2869604B1 (en) Method, apparatus and device for processing a mobile terminal resource
CN103677564A (en) Sliding operation response method and device and terminal equipment
CN106156097B (en) Method and device for processing browser input records
CN107908407A (en) Compilation Method, device and terminal device
CN103544457B (en) The recognition methods of a kind of near field communication tag, device and mobile terminal
CN103546203B (en) Method and device for providing and acquiring near field communication tag script
CN106230919B (en) File uploading method and device
CN103944922A (en) Data processing method, terminal, server and system
CN106775641A (en) Software update method and smart device
CN106933626B (en) Application association method and device
WO2015067206A1 (en) File searching method and terminal
CN106506623B (en) Data transmission method and equipment
CN109379394A (en) A method, device and terminal for monitoring network request
CN105813013A (en) Information prompting method, device and system
CN103530152A (en) Method, device and terminal device for loading client-side scripts
US10057740B2 (en) Methods and devices for processing mobile terminal resource

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant