[go: up one dir, main page]

CN116382728B - Propagation name display method and terminal equipment - Google Patents

Propagation name display method and terminal equipment Download PDF

Info

Publication number
CN116382728B
CN116382728B CN202310215986.3A CN202310215986A CN116382728B CN 116382728 B CN116382728 B CN 116382728B CN 202310215986 A CN202310215986 A CN 202310215986A CN 116382728 B CN116382728 B CN 116382728B
Authority
CN
China
Prior art keywords
equipment
pogopin
software update
update package
software
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
CN202310215986.3A
Other languages
Chinese (zh)
Other versions
CN116382728A (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.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202310215986.3A priority Critical patent/CN116382728B/en
Publication of CN116382728A publication Critical patent/CN116382728A/en
Application granted granted Critical
Publication of CN116382728B publication Critical patent/CN116382728B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/30Types of network names
    • H04L2101/365Application layer names, e.g. buddy names, unstructured names chosen by a user or home appliance name

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本申请提供了一种传播名显示方法和终端设备。该传播名显示方法包括:PogoPin设备与主设备之间建立通信连接后,主设备通过与PogoPin设备之间的交互,完成对PogoPin设备的软件更新,并显示该PogoPin设备的设备传播名。通过本申请提供的方法,可以将PogoPin设备的设备传播名显示于主设备的显示界面,可以让用户更直观地看到完成软件更新的是哪一台设备,在用户拥有多个PogoPin设备的情况下,便于用户区分,提升了用户的使用体验,有利于用户更主动地参与对PogoPin设备的软件更新,有助于推进产品升级。

This application provides a broadcast name display method and terminal equipment. The propagation name display method includes: after a communication connection is established between the PogoPin device and the main device, the main device completes the software update of the PogoPin device through interaction with the PogoPin device, and displays the device propagation name of the PogoPin device. Through the method provided by this application, the device communication name of the PogoPin device can be displayed on the display interface of the main device, allowing the user to more intuitively see which device has completed the software update. In the case where the user has multiple PogoPin devices This makes it easier for users to distinguish, improves user experience, helps users more actively participate in software updates for PogoPin devices, and helps promote product upgrades.

Description

传播名显示方法和终端设备Propagation name display method and terminal equipment

技术领域Technical field

本申请涉及终端技术领域,尤其涉及一种传播名显示方法和终端设备。The present application relates to the field of terminal technology, and in particular to a broadcast name display method and terminal equipment.

背景技术Background technique

PogoPin是一种广泛应用于通讯、汽车、医疗、航空航天等电子产品中的精密连接器,因其具有防腐蚀性、耐久性及通信上的稳定性,被电子科技行业所青睐。PogoPin设备能够通过PogoPin与平板电脑、手机等主设备进行连接以实现相应的功能,例如,PogoPin键盘能够与平板电脑通过PogoPin连接,从而实现向平板电脑发送指令、传输数据等功能。一般情况下,PogoPin设备的软件更新需通过主设备实现。PogoPin is a precision connector widely used in electronic products such as communications, automobiles, medical, aerospace, etc. It is favored by the electronic technology industry because of its anti-corrosion, durability and communication stability. PogoPin devices can be connected to main devices such as tablets and mobile phones through PogoPin to achieve corresponding functions. For example, the PogoPin keyboard can be connected to a tablet through PogoPin to enable functions such as sending instructions and transmitting data to the tablet. Under normal circumstances, software updates for PogoPin devices need to be implemented through the main device.

目前,PogoPin设备在软件更新过程中或完成后,其传播名无法在主设备的界面进行显示,若存在多个PogoPin设备同时与主设备连接,用户常常不能直观的知道完成软件更新的是哪一台PogoPin设备,导致用户体验不佳。若用户因此而长期拒绝对所拥有的PogoPin设备进行软件更新,一方面会带来更为繁琐的售后问题,另一方面也会由于服务方所推送的软件更新包没有市场反馈而严重影响产品迭代速度,面临被市场淘汰的风险。Currently, the PogoPin device's propagation name cannot be displayed on the interface of the main device during or after the software update is completed. If there are multiple PogoPin devices connected to the main device at the same time, users often cannot intuitively know which one has completed the software update. PogoPin devices, resulting in poor user experience. If users refuse to update the software of their PogoPin devices for a long time because of this, on the one hand, it will cause more complicated after-sales problems. On the other hand, it will also seriously affect product iteration because the software update package pushed by the service provider has no market feedback. speed and face the risk of being eliminated by the market.

故而,如何使得PogoPin设备在软件更新时可以显示其传播名,以优化体验,加速产品升级,是当前亟需解决的技术问题。Therefore, how to enable PogoPin devices to display their communication names during software updates to optimize the experience and accelerate product upgrades is an urgent technical issue that needs to be solved.

发明内容Contents of the invention

本申请提供了一种传播名显示方法和终端设备,通过在PogoPin设备软件更新时显示其传播名,以优化体验,加速产品升级。This application provides a communication name display method and terminal device, which optimizes the experience and accelerates product upgrades by displaying the communication name when the PogoPin device software is updated.

第一方面,本申请提供了一种传播名显示方法,应用于包括PogoPin设备和主设备的系统,所述PogoPin设备通过PogoPin与所述主设备连接,所述方法包括:所述主设备向所述PogoPin设备发送数据访问请求,所述数据访问请求用于请求所述PogoPin设备的设备信息,所述设备信息包括所述PogoPin设备的设备标识和所述PogoPin设备的设备传播名;所述PogoPin设备接收所述数据访问请求,并基于所述数据访问请求向所述主设备发送所述PogoPin设备的设备信息;所述主设备接收所述PogoPin设备的设备信息,并向所述PogoPin设备发送所述PogoPin设备对应的软件更新包;所述PogoPin设备接收所述软件更新包,基于所述软件更新包完成软件更新,并向所述主设备发送指示信息,所述指示信息用于指示更新成功或更新失败,所述指示信息包括所述PogoPin设备的设备标识;所述主设备接收所述指示信息,基于所述指示信息确定所述PogoPin设备的设备传播名,并显示所述PogoPin设备的设备传播名。In a first aspect, this application provides a broadcast name display method, which is applied to a system including a PogoPin device and a main device. The PogoPin device is connected to the main device through PogoPin. The method includes: the main device sends a message to the main device. The PogoPin device sends a data access request, the data access request is used to request device information of the PogoPin device, the device information includes the device identification of the PogoPin device and the device propagation name of the PogoPin device; the PogoPin device Receive the data access request, and send the device information of the PogoPin device to the main device based on the data access request; the main device receives the device information of the PogoPin device, and sends the device information to the PogoPin device. The software update package corresponding to the PogoPin device; the PogoPin device receives the software update package, completes the software update based on the software update package, and sends indication information to the main device, where the indication information is used to indicate that the update is successful or Failure, the indication information includes the device identification of the PogoPin device; the master device receives the indication information, determines the device propagation name of the PogoPin device based on the indication information, and displays the device propagation name of the PogoPin device .

在一种可能的实现方式中,主设备发送的数据访问请求用于请求PogoPin设备的设备信息,设备信息包括PogoPin设备的设备标识和PogoPin设备的设备传播名,但若由于系统配置等原因,该PogoPin设备的设备标识和设备传播名在PogoPin设备中的存储地址或访问权限不同,则该主设备此次的数据访问请求可以分两次发送,可以分别向PogoPin设备发送用于请求设备标识的第一数据访问请求,以及用于请求设备传播名的第二数据访问请求。In one possible implementation, the data access request sent by the master device is used to request the device information of the PogoPin device. The device information includes the device identification of the PogoPin device and the device propagation name of the PogoPin device. However, if due to system configuration and other reasons, the device information If the PogoPin device's device identification and device communication name have different storage addresses or access rights in the PogoPin device, the master device's data access request can be sent in two times, and the third request for device identification can be sent to the PogoPin device respectively. A data access request, and a second data access request for requesting a device propagation name.

值得说明的是,用于连接PogoPin设备和主设备的PogoPin只能实现单通道通信,故而本申请实施例提供的方法应用于:PogoPin设备通过与主设备之间建立通信连接但并未通过其中一方对另一方进行操作的情况下。It is worth noting that the PogoPin used to connect the PogoPin device and the main device can only achieve single-channel communication. Therefore, the method provided in the embodiment of this application is applied to: the PogoPin device establishes a communication connection with the main device but does not pass one of them. When operating on the other party.

在本申请实施例中,PogoPin设备与主设备之间建立通信连接后,主设备通过与PogoPin设备之间的交互,完成对PogoPin设备的软件更新,并显示该PogoPin设备的设备传播名。通过本实施例提供的方法,可以将PogoPin设备的设备传播名显示于主设备的显示界面,可以让用户更直观地看到完成软件更新的是哪一台设备,在用户拥有多个PogoPin设备的情况下,便于用户区分,提升了用户的使用体验,有利于用户更主动地参与对PogoPin设备的软件更新,有助于推进产品升级。In the embodiment of this application, after a communication connection is established between the PogoPin device and the main device, the main device completes the software update of the PogoPin device through interaction with the PogoPin device, and displays the device propagation name of the PogoPin device. Through the method provided in this embodiment, the device communication name of the PogoPin device can be displayed on the display interface of the main device, allowing the user to more intuitively see which device has completed the software update. When the user owns multiple PogoPin devices, In this case, it is easier for users to distinguish, improves user experience, helps users more actively participate in software updates for PogoPin devices, and helps promote product upgrades.

结合第一方面,在第一方面的某些实现方式中,所述设备标识包括以下一种或多种:设备型号、设备序列号、唯一设备标识码、或者媒体访问控制MAC地址。With reference to the first aspect, in some implementations of the first aspect, the device identification includes one or more of the following: device model, device serial number, unique device identification code, or media access control MAC address.

应理解,这里的设备标识是指PogoPin设备中所存储的、不会因PogoPin设备软件更新而产生变化的标识。It should be understood that the device identification here refers to the identification stored in the PogoPin device and will not change due to PogoPin device software updates.

结合第一方面,在第一方面的某些实现方式中,所述主设备基于所述PogoPin设备的设备信息,建立所述PogoPin设备的设备标识和所述PogoPin设备的设备传播名之间的映射关系;所述基于所述指示信息确定所述PogoPin设备的设备传播名,包括:所述主设备基于所述指示信息中包括的所述PogoPin设备的设备标识和所述映射关系,确定所述PogoPin设备的设备传播名。In connection with the first aspect, in some implementations of the first aspect, the master device establishes a mapping between the device identification of the PogoPin device and the device propagation name of the PogoPin device based on the device information of the PogoPin device. Relationship; Determining the device propagation name of the PogoPin device based on the indication information includes: the main device determines the PogoPin device based on the device identification of the PogoPin device included in the indication information and the mapping relationship. The device propagation name of the device.

应理解,主设备所建立的PogoPin设备的设备标识和PogoPin设备的设备传播名之间的映射关系,可存储于主设备的本地数据库,且该本地数据库可以位于主设备中的临时存储介质中作为临时缓存数据,也可以位于主设备中存储各种固定程序和数据的非易失性存储器中作为永久数据进行保存。It should be understood that the mapping relationship between the device identification of the PogoPin device and the device propagation name of the PogoPin device established by the main device can be stored in the local database of the main device, and the local database can be located in a temporary storage medium in the main device as Temporary cache data can also be stored as permanent data in the non-volatile memory in the main device that stores various fixed programs and data.

在本申请实施例中,主设备在收到PogoPin设备发送的设备信息后,建立该设备信息中包含的设备标识和设备传播名之间的映射关系,在PogoPin设备完成更新并返回指示消息后,即可根据该指示消息中包含的PogoPin设备的设备标识,以及所存储的PogoPin设备的设备标识和PogoPin设备的设备传播名之间的映射关系,确定PogoPin设备的设备传播名。本申请实施例提供的方法,可以在主设备中存储有多个PogoPin设备的设备信息时,仍可以通过各自的设备标识确定对应的设备传播名,以使PogoPin设备的设备传播名可以正确显示。In the embodiment of this application, after receiving the device information sent by the PogoPin device, the master device establishes a mapping relationship between the device identification and the device propagation name contained in the device information. After the PogoPin device completes the update and returns the instruction message, The device propagation name of the PogoPin device can be determined based on the device identification of the PogoPin device included in the instruction message and the stored mapping relationship between the device identification of the PogoPin device and the device propagation name of the PogoPin device. The method provided by the embodiment of this application can still determine the corresponding device propagation name through the respective device identifiers when the device information of multiple PogoPin devices is stored in the main device, so that the device propagation name of the PogoPin device can be displayed correctly.

结合第一方面,在第一方面的某些实现方式中,所述PogoPin设备解析所述数据访问请求,判断所述数据访问请求中是否包含预设消息包头;所述向所述主设备发送所述PogoPin设备的设备信息,包括:若所述数据访问请求中包含所述预设消息包头,则所述PogoPin设备向所述主设备发送所述PogoPin设备的设备信息。With reference to the first aspect, in some implementations of the first aspect, the PogoPin device parses the data access request and determines whether the data access request contains a preset message header; and sends the data to the main device. The device information of the PogoPin device includes: if the data access request contains the preset message header, the PogoPin device sends the device information of the PogoPin device to the main device.

在本申请实施例中,PogoPin设备在收到主设备发送的数据访问请求后,首先应解析该数据访问请求,若解析出该数据访问请求中包含预设消息包头,则PogoPin设备向主设备发送PogoPin设备的设备信息。预设消息包头可以用来对主设备进行鉴权,也可以用来指示该数据访问请求对应的目的是对PogoPin设备进行软件更新,有利于开发人员识别用于软件更新的程序代码,为后续维护带来便利。In the embodiment of this application, after receiving the data access request sent by the main device, the PogoPin device should first parse the data access request. If it is parsed that the data access request contains a preset message header, the PogoPin device will send the data access request to the main device. Device information for PogoPin devices. The preset message header can be used to authenticate the main device, and can also be used to indicate that the purpose of the data access request is to update the software of the PogoPin device, which is helpful for developers to identify the program code used for software update and provide for subsequent maintenance. Bring convenience.

结合第一方面,在第一方面的某些实现方式中,所述设备信息还包括所述PogoPin设备的当前软件版本号;在所述向所述PogoPin设备发送所述PogoPin设备对应的软件更新包之前,所述方法还包括:所述主设备从服务器获取与所述设备标识对应的待更新的软件版本号;所述主设备判断所述PogoPin设备的当前软件版本号与所述待更新的软件版本号是否相同;若不同,则所述主设备从所述服务器下载所述软件更新包,所述软件更新包与所述待更新的软件版本号对应;所述向所述PogoPin设备发送所述PogoPin设备对应的软件更新包,包括:在所述软件更新包下载完成后,所述主设备向所述PogoPin设备发送所述软件更新包。With reference to the first aspect, in some implementations of the first aspect, the device information also includes the current software version number of the PogoPin device; in the step of sending the software update package corresponding to the PogoPin device to the PogoPin device Previously, the method also includes: the main device obtains the software version number to be updated corresponding to the device identification from the server; the main device determines the current software version number of the PogoPin device and the software to be updated. Whether the version numbers are the same; if they are different, the master device downloads the software update package from the server, and the software update package corresponds to the software version number to be updated; and sends the software update package to the PogoPin device. The software update package corresponding to the PogoPin device includes: after the download of the software update package is completed, the main device sends the software update package to the PogoPin device.

应理解,待更新的软件版本号既可以是是当前服务器中存储的最新的软件版本号,也可以是历史任一软件版本号。本申请提供的实施例中,主设备默认获取的待更新的软件版本号是当前服务器中存储的最新的软件版本号,而在用户主动设置获取目标的情况下,也可以获取历史任一软件版本号,有利于用户根据自身需求对PogoPin设备的软件版本进行选择。It should be understood that the software version number to be updated may be the latest software version number currently stored in the server, or it may be any historical software version number. In the embodiment provided by this application, the software version number to be updated obtained by the master device by default is the latest software version number stored in the current server. In the case where the user actively sets the acquisition target, any historical software version can also be obtained. number, which helps users choose the software version of the PogoPin device according to their own needs.

在本申请实施例中,通过主设备对PogoPin设备的当前软件版本号和待更新的软件版本号的判断,在确认版本号不同时才进行软件更新包的下载,避免对PogoPin设备进行同一版本软件的重复更新,避免对主设备和PogoPin设备之间PogoPin通道的重复占用,同时也节约能耗。In the embodiment of this application, the main device determines the current software version number of the PogoPin device and the software version number to be updated, and downloads the software update package only when it is confirmed that the version numbers are different, thus avoiding the need to download the same version of the software to the PogoPin device. Repeated updates avoid repeated occupation of the PogoPin channel between the main device and the PogoPin device, and also save energy consumption.

结合第一方面,在第一方面的某些实现方式中,在所述主设备从所述服务器下载所述软件更新包之前,所述方法还包括:所述主设备显示所述PogoPin设备的设备传播名和第一选择按钮,所述第一选择按钮用于选择是否下载软件更新包;所述主设备从所述服务器下载所述软件更新包,包括:响应于用户基于所述第一选择按钮进行的确认下载操作,所述主设备从所述服务器下载所述软件更新包。With reference to the first aspect, in some implementations of the first aspect, before the main device downloads the software update package from the server, the method further includes: the main device displays the device of the PogoPin device. Propagate the name and a first selection button, the first selection button is used to select whether to download the software update package; the main device downloads the software update package from the server, including: in response to the user performing the operation based on the first selection button After confirming the download operation, the main device downloads the software update package from the server.

结合第一方面,在第一方面的某些实现方式中,在所述主设备从所述服务器下载所述软件更新包之后,还包括:所述主设备显示所述PogoPin设备的设备传播名和第二选择按钮,所述第二选择按钮用于选择是否进行软件更新;所述向所述PogoPin设备发送所述软件更新包,包括:响应于用户基于所述第二选择按钮进行的确认更新操作,所述主设备向所述PogoPin设备发送所述软件更新包。With reference to the first aspect, in some implementations of the first aspect, after the main device downloads the software update package from the server, the method further includes: the main device displays the device propagation name and the device propagation name of the PogoPin device. Two selection buttons, the second selection button is used to select whether to perform a software update; sending the software update package to the PogoPin device includes: in response to a confirmation update operation performed by the user based on the second selection button, The main device sends the software update package to the PogoPin device.

在本申请实施例中,主设备在对PogoPin设备进行软件更新的过程中,可以直观的显示正在进行软件更新的PogoPin设备的设备传播名,并可基于用户的选择执行相应动作,用户可对该软件更新进程进行把控,提升了用户体验。In this embodiment of the present application, during the process of updating the software of the PogoPin device, the main device can intuitively display the device propagation name of the PogoPin device that is undergoing software update, and can perform corresponding actions based on the user's selection. The user can The software update process is controlled to improve user experience.

第二方面,本申请提供了一种传播名显示方法,应用于主设备,所述主设备通过PogoPin与PogoPin设备连接,所述方法包括:所述主设备向所述PogoPin设备发送数据访问请求,所述数据访问请求用于请求所述PogoPin设备的设备信息,所述设备信息包括所述PogoPin设备的设备标识和所述PogoPin设备的设备传播名;所述主设备接收来自所述PogoPin设备的所述PogoPin设备的设备信息,并向所述PogoPin设备发送所述PogoPin设备对应的软件更新包;所述主设备接收来自所述PogoPin设备的指示信息,所述指示信息用于指示更新成功或更新失败,所述指示信息包括所述PogoPin设备的设备标识;所述主设备基于所述指示信息,确定所述PogoPin设备的设备传播名,并显示所述PogoPin设备的设备传播名。In the second aspect, this application provides a method for displaying a broadcast name, which is applied to a main device. The main device is connected to the PogoPin device through PogoPin. The method includes: the main device sends a data access request to the PogoPin device, The data access request is used to request device information of the PogoPin device. The device information includes the device identification of the PogoPin device and the device propagation name of the PogoPin device; the main device receives all data from the PogoPin device. The device information of the PogoPin device, and sends the software update package corresponding to the PogoPin device to the PogoPin device; the main device receives indication information from the PogoPin device, and the indication information is used to indicate update success or update failure. , the indication information includes the device identification of the PogoPin device; the master device determines the device propagation name of the PogoPin device based on the indication information, and displays the device propagation name of the PogoPin device.

值得说明的是,主设备中包括为主设备和PogoPin设备提供通信通道的PogoPin服务,和可以为PogoPin设备进行软件更新的软件更新服务。It is worth noting that the main device includes the PogoPin service that provides a communication channel between the main device and the PogoPin device, and the software update service that can perform software updates for the PogoPin device.

在本申请提供的实施例中,主设备与PogoPin设备连接后,可以通过PogoPin通信通道进行通信,完成对PogoPin设备的软件更新,并根据接收到的PogoPin设备的指示信息,显示PogoPin设备的设备传播名。通过本申请实施例提供的方法,可以让用户更直观地看到完成软件更新的是哪一台设备,在用户拥有多个PogoPin设备的情况下,便于用户区分,提升了用户体验,提高了用户对产品的认可度。In the embodiment provided by this application, after the main device is connected to the PogoPin device, it can communicate through the PogoPin communication channel, complete the software update of the PogoPin device, and display the device propagation of the PogoPin device according to the received instruction information of the PogoPin device. name. Through the method provided by the embodiment of this application, the user can more intuitively see which device has completed the software update. When the user has multiple PogoPin devices, it is convenient for the user to distinguish, improves the user experience, and improves the user experience. Product recognition.

结合第二方面,在第二方面的某些实现方式中,所述设备标识包括以下一种或多种:设备型号、设备序列号、唯一设备标识码、或者媒体访问控制MAC地址。With reference to the second aspect, in some implementations of the second aspect, the device identification includes one or more of the following: device model, device serial number, unique device identification code, or media access control MAC address.

结合第二方面,在第二方面的某些实现方式中,所述方法还包括:所述主设备基于所述PogoPin设备的设备信息,建立所述PogoPin设备的设备标识和所述PogoPin设备的设备传播名之间的映射关系;所述主设备基于所述指示信息,确定所述PogoPin设备的设备传播名,包括:所述主设备基于所述指示信息中包括的所述PogoPin设备的设备标识和所述映射关系,确定所述PogoPin设备的设备传播名。With reference to the second aspect, in some implementations of the second aspect, the method further includes: the main device establishing the device identification of the PogoPin device and the device of the PogoPin device based on the device information of the PogoPin device. Mapping relationship between propagation names; the main device determines the device propagation name of the PogoPin device based on the indication information, including: the main device based on the device identification of the PogoPin device included in the indication information and The mapping relationship determines the device propagation name of the PogoPin device.

在本申请提供的实施例中,主设备在收到PogoPin设备发送的设备信息后,建立该设备信息中包含的设备标识和设备被传播名之间的映射关系,在收到PogoPin设备完成更新后的指示消息时,即可根据该指示消息中包含的PogoPin设备的设备标识,以及所存储的PogoPin设备的设备标识和PogoPin设备的设备传播名之间的映射关系,确定PogoPin设备的设备传播名。本申请实施例提供的方法,可以在主设备中存储有多个PogoPin设备的设备信息时,仍可以通过各自的设备标识确定对应的设备传播名,以使PogoPin设备的设备传播名可以正确显示。In the embodiment provided by this application, after receiving the device information sent by the PogoPin device, the master device establishes a mapping relationship between the device identification contained in the device information and the device's propagated name. After receiving the update from the PogoPin device, When the instruction message is sent, the device propagation name of the PogoPin device can be determined based on the device identification of the PogoPin device contained in the instruction message and the mapping relationship between the stored device identification of the PogoPin device and the device propagation name of the PogoPin device. The method provided by the embodiment of this application can still determine the corresponding device propagation name through the respective device identifiers when the device information of multiple PogoPin devices is stored in the main device, so that the device propagation name of the PogoPin device can be displayed correctly.

结合第二方面,在第二方面的某些实现方式中,所述设备信息还包括所述PogoPin设备的当前软件版本号;在所述向所述PogoPin设备发送所述PogoPin设备对应的软件更新包之前,所述方法还包括:所述主设备从服务器获取与所述设备标识对应的待更新的软件版本号;所述主设备判断所述PogoPin设备的当前软件版本号与所述待更新的软件版本号是否相同;若不同,则所述主设备从所述服务器下载所述软件更新包,所述软件更新包与所述待更新的软件版本号对应;所述向所述PogoPin设备发送所述PogoPin设备对应的软件更新包,包括:在所述软件更新包下载完成后,所述主设备向所述PogoPin设备发送所述软件更新包。With reference to the second aspect, in some implementations of the second aspect, the device information also includes the current software version number of the PogoPin device; in the step of sending the software update package corresponding to the PogoPin device to the PogoPin device Previously, the method also includes: the main device obtains the software version number to be updated corresponding to the device identification from the server; the main device determines the current software version number of the PogoPin device and the software to be updated. Whether the version numbers are the same; if they are different, the master device downloads the software update package from the server, and the software update package corresponds to the software version number to be updated; and sends the software update package to the PogoPin device. The software update package corresponding to the PogoPin device includes: after the download of the software update package is completed, the main device sends the software update package to the PogoPin device.

在本申请实施例中,通过主设备对PogoPin设备的当前软件版本号和待更新的软件版本号的判断,在确认版本号不同时才进行软件更新包的下载,避免对PogoPin设备进行同一版本软件的重复更新,避免对主设备和PogoPin设备之间PogoPin通道的重复占用,同时也节约能耗。In the embodiment of this application, the main device determines the current software version number of the PogoPin device and the software version number to be updated, and downloads the software update package only when it is confirmed that the version numbers are different, thus avoiding the need to download the same version of the software to the PogoPin device. Repeated updates avoid repeated occupation of the PogoPin channel between the main device and the PogoPin device, and also save energy consumption.

结合第二方面,在第二方面的某些实现方式中,在所述主设备从所述服务器下载所述软件更新包之前,所述方法还包括:所述主设备显示所述PogoPin设备的设备传播名和第一选择按钮,所述第一选择按钮用于选择是否下载软件更新包;所述主设备从所述服务器下载所述软件更新包,包括:响应于用户基于所述第一选择按钮进行的确认下载操作,所述主设备从所述服务器下载所述软件更新包。With reference to the second aspect, in some implementations of the second aspect, before the main device downloads the software update package from the server, the method further includes: the main device displays the device of the PogoPin device. Propagate the name and a first selection button, the first selection button is used to select whether to download the software update package; the main device downloads the software update package from the server, including: in response to the user performing the operation based on the first selection button After confirming the download operation, the main device downloads the software update package from the server.

结合第二方面,在第二方面的某些实现方式中,在所述主设备从所述服务器下载所述软件更新包之后,所述方法还包括:所述主设备显示所述PogoPin设备的设备传播名和第二选择按钮,所述第二选择按钮用于选择是否进行软件更新;所述向所述PogoPin设备发送所述PogoPin设备对应的软件更新包,包括:响应于用户基于所述第二选择按钮进行的确认更新操作,所述主设备向所述PogoPin设备发送所述软件更新包。With reference to the second aspect, in some implementations of the second aspect, after the main device downloads the software update package from the server, the method further includes: the main device displays the device of the PogoPin device. Spread the name and a second selection button, the second selection button is used to select whether to perform a software update; and sending the software update package corresponding to the PogoPin device to the PogoPin device includes: responding to the user based on the second selection button to confirm the update operation, and the main device sends the software update package to the PogoPin device.

在本申请提供的实施例中,主设备在对PogoPin设备进行软件更新的过程中,在主设备从服务器下载软件更新包之前和之后,均可以显示设备传播名和选择按钮,以使用户可以直观获知该设备传播名对应的PogoPin设备的软件更新进程,主设备可基于用户选择来执行后续操作,优化了用户使用体验。In the embodiment provided by this application, during the process of updating the software of the PogoPin device, the main device can display the device propagation name and selection button before and after the main device downloads the software update package from the server, so that the user can intuitively know The device communication name corresponds to the software update process of the PogoPin device. The main device can perform subsequent operations based on user selection, optimizing the user experience.

第三方面,本申请提供了一种终端设备,用于执行上述第二方面中任一种可能的实现方式中的方法。具体地,该终端设备包括用于执行上述第二方面中任一种可能的实现方式中的方法的模块。In a third aspect, this application provides a terminal device for executing the method in any possible implementation manner of the second aspect. Specifically, the terminal device includes a module for executing the method in any possible implementation manner of the second aspect.

可选地,该终端设备可以包括执行上述第二方面中所描述的方法/操作/步骤/动作所一一对应的模块,该模块可以是硬件电路,也可是软件,也可以是硬件电路结合软件实现。Optionally, the terminal device may include a module that performs one-to-one correspondence with the methods/operations/steps/actions described in the second aspect. The module may be a hardware circuit, software, or a combination of hardware circuit and software. accomplish.

第四方面,本申请提供了一个传播名显示系统,包括PogoPin设备和如第三方面所述的终端设备,所述PogoPin设备和所述终端设备通过PogoPin相连接,以实现如第一方面所述的传播名显示方法。In the fourth aspect, the present application provides a broadcast name display system, including a PogoPin device and a terminal device as described in the third aspect, and the PogoPin device and the terminal device are connected through PogoPin to implement as described in the first aspect The propagation name display method.

第五方面,本申请提供了一种终端设备,包括:处理器和存储器,该处理器用于读取存储器中存储的指令,以执行上述第二方面中的任一种可能实现方式中的方法。In a fifth aspect, this application provides a terminal device, including: a processor and a memory. The processor is configured to read instructions stored in the memory to execute the method in any of the possible implementations of the second aspect.

可选地,处理器为一个或多个,存储器为一个或多个。Optionally, there are one or more processors and one or more memories.

可选地,存储器可以与处理器集成在一起,或者存储器与处理器分离设置。Alternatively, the memory may be integrated with the processor, or the memory may be provided separately from the processor.

在具体实现过程中,存储器可以为非瞬时性(non-transitory)存储器,例如只读存储器(read only memory,ROM),其可以与处理器集成在同一块芯片上,也可以分别设置在不同的芯片上,本申请实施例对存储器的类型以及存储器与处理器的设置方式不做限定。In the specific implementation process, the memory can be a non-transitory memory, such as a read only memory (ROM), which can be integrated on the same chip as the processor, or can be set in different On the chip, the embodiment of the present application does not limit the type of memory and the arrangement of the memory and the processor.

上述第五方面中的终端设备可以是一个芯片,该处理器可以通过硬件来实现也可以通过软件来实现,当通过硬件实现时,该处理器可以是逻辑电路、集成电路等;当通过软件来实现时,该处理器可以是一个通用处理器,通过读取存储器中存储的软件代码来实现,该存储器可以集成在处理器中,可以位于该处理器之外,独立存在。The terminal device in the above fifth aspect can be a chip, and the processor can be implemented by hardware or software. When implemented by hardware, the processor can be a logic circuit, an integrated circuit, etc.; when implemented by software, When implemented, the processor can be a general-purpose processor, which is implemented by reading the software code stored in the memory. The memory can be integrated in the processor, or can be located outside the processor and exist independently.

第六方面,本申请提供了一种计算机可读存储介质,该计算机可读存储介质存储有计算机程序(也可以称为代码,或指令)当其在计算机上运行时,使得计算机执行上述第二方面中的任一种可能实现方式中的方法。In a sixth aspect, the present application provides a computer-readable storage medium, which stores a computer program (which may also be called a code, or an instruction), and when run on a computer, causes the computer to execute the above second step. A method in any of the possible implementations.

第七方面,本申请提供了一种计算机程序产品,计算机程序产品包括:计算机程序(也可以称为代码,或指令),当计算机程序被运行时,使得计算机执行上述第二方面中的任一种可能实现方式中的方法。In a seventh aspect, the present application provides a computer program product. The computer program product includes: a computer program (which may also be called a code, or an instruction). When the computer program is run, it causes the computer to execute any one of the above second aspects. possible implementation methods.

附图说明Description of the drawings

图1为本申请实施例提供的终端设备的结构示意图;Figure 1 is a schematic structural diagram of a terminal device provided by an embodiment of the present application;

图2为本申请实施例提供的终端设备的软件结构框图;Figure 2 is a software structure block diagram of the terminal device provided by the embodiment of the present application;

图3为本申请提供的一种传播名显示方法的示意性流程图;Figure 3 is a schematic flow chart of a communication name display method provided by this application;

图4为本申请实施例提供的一种主设备示例图;Figure 4 is an example diagram of a main device provided by an embodiment of the present application;

图5为本申请实施例提供的一种PogoPin设备示例图;Figure 5 is an example diagram of a PogoPin device provided by an embodiment of the present application;

图6为本申请实施例提供的一种主设备和PogoPin设备的连接方式示意图;Figure 6 is a schematic diagram of the connection method between the main device and the PogoPin device provided by the embodiment of the present application;

图7为本申请实施例提供的一种传播名显示方法的显示界面示意图;Figure 7 is a schematic diagram of a display interface of a broadcast name display method provided by an embodiment of the present application;

图8为本申请实施例提供的另一种传播名显示方法的显示界面示意图;Figure 8 is a schematic diagram of a display interface of another communication name display method provided by an embodiment of the present application;

图9为本申请实施例提供的又一种传播名显示方法的显示界面示意图;Figure 9 is a schematic diagram of a display interface of yet another method of displaying a broadcast name provided by an embodiment of the present application;

图10为本申请提供的另一种传播名显示方法的示意性流程图;Figure 10 is a schematic flow chart of another communication name display method provided by this application;

图11为本申请实施例提供的一种终端设备的示意性框图;Figure 11 is a schematic block diagram of a terminal device provided by an embodiment of the present application;

图12为本申请实施例提供的另一种终端设备的示意性框图。Figure 12 is a schematic block diagram of another terminal device provided by an embodiment of the present application.

具体实施方式Detailed ways

下面将结合附图,对本申请中的技术方案进行描述。The technical solutions in this application will be described below with reference to the accompanying drawings.

为了便于清楚描述本申请实施例的技术方案,在本申请的实施例中,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分。本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。In order to facilitate a clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as “first” and “second” are used to distinguish the same or similar items with basically the same functions and effects. Those skilled in the art can understand that words such as "first" and "second" do not limit the number and execution order, and words such as "first" and "second" do not limit the number and execution order.

需要说明的是,本申请实施例中,“示例性地”或者“例如”等词用于表示作例子、例证或说明。本申请中被描述为“示例性地”或者“例如”的任何实施例或设计方案不应被解释为比其他实施例或设计方案更优选或更具优势。确切而言,使用“示例性地”或者“例如”等词旨在以具体方式呈现相关概念。It should be noted that in the embodiments of this application, words such as "exemplarily" or "for example" are used to represent examples, illustrations or explanations. Any embodiment or design described herein as "exemplary" or "such as" is not intended to be construed as preferred or advantageous over other embodiments or designs. Rather, the use of the words "exemplarily" or "for example" is intended to present the relevant concepts in a concrete manner.

本申请实施例中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b,或c中的至少一项(个),可以表示:a,b,c,a-b,a--c,b-c,或a-b-c,其中a,b,c可以是单个,也可以是多个。In the embodiments of this application, "at least one" refers to one or more, and "multiple" refers to two or more. "And/or" describes the association of associated objects, indicating that there can be three relationships, for example, A and/or B, which can mean: A exists alone, A and B exist simultaneously, and B exists alone, where A, B can be singular or plural. The character "/" generally indicates that the related objects are in an "or" relationship. "At least one of the following" or similar expressions thereof refers to any combination of these items, including any combination of a single item (items) or a plurality of items (items). For example, at least one of a, b, or c can mean: a, b, c, a-b, a--c, b-c, or a-b-c, where a, b, c can be single, or It's multiple.

终端设备根据其功能不同可以被划分为PogoPin设备和主设备。其中,PogoPin设备能够通过PogoPin与平板电脑、手机等主设备进行连接以实现相应的功能,例如,PogoPin键盘能够与平板电脑通过PogoPin连接,从而实现向平板电脑发送指令、传输数据等功能。一般情况下,PogoPin设备的软件更新需通过主设备实现。Terminal devices can be divided into PogoPin devices and main devices according to their different functions. Among them, PogoPin devices can be connected to main devices such as tablets and mobile phones through PogoPin to achieve corresponding functions. For example, the PogoPin keyboard can be connected to tablets through PogoPin, thereby enabling functions such as sending instructions and transmitting data to the tablet. Under normal circumstances, software updates for PogoPin devices need to be implemented through the main device.

目前,PogoPin设备在软件更新过程中或完成后,其传播名无法在主设备的界面进行显示,若用户拥有多台PogoPin设备,并且多台PogoPin设备均需与同一台主设备连接,用户常常不能直观的知道完成软件更新的是哪一台PogoPin设备,导致用户体验不佳。若用户因此而长期拒绝对所拥有的PogoPin设备进行软件更新,一方面会带来更为繁琐的售后问题,另一方面也会由于服务方所推送的软件更新包没有市场反馈而严重影响产品迭代速度,面临被市场淘汰的风险。Currently, the PogoPin device's propagation name cannot be displayed on the interface of the main device during or after the software update process. If the user owns multiple PogoPin devices, and multiple PogoPin devices need to be connected to the same main device, the user often cannot Intuitively knowing which PogoPin device completed the software update resulted in poor user experience. If users refuse to update the software of their PogoPin devices for a long time because of this, on the one hand, it will cause more complicated after-sales problems. On the other hand, it will also seriously affect product iteration because the software update package pushed by the service provider has no market feedback. speed and face the risk of being eliminated by the market.

有鉴于此,本申请实施例提供了一种传播名显示方法,旨在使得PogoPin设备在软件更新时可以显示其传播名,以优化用户体验,加速产品升级。In view of this, the embodiment of the present application provides a method for displaying the communication name, which is intended to enable the PogoPin device to display its communication name during software update, so as to optimize the user experience and accelerate product upgrades.

本申请实施例提供的终端设备可以作为主设备与PogoPin设备进行连接,来实现本申请提供的传播名显示方法,该终端设备可以是平板电脑、手机等任一可以通过PogoPin与PogoPin设备进行连接的且具有显示界面的设备,本申请对终端设备所采用的具体技术和具体设备形态不做限定。The terminal device provided by the embodiment of this application can be connected to the PogoPin device as the main device to implement the broadcast name display method provided by this application. The terminal device can be a tablet computer, a mobile phone, or any other device that can be connected to the PogoPin device through PogoPin. For equipment with a display interface, this application does not limit the specific technology and specific equipment form used in the terminal equipment.

需要说明的是,本申请实施例提供的终端设备也可以作为PogoPin设备与主设备进行连接,来实现本申请提供的传播名显示方法。作为PogoPin设备的终端设备可以是智能键盘、智能耳机等可以通过PogoPin这一精密连接器与主设备进行连接后实现其功能或进行软件更新的设备。本申请对PogoPin设备与其连接的主设备所采用的具体技术和具体设备形态均不做限定。It should be noted that the terminal device provided by the embodiment of the present application can also be connected to the main device as a PogoPin device to implement the broadcast name display method provided by the present application. Terminal devices as PogoPin devices can be smart keyboards, smart headphones, and other devices that can be connected to the main device through the PogoPin precision connector to realize its functions or perform software updates. This application does not limit the specific technology and specific equipment form used by the PogoPin device and the main device connected to it.

为了能够更好地理解本申请实施例,下面对本申请实施例所涉及的终端设备进行介绍。In order to better understand the embodiments of the present application, the terminal equipment involved in the embodiments of the present application is introduced below.

图1为本申请实施例提供的终端设备100的结构示意图。Figure 1 is a schematic structural diagram of a terminal device 100 provided by an embodiment of the present application.

终端设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。The terminal device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, and an antenna 2. , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone interface 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and Subscriber identification module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.

可以理解的是,本申请实施例示意的结构并不构成对终端设备100的具体限定。在本申请另一些实施例中,终端设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the terminal device 100. In other embodiments of the present application, the terminal device 100 may include more or less components than shown in the figures, or combine some components, or split some components, or arrange different components. The components illustrated may be implemented in hardware, software, or a combination of software and hardware.

处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processingunit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (GPU), an image signal processor ( image signal processor (ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processing unit (NPU), etc. Among them, different processing units can be independent devices or integrated in one or more processors.

控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller can generate operation control signals based on the instruction operation code and timing signals to complete the control of fetching and executing instructions.

处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in processor 110 is cache memory. This memory may hold instructions or data that have been recently used or recycled by processor 110 . If the processor 110 needs to use the instructions or data again, it can be called directly from the memory. Repeated access is avoided and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.

在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括PogoPin接口、集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identitymodule,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, processor 110 may include one or more interfaces. Interfaces may include PogoPin interface, integrated circuit (inter-integrated circuit, I2C) interface, integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, pulse code modulation (pulse code modulation, PCM) interface, and universal asynchronous reception and reception transmitter (universal asynchronous receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (subscriber identity module, SIM) interface , and/or universal serial bus (USB) interface, etc.

PogoPin接口由一种有弹簧结构的精密连接器(PogoPin)构成的接口,在一些实施例中,终端设备100可以通过PogoPin接口与PogoPin设备进行通信连接,以实现对PogoPin设备的功能、通过PogoPin设备对终端设备进行操作、或者实现对PogoPin设备的软件更新。The PogoPin interface is an interface composed of a precision connector (PogoPin) with a spring structure. In some embodiments, the terminal device 100 can communicate with the PogoPin device through the PogoPin interface to realize the functions of the PogoPin device. Through the PogoPin device Operate the terminal device or update the software of the PogoPin device.

I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现终端设备100的触摸功能。The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (derail clock line, SCL). In some embodiments, processor 110 may include multiple sets of I2C buses. The processor 110 can separately couple the touch sensor 180K, charger, flash, camera 193, etc. through different I2C bus interfaces. For example, the processor 110 can be coupled to the touch sensor 180K through an I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface to implement the touch function of the terminal device 100 .

I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。The I2S interface can be used for audio communication. In some embodiments, processor 110 may include multiple sets of I2S buses. The processor 110 can be coupled with the audio module 170 through the I2S bus to implement communication between the processor 110 and the audio module 170 . In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface to implement the function of answering calls through a Bluetooth headset.

PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。The PCM interface can also be used for audio communications to sample, quantize and encode analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface to implement the function of answering calls through a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.

UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。The UART interface is a universal serial data bus used for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is generally used to connect the processor 110 and the wireless communication module 160 . For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.

MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(displayserial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现终端设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现终端设备100的显示功能。The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 . MIPI interfaces include camera serial interface (CSI), display serial interface (displayserial interface, DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate through the CSI interface to implement the shooting function of the terminal device 100. The processor 110 and the display screen 194 communicate through the DSI interface to implement the display function of the terminal device 100.

GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。The GPIO interface can be configured through software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193, display screen 194, wireless communication module 160, audio module 170, sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, I2S interface, UART interface, MIPI interface, etc.

USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为终端设备100充电,也可以用于终端设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他终端设备,例如AR设备等。The USB interface 130 is an interface that complies with USB standard specifications, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the terminal device 100, and can also be used to transmit data between the terminal device 100 and peripheral devices. It can also be used to connect headphones to play audio through them. This interface can also be used to connect other terminal devices, such as AR devices.

可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对终端设备100的结构限定。在本申请另一些实施例中,终端设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationships between the modules illustrated in the embodiments of the present application are only schematic illustrations and do not constitute a structural limitation on the terminal device 100 . In other embodiments of the present application, the terminal device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过终端设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为终端设备供电。The charging management module 140 is used to receive charging input from the charger. Among them, the charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from the wired charger through the USB interface 130 . In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through the wireless charging coil of the terminal device 100 . While charging the battery 142, the charging management module 140 can also provide power to the terminal device through the power management module 141.

电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 can also be used to monitor battery capacity, battery cycle times, battery health status (leakage, impedance) and other parameters. In some other embodiments, the power management module 141 may also be provided in the processor 110 . In other embodiments, the power management module 141 and the charging management module 140 may also be provided in the same device.

终端设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the terminal device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

天线1和天线2用于发射和接收电磁波信号。终端设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in terminal device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example: Antenna 1 can be reused as a diversity antenna for a wireless LAN. In other embodiments, antennas may be used in conjunction with tuning switches.

移动通信模块150可以提供应用在终端设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied to the terminal device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves through the antenna 1, perform filtering, amplification and other processing on the received electromagnetic waves, and transmit them to the modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves through the antenna 1 for radiation. In some embodiments, at least part of the functional modules of the mobile communication module 150 may be disposed in the processor 110 . In some embodiments, at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.

调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。A modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs sound signals through audio devices (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be independent of the processor 110 and may be provided in the same device as the mobile communication module 150 or other functional modules.

无线通信模块160可以提供应用在终端设备100上的包括无线局域网(wirelesslocal area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide information including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (BT), and global navigation satellite systems applied on the terminal device 100 (global navigation satellite system, GNSS), frequency modulation (FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 . The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.

在一些实施例中,终端设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得终端设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(codedivision multiple access,CDMA),宽带码分多址(wideband code division multipleaccess,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidounavigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellitesystem,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the terminal device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the terminal device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (codedivision multiple access, CDMA), broadband code Wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM , and/or IR technology, etc. The GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou satellite navigation system (beidounavigation satellite system, BDS), quasi-zenith satellite system (quasi- zenith satellitesystem (QZSS) and/or satellite based augmentation systems (SBAS).

终端设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The terminal device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is an image processing microprocessor and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.

显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emittingdiode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrixorganic light emitting diode的,AMOLED),柔性发光二极管(flex light-emittingdiode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot lightemitting diodes,QLED)等。在一些实施例中,终端设备100可以包括1个或N个显示屏194,N为大于1的正整数。The display screen 194 is used to display images, videos, etc. Display 194 includes a display panel. The display panel can use a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode). (AMOLED), flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diodes (QLED), etc. In some embodiments, the terminal device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.

终端设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The terminal device 100 can implement the shooting function through the ISP, camera 193, video codec, GPU, display screen 194, application processor, etc.

ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。The ISP is used to process the data fed back by the camera 193. For example, when taking a photo, the shutter is opened, the light is transmitted to the camera sensor through the lens, the optical signal is converted into an electrical signal, and the camera sensor passes the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be provided in the camera 193.

摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,终端设备100可以包括1个或N个摄像头193,N为大于1的正整数。Camera 193 is used to capture still images or video. The object passes through the lens to produce an optical image that is projected onto the photosensitive element. The photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to convert it into a digital image signal. ISP outputs digital image signals to DSP for processing. DSP converts digital image signals into standard RGB, YUV and other format image signals. In some embodiments, the terminal device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.

数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当终端设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the terminal device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.

视频编解码器用于对数字视频压缩或解压缩。终端设备100可以支持一种或多种视频编解码器。这样,终端设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。Video codecs are used to compress or decompress digital video. The terminal device 100 may support one or more video codecs. In this way, the terminal device 100 can play or record videos in multiple encoding formats, such as moving picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现终端设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can continuously learn by itself. The NPU can realize intelligent cognitive applications of the terminal device 100, such as image recognition, face recognition, speech recognition, text understanding, etc.

外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展终端设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the terminal device 100 . The external memory card communicates with the processor 110 through the external memory interface 120 to implement the data storage function. Such as saving music, videos, etc. files in external memory card.

内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储终端设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行终端设备100的各种功能应用以及数据处理。Internal memory 121 may be used to store computer executable program code, which includes instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the stored program area can store an operating system, at least one application program required for a function (such as a sound playback function, an image playback function, etc.). The storage data area may store data created during use of the terminal device 100 (such as audio data, phone book, etc.). In addition, the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the terminal device 100 by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.

终端设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The terminal device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playback, recording, etc.

音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. Audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110 , or some functional modules of the audio module 170 may be provided in the processor 110 .

扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。终端设备100可以通过扬声器170A收听音乐,或收听免提通话。Speaker 170A, also called "speaker", is used to convert audio electrical signals into sound signals. The terminal device 100 can listen to music through the speaker 170A, or listen to hands-free calls.

受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当终端设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。Receiver 170B, also called "earpiece", is used to convert audio electrical signals into sound signals. When the terminal device 100 answers a call or a voice message, the voice can be heard by bringing the receiver 170B close to the human ear.

麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。终端设备100可以设置至少一个麦克风170C。在另一些实施例中,终端设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,终端设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak close to the microphone 170C with the human mouth and input the sound signal to the microphone 170C. The terminal device 100 may be provided with at least one microphone 170C. In other embodiments, the terminal device 100 may be provided with two microphones 170C, which in addition to collecting sound signals, may also implement a noise reduction function. In other embodiments, the terminal device 100 can also be equipped with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions, etc.

耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动终端设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The headphone interface 170D is used to connect wired headphones. The headphone interface 170D may be a USB interface 130, or may be a 3.5 mm open mobile terminal platform (OMTP) standard interface or a Cellular Telecommunications Industry Association of the USA (CTIA) standard interface.

压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。终端设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,终端设备100根据压力传感器180A检测所述触摸操作强度。终端设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。The pressure sensor 180A is used to sense pressure signals and can convert the pressure signals into electrical signals. In some embodiments, pressure sensor 180A may be disposed on display screen 194 . There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. A capacitive pressure sensor may include at least two parallel plates of conductive material. When a force is applied to pressure sensor 180A, the capacitance between the electrodes changes. The terminal device 100 determines the intensity of the pressure based on the change in capacitance. When a touch operation is performed on the display screen 194, the terminal device 100 detects the strength of the touch operation according to the pressure sensor 180A. The terminal device 100 may also calculate the touched position based on the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch location but with different touch operation intensities may correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold is applied to the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold is applied to the short message application icon, an instruction to create a new short message is executed.

陀螺仪传感器180B可以用于确定终端设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定终端设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测终端设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消终端设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。The gyro sensor 180B may be used to determine the motion posture of the terminal device 100 . In some embodiments, the angular velocity of the terminal device 100 about three axes (ie, x, y, and z axes) may be determined by the gyro sensor 180B. The gyro sensor 180B can be used for image stabilization. For example, when the shutter is pressed, the gyro sensor 180B detects the angle at which the terminal device 100 shakes, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shake of the terminal device 100 through reverse movement to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.

气压传感器180C用于测量气压。在一些实施例中,终端设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。Air pressure sensor 180C is used to measure air pressure. In some embodiments, the terminal device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.

磁传感器180D包括霍尔传感器。终端设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当终端设备100是翻盖机时,终端设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。Magnetic sensor 180D includes a Hall sensor. The terminal device 100 can detect the opening and closing of the flip leather case using the magnetic sensor 180D. In some embodiments, when the terminal device 100 is a flip machine, the terminal device 100 may detect opening and closing of the flip according to the magnetic sensor 180D. Then, based on the detected opening and closing status of the leather case or the opening and closing status of the flip cover, features such as automatic unlocking of the flip cover are set.

加速度传感器180E可检测终端设备100在各个方向上(一般为三轴)加速度的大小。当终端设备100静止时可检测出重力的大小及方向。还可以用于识别终端设备姿态,应用于横竖屏切换,计步器等应用。The acceleration sensor 180E can detect the acceleration of the terminal device 100 in various directions (generally three axes). When the terminal device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of terminal devices and be used in applications such as horizontal and vertical screen switching, pedometers, etc.

距离传感器180F,用于测量距离。终端设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,终端设备100可以利用距离传感器180F测距以实现快速对焦。Distance sensor 180F for measuring distance. The terminal device 100 can measure distance through infrared or laser. In some embodiments, when shooting a scene, the terminal device 100 can use the distance sensor 180F to measure distance to achieve fast focusing.

接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。终端设备100通过发光二极管向外发射红外光。终端设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定终端设备100附近有物体。当检测到不充分的反射光时,终端设备100可以确定终端设备100附近没有物体。终端设备100可以利用接近光传感器180G检测用户手持终端设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。Proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The terminal device 100 emits infrared light through a light emitting diode. The terminal device 100 detects infrared reflected light from nearby objects using photodiodes. When sufficient reflected light is detected, it can be determined that there is an object near the terminal device 100 . When insufficient reflected light is detected, the terminal device 100 may determine that there is no object near the terminal device 100 . The terminal device 100 can use the proximity light sensor 180G to detect when the user holds the terminal device 100 close to the ear for talking, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in holster mode, and pocket mode automatically unlocks and locks the screen.

环境光传感器180L用于感知环境光亮度。终端设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测终端设备100是否在口袋里,以防误触。The ambient light sensor 180L is used to sense ambient light brightness. The terminal device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the terminal device 100 is in the pocket to prevent accidental touching.

指纹传感器180H用于采集指纹。终端设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。Fingerprint sensor 180H is used to collect fingerprints. The terminal device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, access application lock, fingerprint photography, fingerprint answering incoming calls, etc.

温度传感器180J用于检测温度。在一些实施例中,终端设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,终端设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,终端设备100对电池142加热,以避免低温导致终端设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,终端设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。Temperature sensor 180J is used to detect temperature. In some embodiments, the terminal device 100 uses the temperature detected by the temperature sensor 180J to execute the temperature processing policy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the terminal device 100 reduces the performance of a processor located near the temperature sensor 180J in order to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the terminal device 100 heats the battery 142 to avoid the low temperature causing the terminal device 100 to shut down abnormally. In some other embodiments, when the temperature is lower than another threshold, the terminal device 100 performs boosting on the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.

触摸传感器180K,也称“触控器件”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于终端设备100的表面,与显示屏194所处的位置不同。Touch sensor 180K, also known as "touch device". The touch sensor 180K can be disposed on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is used to detect a touch operation on or near the touch sensor 180K. The touch sensor can pass the detected touch operation to the application processor to determine the touch event type. Visual output related to the touch operation may be provided through display screen 194 . In other embodiments, the touch sensor 180K may also be disposed on the surface of the terminal device 100 in a position different from that of the display screen 194 .

骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。Bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human body's vocal part. The bone conduction sensor 180M can also contact the human body's pulse and receive blood pressure beating signals. In some embodiments, the bone conduction sensor 180M can also be provided in an earphone and combined into a bone conduction earphone. The audio module 170 can analyze the voice signal based on the vibration signal of the vocal vibrating bone obtained by the bone conduction sensor 180M to implement the voice function. The application processor can analyze the heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 180M to implement the heart rate detection function.

按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。终端设备100可以接收按键输入,产生与终端设备100的用户设置以及功能控制有关的键信号输入。The buttons 190 include a power button, a volume button, etc. Key 190 may be a mechanical key. It can also be a touch button. The terminal device 100 may receive key input and generate key signal input related to user settings and function control of the terminal device 100 .

马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。The motor 191 can generate vibration prompts. The motor 191 can be used for vibration prompts for incoming calls and can also be used for touch vibration feedback. For example, touch operations for different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. The motor 191 can also respond to different vibration feedback effects for touch operations in different areas of the display screen 194 . Different application scenarios (such as time reminders, receiving information, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also be customized.

指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, or may be used to indicate messages, missed calls, notifications, etc.

SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和终端设备100的接触和分离。终端设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。终端设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,终端设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在终端设备100中,不能和终端设备100分离。The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to or separated from the terminal device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195 . The terminal device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card, etc. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the plurality of cards may be the same or different. The SIM card interface 195 is also compatible with different types of SIM cards. The SIM card interface 195 is also compatible with external memory cards. The terminal device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the terminal device 100 adopts eSIM, that is, an embedded SIM card. The eSIM card can be embedded in the terminal device 100 and cannot be separated from the terminal device 100 .

终端设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的Android系统为例,示例性说明终端设备100的软件结构。The software system of the terminal device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. The embodiment of this application takes the Android system with a layered architecture as an example to illustrate the software structure of the terminal device 100 .

图2为本申请实施例提供的终端设备100的软件结构框图。FIG. 2 is a software structure block diagram of the terminal device 100 provided by the embodiment of the present application.

分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。The layered architecture divides the software into several layers, and each layer has clear roles and division of labor. The layers communicate through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: application layer, application framework layer, Android runtime (Android runtime) and system libraries, and kernel layer.

应用程序层可以包括一系列应用程序包。The application layer can include a series of application packages.

如图2所示,应用程序包可以包括软件更新,图库,相机,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。As shown in Figure 2, the application package can include software updates, gallery, camera, calling, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.

应用程序框架层为应用程序层的应用程序提供应用编程接口(applicationprogramming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions.

如图2所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。As shown in Figure 2, the application framework layer can include a window manager, content provider, view system, phone manager, resource manager, notification manager, etc.

软件更新管理器用于拉起软件更新服务并管理其进程。例如本申请实施例中,软件更新管理器可以负责拉起对PogoPin设备的软件更新服务、对PogoPin设备鉴权、软件更新图标管理以及数据跨设备间的传输。The software update manager is used to pull up the software update service and manage its processes. For example, in the embodiment of this application, the software update manager may be responsible for initiating software update services for PogoPin devices, authenticating PogoPin devices, managing software update icons, and transmitting data across devices.

窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。A window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, capture the screen, etc.

PogoPin服务提供器用来为终端设备和PogoPin设备提供通信通道服务,使得终端设备的各种应用程序与PogoPin设备之间可以实现相互访问。The PogoPin service provider is used to provide communication channel services for the terminal device and the PogoPin device, so that various applications of the terminal device and the PogoPin device can access each other.

视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如本申请实施例中,包括PogoPin设备的设备传播名的显示界面。The view system includes visual controls, such as controls that display text, controls that display pictures, etc. A view system can be used to build applications. The display interface can be composed of one or more views. For example, in the embodiment of this application, the display interface of the device propagation name of the PogoPin device is included.

电话管理器用于提供终端设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。The phone manager is used to provide communication functions of the terminal device 100 . For example, call status management (including connected, hung up, etc.).

资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。The resource manager provides various resources to applications, such as localized strings, icons, pictures, layout files, video files, etc.

通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,终端设备振动,指示灯闪烁等。The notification manager allows applications to display notification information in the status bar, which can be used to convey notification-type messages and can automatically disappear after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be notifications that appear in the status bar at the top of the system in the form of charts or scroll bar text, such as notifications for applications running in the background, or notifications that appear on the screen in the form of conversation windows. For example, text information is prompted in the status bar, a prompt sound is emitted, the terminal device vibrates, and the indicator light flashes, etc.

Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。Android Runtime includes core libraries and virtual machines. The Android runtime is responsible for the scheduling and management of the Android system.

核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。The core library contains two parts: one is the functional functions that need to be called by the Java language, and the other is the core library of Android.

应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The application layer and application framework layer run in virtual machines. The virtual machine executes the java files of the application layer and application framework layer into binary files. The virtual machine is used to perform object life cycle management, stack management, thread management, security and exception management, and garbage collection and other functions.

系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(media libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL),函数库等。System libraries can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), function library, etc.

表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。The surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.

媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, composition, and layer processing.

2D图形引擎是2D绘图的绘图引擎。2D Graphics Engine is a drawing engine for 2D drawing.

函数库为开发者提供多种服务的API接口,方便开发者快速集成并实现各种功能。The function library provides developers with API interfaces for multiple services, making it easy for developers to quickly integrate and implement various functions.

内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,存储器驱动,音频驱动,传感器驱动。例如本申请实施例中,通信服务管理器可以通过蓝牙驱动以及WiFi驱动等相关模块实现与服务器之间的通信,获取待更新的软件版本号及对应的软件更新包。The kernel layer is the layer between hardware and software. The kernel layer at least includes display driver, camera driver, memory driver, audio driver, and sensor driver. For example, in the embodiment of this application, the communication service manager can communicate with the server through related modules such as Bluetooth driver and WiFi driver to obtain the software version number to be updated and the corresponding software update package.

下面以具体地实施例对本申请的技术方案以及本申请的技术方案如何解决上述技术问题进行详细说明。下面这几个具体的实施例可以独立实现,也可以相互结合,对于相同或相似的概念或过程可能在某些实施例中不再赘述。The technical solution of the present application and how the technical solution of the present application solves the above technical problems will be described in detail below with specific embodiments. The following specific embodiments can be implemented independently or combined with each other. The same or similar concepts or processes may not be described again in some embodiments.

图3为本申请实施例提供的一种传播名显示方法300的示意性流程图。该传播名显示方法300应用于包括PogoPin设备和主设备的系统,通过主设备与PogoPin设备进行连接来实现。示例性地,终端设备作为主设备时,其硬件结构可以如图1所示,其软件结构可以如图2所示,但本申请实施例对此不作限定。Figure 3 is a schematic flow chart of a method 300 for displaying a broadcast name provided by an embodiment of the present application. The broadcast name display method 300 is applied to a system including a PogoPin device and a main device, and is implemented by connecting the main device to the PogoPin device. For example, when the terminal device serves as the master device, its hardware structure may be as shown in Figure 1 and its software structure may be as shown in Figure 2, but this is not limited in the embodiment of the present application.

参照图3,该传播名显示方法具体可以包括如下步骤:Referring to Figure 3, the communication name display method may specifically include the following steps:

S301、主设备向PogoPin设备发送数据访问请求,数据访问请求用于请求PogoPin设备的设备信息,设备信息包括PogoPin设备的设备标识和PogoPin设备的设备传播名。对应地,PogoPin设备接收该数据访问请求。S301. The master device sends a data access request to the PogoPin device. The data access request is used to request device information of the PogoPin device. The device information includes the device identification of the PogoPin device and the device propagation name of the PogoPin device. Correspondingly, the PogoPin device receives the data access request.

S302、PogoPin设备基于数据访问请求,向主设备发送PogoPin设备的设备信息。对应地,主设备接收PogoPin设备的设备信息。S302. The PogoPin device sends the device information of the PogoPin device to the main device based on the data access request. Correspondingly, the main device receives the device information of the PogoPin device.

S303、主设备基于PogoPin设备的设备信息,向PogoPin设备发送PogoPin设备对应的软件更新包。S303. The master device sends the software update package corresponding to the PogoPin device to the PogoPin device based on the device information of the PogoPin device.

S304、PogoPin设备基于软件更新包完成软件更新。S304 and PogoPin devices complete software updates based on the software update package.

S305、PogoPin设备向主设备发送指示信息,该指示信息用于指示更新成功或更新失败,指示信息包括PogoPin设备的设备标识。对应地,主设备接收该指示信息。S305. The PogoPin device sends indication information to the main device. The indication information is used to indicate update success or update failure. The indication information includes the device identification of the PogoPin device. Correspondingly, the master device receives the indication information.

S306、主设备基于指示信息确定PogoPin设备的设备传播名,并显示PogoPin设备的设备传播名。S306. The master device determines the device propagation name of the PogoPin device based on the indication information, and displays the device propagation name of the PogoPin device.

在一些可能的实现方式中,主设备与PogoPin设备通过PogoPin连接成功后,主设备即向PogoPin设备发送数据访问请求,该数据访问请求用于请求PogoPin设备的设备信息,设备信息包括PogoPin设备的设备标识和PogoPin设备的设备传播名。若由于系统配置等原因,该PogoPin设备的设备标识和设备传播名在PogoPin设备中的存储地址或访问权限不同,则该主设备此次的数据访问请求可以分两次发送,可以分别向PogoPin设备发送用于请求设备标识的第一数据访问请求,以及用于请求设备传播名的第二数据访问请求。In some possible implementations, after the main device and the PogoPin device are successfully connected through PogoPin, the main device sends a data access request to the PogoPin device. The data access request is used to request the device information of the PogoPin device. The device information includes the device of the PogoPin device. Identification and device communication name of the PogoPin device. If due to system configuration and other reasons, the storage address or access permission of the PogoPin device's device identification and device communication name are different in the PogoPin device, the data access request of the main device can be sent in two times, and can be sent to the PogoPin device separately. A first data access request requesting a device identification and a second data access request requesting a device broadcast name are sent.

在一些可能的实现方式中,PogoPin设备接收数据访问请求后,基于数据访问请求向主设备发送PogoPin设备的设备信息。主设备接收PogoPin设备的设备信息,并向PogoPin设备发送PogoPin设备对应的软件更新包。PogoPin设备基于接收到的软件更新包完成软件更新,并自动重启,重新启动成功后向主设备发送指示信息,指示信息用于指示更新成功或更新失败,该指示信息包括PogoPin设备的设备标识。主设备接收指示信息,基于指示信息确定PogoPin设备的设备传播名,并显示PogoPin设备的设备传播名。In some possible implementations, after receiving the data access request, the PogoPin device sends the device information of the PogoPin device to the main device based on the data access request. The main device receives the device information of the PogoPin device and sends the software update package corresponding to the PogoPin device to the PogoPin device. The PogoPin device completes the software update based on the received software update package and automatically restarts. After the restart is successful, it sends indication information to the main device. The indication information is used to indicate whether the update is successful or the update failed. The indication information includes the device identification of the PogoPin device. The master device receives the indication information, determines the device propagation name of the PogoPin device based on the indication information, and displays the device propagation name of the PogoPin device.

值得说明的是,用于连接PogoPin设备和主设备的PogoPin只能单通道通信,故而本申请实施例提供的方法应用于:PogoPin设备通过与主设备之间建立通信连接但并未通过其中一方对另一方进行操作的情况下。It is worth noting that the PogoPin used to connect the PogoPin device and the main device can only communicate in a single channel. Therefore, the method provided in the embodiment of this application is applied to: the PogoPin device establishes a communication connection with the main device but does not communicate through one of the parties. When the other party performs the operation.

在本申请提供的实施例中,PogoPin设备与主设备之间建立通信连接后,主设备通过与PogoPin设备之间的交互,完成对PogoPin设备的软件更新,并显示该PogoPin设备的设备传播名。通过本实施例提供的方法,可以将PogoPin设备的设备传播名显示于主设备的显示界面,可以让用户更直观地看到完成软件更新的是哪一台设备,在用户拥有多个PogoPin设备的情况下,便于用户区分,提升了用户的使用体验,有利于用户更主动地参与对PogoPin设备的软件更新,有助于推进产品升级。In the embodiment provided by this application, after a communication connection is established between the PogoPin device and the main device, the main device completes the software update of the PogoPin device through interaction with the PogoPin device, and displays the device propagation name of the PogoPin device. Through the method provided in this embodiment, the device communication name of the PogoPin device can be displayed on the display interface of the main device, allowing the user to more intuitively see which device has completed the software update. When the user owns multiple PogoPin devices, In this case, it is easier for users to distinguish, improves user experience, helps users more actively participate in software updates for PogoPin devices, and helps promote product upgrades.

作为一个可选的实施例,设备标识包括以下一种或多种:设备型号、设备序列号、唯一设备标识码、或者媒体访问控制MAC地址。As an optional embodiment, the device identification includes one or more of the following: device model, device serial number, unique device identification code, or media access control MAC address.

在一种可能的实现方式中,设备标识可以是设备型号、设备序列号、唯一设备标识码、或者媒体访问控制MAC(media access control,MAC)地址等标识符中的一种或多种,这里的设备标识是指PogoPin设备中所存储的、不会因PogoPin设备软件更新而产生变化的标识。In a possible implementation, the device identification may be one or more of the device model, device serial number, unique device identification code, or media access control MAC (media access control, MAC) address and other identifiers, where The device identification refers to the identification stored in the PogoPin device and will not change due to PogoPin device software updates.

作为一个可选的实施例,主设备基于PogoPin设备的设备信息,建立PogoPin设备的设备标识和PogoPin设备的设备传播名之间的映射关系。上述基于指示信息确定PogoPin设备的设备传播名,包括:主设备基于指示信息中包括的PogoPin设备的设备标识和映射关系,确定PogoPin设备的设备传播名。As an optional embodiment, the master device establishes a mapping relationship between the device identification of the PogoPin device and the device propagation name of the PogoPin device based on the device information of the PogoPin device. The above method of determining the device propagation name of the PogoPin device based on the indication information includes: the master device determines the device propagation name of the PogoPin device based on the device identification and mapping relationship of the PogoPin device included in the indication information.

在一种可能的实现方式中,主设备在接收到PogoPin设备发送的该PogoPin设备的设备信息后,建立PogoPin设备的设备标识和PogoPin设备的设备传播名之间的映射关系,将该设备信息及映射关系存储于本地数据库。应理解,该本地数据库可以位于主设备中的临时存储介质中作为临时缓存数据,也可以位于主设备中存储各种固定程序和数据的非易失性存储器中,作为永久数据进行保存。示例性地,临时存储介质可以是随机存取存储器(random access memory,RAM),非易失性存储器可以是只读存储器(read only memory,ROM)。In one possible implementation, after receiving the device information of the PogoPin device sent by the PogoPin device, the master device establishes a mapping relationship between the device identification of the PogoPin device and the device propagation name of the PogoPin device, and combines the device information with the device propagation name of the PogoPin device. The mapping relationship is stored in the local database. It should be understood that the local database can be located in a temporary storage medium in the main device as temporary cache data, or can be located in a non-volatile memory in the main device that stores various fixed programs and data and saved as permanent data. For example, the temporary storage medium may be random access memory (RAM), and the non-volatile memory may be read only memory (ROM).

在一种可能的实现方式中,PogoPin设备在软件更新完成后发送给主设备的指示信息中包含有该PogoPin设备的设备标识,主设备基于该设备标识以及本地数据库中存储的与该设备标识对应的映射关系,确定与该设备标识对应的设备传播名。In one possible implementation, the instruction information sent by the PogoPin device to the main device after the software update is completed contains the device identification of the PogoPin device. The main device is based on the device identification and the information corresponding to the device identification stored in the local database. The mapping relationship determines the device propagation name corresponding to the device identifier.

在本申请提供的实施例中,主设备在收到PogoPin设备发送的设备信息后,建立该设备信息中包含的设备标识和设备传播名之间的映射关系,在PogoPin设备完成更新并返回指示消息后,即可根据该指示消息中包含的PogoPin设备的设备标识,以及所存储的PogoPin设备的设备标识和PogoPin设备的设备传播名之间的映射关系,确定PogoPin设备的设备传播名。本申请实施例提供的方法,可以在主设备中存储有多个PogoPin设备的设备信息时,仍可以通过各自的设备标识确定对应的设备传播名,以使PogoPin设备的设备传播名可以正确显示。In the embodiment provided by this application, after receiving the device information sent by the PogoPin device, the master device establishes a mapping relationship between the device identifier contained in the device information and the device propagation name, and completes the update and returns the instruction message when the PogoPin device Then, the device propagation name of the PogoPin device can be determined based on the device identification of the PogoPin device included in the instruction message and the stored mapping relationship between the device identification of the PogoPin device and the device propagation name of the PogoPin device. The method provided by the embodiment of this application can still determine the corresponding device propagation name through the respective device identifiers when the device information of multiple PogoPin devices is stored in the main device, so that the device propagation name of the PogoPin device can be displayed correctly.

作为一个可选的实施例,PogoPin设备解析数据访问请求,判断数据访问请求中是否包含预设消息包头;则上述向主设备发送PogoPin设备的设备信息,包括:若数据访问请求中包含预设消息包头,则PogoPin设备向主设备发送PogoPin设备的设备信息。As an optional embodiment, the PogoPin device parses the data access request and determines whether the data access request contains a preset message header; then the above device information of the PogoPin device is sent to the main device, including: if the data access request contains a preset message header, the PogoPin device sends the device information of the PogoPin device to the main device.

在一种可能的实现方式中,PogoPin设备在收到主设备发送的数据访问请求后,首先应解析该数据访问请求,若解析出该数据访问请求中包含预设消息包头,则PogoPin设备向主设备发送PogoPin设备的设备信息。预设消息包头可以用来对主设备进行鉴权,也可以用来指示该数据访问请求对应的目的是对PogoPin设备进行软件更新,有利于开发人员识别用于软件更新的程序代码,为后续维护带来便利。可选地,预设消息包头可以是0107。In a possible implementation, after receiving the data access request sent by the master device, the PogoPin device should first parse the data access request. If the data access request contains a preset message header, the PogoPin device sends a request to the master device. The device sends the device information of the PogoPin device. The preset message header can be used to authenticate the main device, and can also be used to indicate that the purpose of the data access request is to update the software of the PogoPin device, which is helpful for developers to identify the program code used for software update and provide for subsequent maintenance. Bring convenience. Optionally, the default message header may be 0107.

作为一个可选的实施例,设备信息还包括PogoPin设备的当前软件版本号;在向PogoPin设备发送PogoPin设备对应的软件更新包之前,本申请实施例提供的传播名显示方法还包括:主设备从服务器获取与设备标识对应的待更新的软件版本号;并判断PogoPin设备的当前软件版本号与待更新的软件版本号是否相同;若不同,则主设备从服务器下载软件更新包,软件更新包与待更新的软件版本号对应;则上述向PogoPin设备发送PogoPin设备对应的软件更新包,包括:在软件更新包下载完成后,主设备向PogoPin设备发送软件更新包。As an optional embodiment, the device information also includes the current software version number of the PogoPin device; before sending the software update package corresponding to the PogoPin device to the PogoPin device, the propagation name display method provided by the embodiment of the present application also includes: the master device slaves The server obtains the software version number to be updated corresponding to the device identification; and determines whether the current software version number of the PogoPin device is the same as the software version number to be updated; if they are different, the main device downloads the software update package from the server, and the software update package is the same as the software version number to be updated. Corresponding to the version number of the software to be updated; then sending the software update package corresponding to the PogoPin device to the PogoPin device includes: after the download of the software update package is completed, the main device sends the software update package to the PogoPin device.

在一种可能的实现方式中,主设备接收到的PogoPin设备的设备信息中还包括PogoPin设备的当前软件版本号,主设备的软件更新服务被拉起后,根据收到的PogoPin设备的设备信息中包括的设备标识,从服务器获取与该设备标识对应的待更新的软件版本号,并将该待更新的软件版本号与PogoPin设备的当前软件版本号进行对比,若版本号不同,则主设备从服务器下载与待更新的软件版本号所对应的软件更新包,并在软件更新包下载完成后,将该最新下载的软件更新包发送给PogoPin设备。In a possible implementation, the device information of the PogoPin device received by the main device also includes the current software version number of the PogoPin device. After the software update service of the main device is started, the device information of the PogoPin device received by the main device is For the device identification included in the device, obtain the software version number to be updated corresponding to the device identification from the server, and compare the software version number to be updated with the current software version number of the PogoPin device. If the version numbers are different, the master device Download the software update package corresponding to the software version number to be updated from the server, and after the download of the software update package is completed, send the latest downloaded software update package to the PogoPin device.

在一种可能的实现方式中,主设备默认获取的待更新的软件版本号是当前服务器中存储的最新的软件版本号,而在用户主动设置获取目标的情况下,也可以获取历史任一软件版本号,以使用户可以根据自身需求对PogoPin设备软件版本的进行选择。In one possible implementation, the software version number to be updated obtained by the master device by default is the latest software version number stored in the current server. If the user actively sets the acquisition target, any historical software can also be obtained. Version number so that users can choose the PogoPin device software version according to their own needs.

在本申请实施例中,通过主设备对PogoPin设备的当前软件版本号和待更新的软件版本号的判断,在确认版本号不同时才进行软件更新包的下载,避免对PogoPin设备进行同一版本软件的重复更新,避免对主设备及PogoPin设备之间PogoPin通道的重复占用,同时也节约能耗。In the embodiment of this application, the main device determines the current software version number of the PogoPin device and the software version number to be updated, and downloads the software update package only when it is confirmed that the version numbers are different, thus avoiding the need to download the same version of the software to the PogoPin device. Repeated updates avoid repeated occupation of the PogoPin channel between the main device and the PogoPin device, and also save energy consumption.

作为一个可选的实施例,在主设备从服务器下载软件更新包之前,本申请实施例提供的传播名显示方法还包括:主设备显示PogoPin设备的设备传播名和第一选择按钮,第一选择按钮用于选择是否下载软件更新包;则上述主设备从服务器下载软件更新包,包括:响应于用户基于第一选择按钮进行的确认下载操作,主设备从服务器下载软件更新包。As an optional embodiment, before the main device downloads the software update package from the server, the propagation name display method provided by the embodiment of the present application also includes: the main device displays the device propagation name of the PogoPin device and the first selection button. is used to select whether to download the software update package; then the above-mentioned main device downloads the software update package from the server, including: in response to the user's confirmation download operation based on the first selection button, the main device downloads the software update package from the server.

在一种可能的实现方式中,在主设备接收到PogoPin设备发送的设备信息,并拉起软件更新服务但未下载软件更新包之前,主设备界面显示PogoPin设备的设备传播名和第一选择按钮,该第一选择按钮用于选择是否下载软件更新包。并在用户根据第一选择按钮进行确认下载的选择操作后,响应于用户选择的确认下载操作,从服务器下载软件更新包。In one possible implementation, before the main device receives the device information sent by the PogoPin device and starts the software update service but does not download the software update package, the main device interface displays the device communication name and first selection button of the PogoPin device. The first selection button is used to select whether to download the software update package. And after the user performs a selection operation of confirming the download according to the first selection button, in response to the confirmation operation of downloading selected by the user, the software update package is downloaded from the server.

作为一个可选的实施例,在主设备从服务器下载软件更新包之后,本申请实施例提供的传播名显示方法还包括:主设备显示PogoPin设备的设备传播名和第二选择按钮,第二选择按钮用于选择是否进行软件更新;则上述向PogoPin设备发送软件更新包,包括:响应于用户基于第二选择按钮进行的确认更新操作,主设备向PogoPin设备发送软件更新包。As an optional embodiment, after the main device downloads the software update package from the server, the propagation name display method provided by the embodiment of the present application also includes: the main device displays the device propagation name of the PogoPin device and a second selection button. The second selection button Used to select whether to perform software updates; the above-mentioned sending of a software update package to the PogoPin device includes: in response to the user's confirmation update operation based on the second selection button, the main device sends a software update package to the PogoPin device.

在一种可能的实现方式中,主设备在下载软件更新包之后但还未将该软件更新包发送给PogoPin设备时,主设备界面显示PogoPin设备的设备传播名和第二选择按钮,第二选择按钮用于选择是否进行软件更新。并在用户进行立即更新的选择操作后,响应于用户的选择操作,将软件更新包发送至PogoPin设备以实现对该PogoPin设备的软件更新。In a possible implementation, after the main device downloads the software update package but has not yet sent the software update package to the PogoPin device, the main device interface displays the device propagation name of the PogoPin device and the second selection button. Used to choose whether to perform software updates. And after the user performs the selection operation of immediate update, in response to the user's selection operation, the software update package is sent to the PogoPin device to implement the software update of the PogoPin device.

在本申请实施例中,主设备在对PogoPin设备进行软件更新的过程中,可以直观的显示正在进行软件更新的PogoPin设备的设备传播名,并可基于用户的选择执行后续动作,用户可对该软件更新进程进行把控,提升了用户体验。In the embodiment of this application, during the process of software update of the PogoPin device, the main device can intuitively display the device propagation name of the PogoPin device that is undergoing software update, and can perform subsequent actions based on the user's selection. The user can The software update process is controlled to improve user experience.

为了方便理解,下面以主设备为平板电脑、PogoPin设备为键盘为示例,对本申请提供的传播名显示方法作进一步说明。本申请实施例中对主设备和PogoPin设备的设定仅为示例性地,其他主设备与PogoPin设备的可行性组合也均在本申请的保护范围之内。In order to facilitate understanding, the following uses the main device as a tablet computer and the PogoPin device as a keyboard as an example to further explain the broadcast name display method provided by this application. The settings of the main device and the PogoPin device in the embodiment of this application are only exemplary, and other feasible combinations of the main device and the PogoPin device are also within the protection scope of this application.

如图4所示,图4(a)为本申请实施例提供的主设备正面示意图,图4(b)为本申请实施例提供的主设备背面示意图。如图4(b)所示主设备的背面,有PogoPin触点401,该触点可以是一个或多个,本申请对主设备上PogoPin触点的位置不作具体限定,其位置可以在主设备的背面,也可以在主设备的侧边等任一可实现的位置。As shown in Figure 4, Figure 4(a) is a schematic front view of the main device provided by an embodiment of the present application, and Figure 4(b) is a schematic back view of the main device provided by an embodiment of the present application. As shown in Figure 4(b), there is a PogoPin contact 401 on the back of the main device. This contact can be one or more. This application does not specifically limit the position of the PogoPin contact on the main device. Its position can be on the main device. on the back of the main device, or in any feasible position such as the side of the main device.

示例性地,PogoPin设备可以是如图5所示的键盘,键盘上设置有PogoPin触点501。本申请实施例对该键盘上的触点位置及键盘本体的形态均不作具体限定。For example, the PogoPin device may be a keyboard as shown in Figure 5, with PogoPin contacts 501 provided on the keyboard. The embodiment of the present application does not specifically limit the position of the contact points on the keyboard or the shape of the keyboard body.

示例性地,如图4所示的平板电脑可以和如图5所示的键盘通过其上各自的PogoPin触点401和PogoPin触点501,以图6所示的方式进行连接。应理解,任意形态下的PogoPin设备和主设备,在配合使用时,两台设备上PogoPin触点位置应相互契合。For example, the tablet computer shown in Figure 4 can be connected to the keyboard shown in Figure 5 through the respective PogoPin contacts 401 and PogoPin contacts 501 in the manner shown in Figure 6 . It should be understood that when the PogoPin device and the main device in any form are used together, the positions of the PogoPin contacts on the two devices should match each other.

示例性地,如图4所示的平板电脑和如图5所示的键盘通过图6所示方法进行连接后,用户未通过键盘来对平板电脑进行编辑操作,平板电脑处于屏幕亮起状态。此时平板电脑检测到有键盘接入,即向键盘发送数据访问请求,以请求该键盘的设备信息,随后平板电脑基于获取到的键盘的设备信息自动拉起对键盘的软件更新服务。For example, after the tablet computer shown in Figure 4 and the keyboard shown in Figure 5 are connected through the method shown in Figure 6, the user does not perform editing operations on the tablet computer through the keyboard, and the tablet computer is in a screen-on state. At this time, the tablet computer detects that a keyboard is connected, and sends a data access request to the keyboard to request the device information of the keyboard. Then the tablet computer automatically launches the software update service for the keyboard based on the obtained device information of the keyboard.

在一种可能的实现方式中,键盘的设备信息包括该键盘的设备标识、当前软件版本号和设备传播名。该设备传播名可由用户自行编辑保存,例如可设置为:张三的蓝色键盘。在对该键盘进行软件更新过程中所显示的设备传播名,可以是用户最新编辑并保存的传播名,有利于用户直观的认识到正在软件更新的具体是哪一台设备。In a possible implementation, the device information of the keyboard includes the device identification, current software version number and device propagation name of the keyboard. The device communication name can be edited and saved by the user. For example, it can be set to: Zhang San’s blue keyboard. The device propagation name displayed during the software update process of the keyboard can be the latest propagation name edited and saved by the user, which is helpful for the user to intuitively recognize which device is being updated.

示例性地,图7为本申请实施例提供的一种传播名显示方法显示界面示意图。平板电脑拉起对键盘的软件更新服务后,根据获取到的键盘的设备信息,判断出该设备信息中所包含的当前软件版本号与待更新的软件版本号不同,则在平板电脑主屏幕界面上对应的软件更新应用程序图标右上角显示“①”,意味着有软件更新可用,如图7(a)所示;响应于用户对该图标的点击操作,平板电脑跳转至如图7(b)所示的显示界面,该界面至少可以显示键盘的传播名和第一选择按钮,第一选择按钮用于供用户选择是否下载待更新的软件版本号对应的软件升级包。可选地,该界面还可以显示待更新的软件版本号、该版本对应的软件升级包的大小以及本次软件更新所解决的历史问题等其他信息。Exemplarily, FIG. 7 is a schematic diagram of a display interface of a method for displaying a broadcast name provided by an embodiment of the present application. After the tablet computer starts the software update service for the keyboard, based on the obtained device information of the keyboard, it is determined that the current software version number contained in the device information is different from the software version number to be updated, and then the tablet computer home screen interface The upper right corner of the corresponding software update application icon displays "①", which means that a software update is available, as shown in Figure 7(a); in response to the user's click on the icon, the tablet jumps to Figure 7( The display interface shown in b) can at least display the communication name of the keyboard and a first selection button. The first selection button is used for the user to choose whether to download the software upgrade package corresponding to the software version number to be updated. Optionally, the interface can also display other information such as the version number of the software to be updated, the size of the software upgrade package corresponding to the version, and historical problems solved by this software update.

示例性地,平板电脑响应于用户对图7(b)中确认下载按钮的点击操作,从服务器下载与待更新的软件版本号对应的软件更新包,并在下载完成后,平板电脑跳转至如图7(c)所示的显示界面,该界面至少可以显示键盘的传播名和第二选择按钮,第二选择按钮用于供用户选择是否立即更新。可选地,该界面还可以显示待更新的软件版本号、该版本对应的软件升级包的大小、本次软件更新所解决的历史问题,以及软件更新包的下载状态等其他信息。Exemplarily, in response to the user's click operation on the download confirmation button in Figure 7(b), the tablet computer downloads the software update package corresponding to the software version number to be updated from the server, and after the download is completed, the tablet computer jumps to As shown in the display interface shown in Figure 7(c), this interface can at least display the communication name of the keyboard and a second selection button. The second selection button is used for the user to choose whether to update immediately. Optionally, the interface can also display the software version number to be updated, the size of the software upgrade package corresponding to this version, historical problems solved by this software update, and other information such as the download status of the software update package.

示例性地,平板电脑响应于用户对图7(c)中确认更新按钮的点击操作,将已下载的软件更新包发送至键盘,以使键盘根据该软件更新包完成软件更新并重启后,将指示信息发送至平板电脑,平板电脑则可根据指示信息中包含的软件更新成功信息,将显示界面跳转至如图7(d)所示的显示界面。可选地,若键盘软件更新失败,则平板电脑获取到的指示信息包含的是软件更新失败信息,此时平板电脑显示界面至少可以包含该键盘的传播名和软件更新失败的提示信息。For example, in response to the user's click on the update confirmation button in Figure 7(c), the tablet computer sends the downloaded software update package to the keyboard, so that after the keyboard completes the software update according to the software update package and restarts, The instruction information is sent to the tablet computer, and the tablet computer can jump to the display interface as shown in Figure 7(d) according to the software update success information contained in the instruction information. Optionally, if the keyboard software update fails, the indication information obtained by the tablet computer includes the software update failure information. At this time, the tablet computer display interface can at least include the propagation name of the keyboard and the prompt information of the software update failure.

值得说明的是,若在如图7(b)或图7(c)的显示界面用户点击“稍后提醒”按钮,则应响应于用户该操作,在平板电脑预设的默认时段后,再提醒用户进行后续操作。预设的默认时段也可以由用户自行设置,例如可以设置1小时后再次提醒操作。It is worth mentioning that if the user clicks the "Remind Later" button on the display interface as shown in Figure 7(b) or Figure 7(c), then in response to the user's operation, after the default period preset by the tablet computer, Remind the user for follow-up actions. The preset default time period can also be set by the user. For example, it can be set to remind the operation again after 1 hour.

示例性地,图8为本申请实施例提供的另一种传播名显示方法显示界面示意图。平板电脑在拉起对键盘的软件更新服务后,根据获取到的键盘的设备信息,判断出该设备信息中所包含的当前软件版本号与待更新的软件版本号不同时,也可以直接在主屏幕显示如图8(a)所示的提示框,该提示框用于显示键盘的传播名和第一选择按钮,第一选择按钮用于供用户选择是否下载待更新的软件版本号对应的软件升级包;响应于用户对图8(a)中确认下载按钮的点击操作,平板电脑从服务器下载与待更新的软件版本号对应的软件更新包,并在下载完成后,在主屏幕显示如图8(b)所示的提示框,该提示框用于显示键盘的传播名和第二选择按钮,第二选择按钮用于供用户选择是否立即更新;响应于用户对图8(b)中确认更新按钮的点击操作,平板电脑将已下载的软件更新包发送至键盘,以使键盘根据该软件更新包完成软件更新并重启后,将指示信息发送至平板电脑,平板电脑则可根据指示信息中包含的软件更新成功信息,显示如8(c)所示的提示框界面。如图8所示,在平板电脑对键盘进行软件更新的过程中,用户全程可直观的获知传播名为“张三的蓝色键盘”的键盘的软件更新进程和最终状态,提高了用户的使用体验。Exemplarily, FIG. 8 is a schematic diagram of the display interface of another method for displaying publicity names provided by an embodiment of the present application. After the tablet computer starts the software update service for the keyboard, based on the obtained device information of the keyboard, it determines that the current software version number contained in the device information is different from the software version number to be updated. It can also directly update the keyboard on the main computer. The screen displays a prompt box as shown in Figure 8(a). The prompt box is used to display the communication name of the keyboard and the first selection button. The first selection button is used for the user to choose whether to download the software upgrade corresponding to the software version number to be updated. package; in response to the user clicking the download confirmation button in Figure 8(a), the tablet computer downloads the software update package corresponding to the software version number to be updated from the server, and after the download is completed, it is displayed on the home screen as shown in Figure 8 The prompt box shown in (b) is used to display the communication name of the keyboard and a second selection button. The second selection button is used for the user to choose whether to update immediately; in response to the user confirming the update button in Figure 8(b) Click operation, the tablet computer will send the downloaded software update package to the keyboard, so that after the keyboard completes the software update according to the software update package and restarts, it will send the instruction information to the tablet computer, and the tablet computer can follow the instructions contained in the instruction information. Software update success information displays the prompt box interface shown in 8(c). As shown in Figure 8, during the software update process of the keyboard on the tablet computer, the user can intuitively know the software update process and final status of the keyboard named "Zhang San's Blue Keyboard" throughout the process, which improves the user's use experience.

示例性地,图9为本申请实施例提供的又一种传播名显示方法显示界面示意图,如图9所示,上述图8所描述的平板电脑显示界面也可以以图9的形式体现,图9中以平板电脑顶部通知栏的形式分别展现了:显示键盘的传播名和第一选择按钮的界面(如图9(a)所示)、显示键盘的传播名和第二选择按钮的界面(如图9(b)所示),以及显示键盘的传播名和软件更新已完成的界面(如图9(c)所示),此过程中平板电脑与键盘的交互动作与上述图7、图8中类似,不再赘述。本申请对软件升级过程中键盘的传播名显示形式不作具体限定。Exemplarily, FIG. 9 is a schematic diagram of the display interface of another method for displaying public names provided by the embodiment of the present application. As shown in FIG. 9, the tablet computer display interface described in FIG. 8 above can also be embodied in the form of FIG. 9. FIG. 9 respectively shows in the form of the notification bar on the top of the tablet computer: the interface that displays the communication name of the keyboard and the first selection button (as shown in Figure 9(a)), the interface that displays the communication name of the keyboard and the second selection button (as shown in Figure 9(a)) 9(b)), and the interface showing the keyboard’s propagation name and software update completion (shown in Figure 9(c)). The interaction between the tablet and the keyboard during this process is similar to that in Figures 7 and 8 above. ,No longer. This application does not specifically limit the display form of the propagation name on the keyboard during the software upgrade process.

在一种可能的实现方式中,用户可以通过平板电脑自行选择对键盘进行软件更新的时机,若用户选择了静默升级,则对键盘的软件升级会在平板电脑息屏状态下进行,并在用户下次打开平板电脑时,对键盘的软件更新状态进行显示。可选的,该显示方式可以是图8(c)或如图9(c)等形式。In one possible implementation, the user can choose the time to update the software of the keyboard through the tablet computer. If the user chooses to upgrade silently, the software upgrade of the keyboard will be carried out while the tablet computer is screen-free, and will be performed when the user Display the keyboard's software update status the next time you turn on the tablet. Optionally, the display mode may be in the form of Figure 8(c) or Figure 9(c).

图10为本申请提供的另一种传播名显示方法1000的示意性流程图。该方法1000应用于包括PogoPin设备和主设备的系统,通过主设备与PogoPin设备进行连接来实现。主设备中包括PogoPin服务和软件更新服务,其中,PogoPin服务为主设备和PogoPin设备提供通信通道,软件更新服务可以为PogoPin设备进行软件更新。参照图10,该传播名显示方法1000具体可以包括如下步骤:FIG. 10 is a schematic flow chart of another method 1000 for displaying publicity names provided by this application. The method 1000 is applied to a system including a PogoPin device and a master device, and is implemented by connecting the master device to the PogoPin device. The main device includes the PogoPin service and the software update service. The PogoPin service provides a communication channel between the main device and the PogoPin device, and the software update service can update software for the PogoPin device. Referring to Figure 10, the broadcast name display method 1000 may specifically include the following steps:

S1001、PogoPin服务向PogoPin设备发送数据访问请求,数据访问请求用于请求PogoPin设备的设备信息,设备信息包括PogoPin设备的设备标识和PogoPin设备的设备传播名。对应地,PogoPin设备接收该数据访问请求。S1001. The PogoPin service sends a data access request to the PogoPin device. The data access request is used to request device information of the PogoPin device. The device information includes the device identification of the PogoPin device and the device propagation name of the PogoPin device. Correspondingly, the PogoPin device receives the data access request.

S1002、PogoPin设备基于数据访问请求,向PogoPin服务发送PogoPin设备的设备信息。对应地,PogoPin服务接收PogoPin设备的设备信息。S1002. The PogoPin device sends the device information of the PogoPin device to the PogoPin service based on the data access request. Correspondingly, the PogoPin service receives the device information of the PogoPin device.

S1003、PogoPin服务将PogoPin设备的设备信息发送至软件更新服务,以拉起软件更新服务。S1003. The PogoPin service sends the device information of the PogoPin device to the software update service to launch the software update service.

S1004、软件更新服务接收PogoPin设备的设备信息,基于该设备信息,建立PogoPin设备的设备标识和PogoPin设备的设备传播名之间的映射关系,并将该设备标识、设备传播名及其对的映射关系存储。S1004. The software update service receives the device information of the PogoPin device, and based on the device information, establishes a mapping relationship between the device identification of the PogoPin device and the device propagation name of the PogoPin device, and maps the device identification, device propagation name and their pairs. Relational storage.

S1005、软件更新服务从服务器获取与设备标识对应的待更新的软件版本号;判断PogoPin设备的设备信息中所包含的当前软件版本号与待更新的软件版本号是否相同;若不同,则显示PogoPin设备的设备传播名和第一选择按钮,第一选择按钮用于选择是否下载软件更新包。S1005. The software update service obtains the software version number to be updated corresponding to the device identification from the server; determines whether the current software version number contained in the device information of the PogoPin device is the same as the software version number to be updated; if they are different, display PogoPin The device spreading name of the device and the first selection button. The first selection button is used to select whether to download the software update package.

S1006、软件更新服务响应于用户基于第一选择按钮进行的确认下载操作,从服务器下载软件更新包,并在下载完成后显示PogoPin设备的设备传播名和第二选择按钮,第二选择按钮用于选择是否进行软件更新。S1006. The software update service downloads the software update package from the server in response to the user's confirmation download operation based on the first selection button, and displays the device spreading name of the PogoPin device and the second selection button after the download is completed. The second selection button is used for selection. Whether to perform software updates.

S1007、软件更新服务响应用户基于第二选择按钮进行的确认更新操作。S1007. The software update service responds to the user's update confirmation operation based on the second selection button.

S1008、软件更新服务将软件更新包通过PogoPin服务发送至PogoPin设备。相应地,PogoPin设备接收该软件更新包。S1008. The software update service sends the software update package to the PogoPin device through the PogoPin service. Accordingly, the PogoPin device receives the software update package.

S1009、PogoPin设备基于软件更新包完成软件更新,并重启。S1009. The PogoPin device completes the software update based on the software update package and restarts.

S1010、PogoPin设备通过PogoPin服务向软件更新服务发送指示信息,该指示信息用于指示更新成功或更新失败,指示信息包括PogoPin设备的设备标识。对应地,软件更新服务接收该指示信息。S1010. The PogoPin device sends indication information to the software update service through the PogoPin service. The indication information is used to indicate update success or update failure. The indication information includes the device identification of the PogoPin device. Correspondingly, the software update service receives the indication information.

S1011、软件更新服务基于指示信息中包括的PogoPin设备的设备标识,以及存储的该设备标识和设备传播名之间的映射关系,确定PogoPin设备的设备传播名,并显示PogoPin设备的设备传播名。S1011. The software update service determines the device propagation name of the PogoPin device based on the device identification of the PogoPin device included in the instruction information and the stored mapping relationship between the device identification and the device propagation name, and displays the device propagation name of the PogoPin device.

在一种可能的实现方式中,主设备与PogoPin设备通过PogoPin进行连接后,主设备中的PogoPin服务检测到本机所连接的PogoPin设备,即向该PogoPin设备发送数据访问请求,数据访问请求用于请求PogoPin设备的设备信息,设备信息包括PogoPin设备的设备标识、PogoPin设备的设备传播名及该PogoPin设备的当前软件版本号。该设备标识包括设备型号、设备序列号、唯一设备标识码或者MAC地址中的一种或多种。In one possible implementation, after the main device and the PogoPin device are connected through PogoPin, the PogoPin service in the main device detects the PogoPin device connected to the main device, and then sends a data access request to the PogoPin device. The data access request uses When requesting the device information of the PogoPin device, the device information includes the device identification of the PogoPin device, the device propagation name of the PogoPin device and the current software version number of the PogoPin device. The device identification includes one or more of the device model, device serial number, unique device identification code, or MAC address.

在本申请提供的实施例中,主设备与PogoPin设备连接后,可以通过PogoPin通信通道进行交互,以完成对PogoPin设备的软件更新,还可以在主设备的软件更新服务从服务器下载软件更新包之前和/或之后,显示设备传播名和选择按钮,以使用户可以直观获知该设备传播名对应的PogoPin设备的软件更新进程,最后还可以根据接收到的PogoPin设备的指示信息,显示PogoPin设备的设备传播名及其软件更新结果。通过本申请实施例提供的方法,可以让用户更直观地看到完成软件更新的是哪一台设备,在用户拥有多个PogoPin设备的情况下,便于用户区分,提升了用户体验,提高了用户对产品的认可度。In the embodiment provided by this application, after the main device is connected to the PogoPin device, they can interact through the PogoPin communication channel to complete the software update of the PogoPin device, and before the software update service of the main device downloads the software update package from the server and/or afterwards, display the device propagation name and selection button, so that the user can intuitively know the software update process of the PogoPin device corresponding to the device propagation name, and finally display the device propagation of the PogoPin device according to the received instruction information of the PogoPin device. name and its software update results. Through the method provided by the embodiment of this application, the user can more intuitively see which device has completed the software update. When the user has multiple PogoPin devices, it is convenient for the user to distinguish, improves the user experience, and improves the user experience. Product recognition.

可以理解的是,在本申请的实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请的实施例的实施过程构成任何限定。It can be understood that in the embodiments of the present application, the size of the sequence numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its functions and internal logic, and should not be used in the implementation of the present application. The implementation of the examples does not constitute any limitations.

上文中结合图1至图10,详细描述了本申请实施例的传播名显示方法,下面将结合图11和图12,详细描述本申请实施例的终端设备。The broadcast name display method according to the embodiment of the present application has been described in detail with reference to FIGS. 1 to 10 . Next, the terminal device according to the embodiment of the present application will be described in detail with reference to FIGS. 11 and 12 .

图11为本申请提供的一种终端设备的结构示意图。参照图11,该终端设备1100包括:收发模块1101和处理模块1102。Figure 11 is a schematic structural diagram of a terminal device provided by this application. Referring to Figure 11, the terminal device 1100 includes: a transceiver module 1101 and a processing module 1102.

收发模块1101,用于向PogoPin设备发送数据访问请求,数据访问请求用于请求PogoPin设备的设备信息,设备信息包括PogoPin设备的设备标识和PogoPin设备的设备传播名;收发模块1101,还用于接收来自PogoPin设备的PogoPin设备的设备信息,并向PogoPin设备发送PogoPin设备对应的软件更新包;以及,用于接收来自PogoPin设备的指示信息,指示信息用于指示更新成功或更新失败,指示信息包括PogoPin设备的设备标识;处理模块1102,用于基于指示信息,确定PogoPin设备的设备传播名,并显示PogoPin设备的设备传播名。The transceiver module 1101 is used to send a data access request to the PogoPin device. The data access request is used to request the device information of the PogoPin device. The device information includes the device identification of the PogoPin device and the device propagation name of the PogoPin device; the transceiver module 1101 is also used to receive PogoPin device device information from the PogoPin device, and send the software update package corresponding to the PogoPin device to the PogoPin device; and, be used to receive indication information from the PogoPin device, the indication information is used to indicate that the update is successful or the update fails, and the indication information includes PogoPin The device identification of the device; the processing module 1102 is configured to determine the device propagation name of the PogoPin device based on the indication information, and display the device propagation name of the PogoPin device.

可选地,设备标识包括以下一种或多种:设备型号、设备序列号、唯一设备标识码、或者媒体访问控制MAC地址。Optionally, the device identification includes one or more of the following: device model, device serial number, unique device identification code, or media access control MAC address.

可选地,处理模块1102,还用于基于PogoPin设备的设备信息,建立PogoPin设备的设备标识和PogoPin设备的设备传播名之间的映射关系;以及,基于指示信息中包括的PogoPin设备的设备标识和映射关系,确定PogoPin设备的设备传播名。Optionally, the processing module 1102 is also configured to establish a mapping relationship between the device identification of the PogoPin device and the device propagation name of the PogoPin device based on the device information of the PogoPin device; and, based on the device identification of the PogoPin device included in the indication information and mapping relationship to determine the device propagation name of the PogoPin device.

可选地,设备信息还包括PogoPin设备的当前软件版本号;处理模块1102,还用于从服务器获取与设备标识对应的待更新的软件版本号;并判断PogoPin设备的当前软件版本号与待更新的软件版本号是否相同;若不同,则从服务器下载软件更新包,软件更新包与待更新的软件版本号对应;收发模块1101,则具体用于在软件更新包下载完成后,向PogoPin设备发送软件更新包。Optionally, the device information also includes the current software version number of the PogoPin device; the processing module 1102 is also used to obtain the software version number to be updated corresponding to the device identification from the server; and determine the current software version number of the PogoPin device and the software version number to be updated. Is the software version number of Software update package.

可选地,处理模块1102,还用于在从服务器下载软件更新包之前,显示PogoPin设备的设备传播名和第一选择按钮,第一选择按钮用于选择是否下载软件更新包;以及,响应于用户基于第一选择按钮进行的确认下载操作,从服务器下载软件更新包。Optionally, the processing module 1102 is also configured to display the device distribution name of the PogoPin device and a first selection button before downloading the software update package from the server. The first selection button is used to select whether to download the software update package; and, in response to the user Based on the confirmation download operation of the first selection button, the software update package is downloaded from the server.

可选地,处理模块1102,还用于在从服务器下载软件更新包之后,显示PogoPin设备的设备传播名和第二选择按钮,第二选择按钮用于选择是否进行软件更新;以及,响应于用户基于第二选择按钮进行的确认更新操作,向PogoPin设备发送软件更新包。Optionally, the processing module 1102 is also configured to display the device distribution name of the PogoPin device and a second selection button after downloading the software update package from the server. The second selection button is used to select whether to perform software updates; and, in response to the user based on The second selection button confirms the update operation and sends the software update package to the PogoPin device.

应理解,这里的终端设备1100以功能模块的形式体现。这里的术语“模块”可以指应用特有集成电路(application specific integrated circuit,ASIC)、电子电路、用于执行一个或多个软件或固件程序的处理器(例如共享处理器、专有处理器或组处理器等)和存储器、合并逻辑电路和/或其它支持所描述的功能的合适组件。在一个可选例子中,本领域技术人员可以理解,终端设备1100可以具体为上述实施例中的主设备,终端设备1100可以用于执行上述方法实施例中与主设备对应的各个流程和/或步骤,为避免重复,在此不再赘述。It should be understood that the terminal device 1100 here is embodied in the form of a functional module. The term "module" as used herein may refer to an application specific integrated circuit (ASIC), an electronic circuit, a processor (such as a shared processor, a dedicated processor, or a group of processors) for executing one or more software or firmware programs. processor, etc.) and memory, merged logic circuitry, and/or other suitable components to support the described functionality. In an optional example, those skilled in the art can understand that the terminal device 1100 can be specifically the main device in the above embodiment, and the terminal device 1100 can be used to execute various processes corresponding to the main device in the above method embodiment and/or To avoid repetition, the steps will not be repeated here.

上述终端设备1100具有实现上述方法中主设备执行的相应步骤的功能;上述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。例如,上述收发模块1101可以包括发送模块和接收模块,该发送模块可以用于实现上述收发模块对应的用于执行发送动作的各个步骤和/或流程,该接收模块可以用于实现上述收发模块对应的用于执行接收动作的各个步骤和/或流程。该发送模块可以由发射器替代,该接收模块可以由接收器替代,分别执行各个方法实施例中的收发操作以及相关的处理操作。The above-mentioned terminal device 1100 has the function of implementing the corresponding steps performed by the master device in the above-mentioned method; the above-mentioned functions can be implemented by hardware, or can also be implemented by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions. For example, the above-mentioned transceiver module 1101 may include a sending module and a receiving module. The sending module may be used to implement various steps and/or processes for performing sending actions corresponding to the above-mentioned transceiving module. The receiving module may be used to implement the corresponding steps and/or processes of the above-mentioned transceiving module. The various steps and/or processes used to perform the receiving action. The sending module can be replaced by a transmitter, and the receiving module can be replaced by a receiver, which respectively performs the sending and receiving operations and related processing operations in each method embodiment.

在本申请的实施例,图11中的终端设备1100也可以是芯片或者芯片系统,例如:片上系统(system on chip,SOC)。对应的,收发模块1101可以是该芯片的收发电路,在此不做限定。In this embodiment of the present application, the terminal device 1100 in FIG. 11 may also be a chip or a chip system, such as a system on chip (SOC). Correspondingly, the transceiver module 1101 may be the transceiver circuit of the chip, which is not limited here.

图12为本申请实施例提供的另一种终端设备1200的示意性框图。该装置1200包括处理器1201、收发器1202和存储器1203。其中,处理器1201、收发器1202和存储器1203通过内部连接通路互相通信,该存储器1203用于存储指令,该处理器1201用于执行该存储器1203存储的指令,以控制该收发器1202接收和/或发送信号。Figure 12 is a schematic block diagram of another terminal device 1200 provided by an embodiment of the present application. The device 1200 includes a processor 1201, a transceiver 1202 and a memory 1203. Among them, the processor 1201, the transceiver 1202 and the memory 1203 communicate with each other through internal connection paths. The memory 1203 is used to store instructions, and the processor 1201 is used to execute the instructions stored in the memory 1203 to control the transceiver 1202 to receive and/or or send a signal.

应理解,装置1200可以具体为上述实施例中的主设备,并且可以用于执行上述方法中与主设备对应的各个步骤和/或流程。可选地,该存储器1203可以包括只读存储器和随机存取存储器,并向处理器1201提供指令和数据。存储器的一部分还可以包括非易失性随机存取存储器。例如,存储器1203还可以存储设备类型的信息。该处理器1201可以用于执行存储器1203中存储的指令,并且当该处理器1201执行存储器中存储的指令时,该处理器1201用于执行上述方法的各个步骤和/或流程。该收发器1202可以包括发射器和接收器,该发射器可以用于实现上述收发器对应的用于执行发送动作的各个步骤和/或流程,该接收器可以用于实现上述收发器对应的用于执行接收动作的各个步骤和/或流程。It should be understood that the device 1200 may be specifically a master device in the above embodiment, and may be used to perform various steps and/or processes corresponding to the master device in the above method. Optionally, the memory 1203 may include read-only memory and random access memory, and provide instructions and data to the processor 1201. A portion of the memory may also include non-volatile random access memory. For example, the memory 1203 may also store device type information. The processor 1201 can be used to execute instructions stored in the memory 1203, and when the processor 1201 executes the instructions stored in the memory, the processor 1201 is used to execute various steps and/or processes of the above method. The transceiver 1202 may include a transmitter and a receiver. The transmitter may be used to implement the steps and/or processes corresponding to the above-mentioned transceiver for performing sending actions. The receiver may be used to implement the functions corresponding to the above-mentioned transceiver. To perform various steps and/or processes of receiving actions.

应理解,在本申请实施例中,该处理器可以是中央处理单元(central processingunit,CPU),该处理器还可以是其他通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that in the embodiment of the present application, the processor may be a central processing unit (CPU), or other general-purpose processor, digital signal processor (DSP), or application specific integrated circuit (ASIC). , field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.

在实现过程中,上述方法的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。结合本申请实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器执行存储器中的指令,结合其硬件完成上述方法的步骤。为避免重复,这里不再详细描述。During the implementation process, each step of the above method can be completed by instructions in the form of hardware integrated logic circuits or software in the processor. The steps of the methods disclosed in conjunction with the embodiments of the present application can be directly implemented by a hardware processor for execution, or can be executed by a combination of hardware and software modules in the processor. The software module can be located in random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers and other mature storage media in this field. The storage medium is located in the memory, and the processor executes the instructions in the memory and completes the steps of the above method in combination with its hardware. To avoid repetition, it will not be described in detail here.

本申请实施例还提供了一种传播名显示系统。该传播名显示系统包括:PogoPin设备和如图11所示的终端设备1100,或者,PogoPin设备和如图12所示的终端设备1200。该PogoPin设备和终端设备(终端设备1100或终端设备1200)通过PogoPin相连接,可用来实现上述实施例中对应的传播名显示方法。The embodiment of the present application also provides a broadcast name display system. The broadcast name display system includes: a PogoPin device and a terminal device 1100 as shown in Figure 11, or a PogoPin device and a terminal device 1200 as shown in Figure 12. The PogoPin device and the terminal device (terminal device 1100 or terminal device 1200) are connected through PogoPin and can be used to implement the corresponding broadcast name display method in the above embodiment.

本申请还提供了一种计算机可读存储介质,该计算机可读存储介质用于存储计算机程序,该计算机程序用于实现上述实施例中与主设备对应的方法。This application also provides a computer-readable storage medium, which is used to store a computer program. The computer program is used to implement the method corresponding to the master device in the above embodiment.

本申请还提供了一种计算机程序产品,该计算机程序产品包括计算机程序代码,当该计算机程序代码在计算机上运行时,该计算机可以执行上述实施例所示的主设备所对应的方法。This application also provides a computer program product. The computer program product includes computer program code. When the computer program code is run on a computer, the computer can execute the method corresponding to the main device shown in the above embodiment.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的模块及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art can appreciate that the modules and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each specific application, but such implementations should not be considered beyond the scope of this application.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, devices and modules described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be described again here.

在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或模块的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of modules is only a logical function division. In actual implementation, there may be other division methods. For example, multiple modules or components may be combined or can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, indirect coupling or communication connection of devices or modules, and may be in electrical, mechanical or other forms.

所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed to multiple network modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。In addition, each functional module in each embodiment of the present application can be integrated into one processing module, or each module can exist physically alone, or two or more modules can be integrated into one module.

所述功能如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the existing technology or the part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of this application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk and other media that can store program code. .

以上所述,仅为本申请的具体实施方式,但本申请实施例的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请实施例揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请实施例的保护范围之内。因此,本申请实施例的保护范围应所述以权利要求的保护范围为准。The above are only specific implementation modes of the present application, but the protection scope of the embodiments of the present application is not limited thereto. Any person familiar with the technical field can easily think of changes within the technical scope disclosed in the embodiments of the present application. or replacement, all should be covered by the protection scope of the embodiments of this application. Therefore, the protection scope of the embodiments of the present application shall be subject to the protection scope of the claims.

Claims (21)

1. A broadcast name display method, applied to a system including a pogo pin device and a master device, the pogo pin device being connected to the master device through pogo pin, the method comprising:
the main equipment sends a data access request to the Pogosin equipment, wherein the data access request is used for requesting equipment information of the Pogosin equipment, and the equipment information comprises equipment identification of the Pogosin equipment and equipment propagation names of the Pogosin equipment;
the Pogosin equipment receives the data access request and sends equipment information of the Pogosin equipment to the main equipment based on the data access request;
the main equipment receives equipment information of the PogoPin equipment and sends a software update package corresponding to the PogoPin equipment;
the PogoPin equipment receives the software update package, completes software update based on the software update package, and sends indication information to the main equipment, wherein the indication information is used for indicating update success or update failure, and the indication information comprises equipment identification of the PogoPin equipment;
and the main equipment receives the indication information, determines the equipment spreading name of the Pogospin equipment based on the indication information, and displays the equipment spreading name of the Pogospin equipment.
2. The method of claim 1, wherein the device identification comprises one or more of: a device model number, a device serial number, a unique device identification code, or a media access control MAC address.
3. The method according to claim 1, wherein the method further comprises:
the main equipment establishes a mapping relation between equipment identification of the PogoPin equipment and equipment propagation names of the PogoPin equipment based on the equipment information of the PogoPin equipment;
the determining the device propagation name of the pogo pin device based on the indication information comprises the following steps:
and the main equipment determines the equipment propagation name of the PogoPin equipment based on the equipment identifier of the PogoPin equipment and the mapping relation included in the indication information.
4. A method according to any one of claims 1 to 3, further comprising:
the PogoPin equipment analyzes the data access request and judges whether the data access request contains a preset message packet header or not;
the sending the device information of the pogo pin device to the master device includes:
and if the data access request comprises the preset message packet header, the Pogosin equipment sends equipment information of the Pogosin equipment to the main equipment.
5. A method according to any one of claims 1 to 3, wherein the device information further comprises a current software version number of the pogo pin device;
before the software update package corresponding to the pogo pin device is sent to the pogo pin device, the method further includes:
the master device obtains a software version number to be updated corresponding to the device identifier from a server;
the main device judges whether the current software version number of the Pogosin device is the same as the software version number to be updated;
if the software version numbers are different, the master device downloads the software update package from the server, wherein the software update package corresponds to the software version number to be updated;
the sending the software update package corresponding to the pogo pin device includes:
and after the software update package is downloaded, the main equipment sends the software update package to the Pogosin equipment.
6. The method of claim 5, wherein prior to the host device downloading the software update package from the server, the method further comprises:
the main equipment displays the equipment spreading name of the PogoPin equipment and a first selection button, wherein the first selection button is used for selecting whether to download a software update package;
The master device downloading the software update package from the server, comprising:
in response to a confirmation download operation by the user based on the first selection button, the host device downloads the software update package from the server.
7. The method of claim 5, further comprising, after the host device downloads the software update package from the server:
the main equipment displays the equipment spreading name of the PogoPin equipment and a second selection button, wherein the second selection button is used for selecting whether to update software;
the sending the software update package to the pogo pin device includes:
and the main equipment transmits the software update package to the PogoPin equipment in response to the confirmation update operation based on the second selection button by the user.
8. A method for displaying a broadcast name, the method being applied to a master device, the master device being connected to a pogo pin device through a pogo pin, the method comprising:
the main equipment sends a data access request to the Pogosin equipment, wherein the data access request is used for requesting equipment information of the Pogosin equipment, and the equipment information comprises equipment identification of the Pogosin equipment and equipment propagation names of the Pogosin equipment;
The main equipment receives equipment information of the Pogosin equipment from the Pogosin equipment and sends a software update package corresponding to the Pogosin equipment;
the main equipment receives indication information from the PogoPin equipment, wherein the indication information is used for indicating success or failure of updating, and the indication information comprises equipment identification of the PogoPin equipment;
and the main equipment determines the equipment spreading name of the Pogosin equipment based on the indication information and displays the equipment spreading name of the Pogosin equipment.
9. The method of claim 8, wherein the device identification comprises one or more of: a device model number, a device serial number, a unique device identification code, or a media access control MAC address.
10. The method according to claim 9, wherein the method further comprises:
the main equipment establishes a mapping relation between equipment identification of the PogoPin equipment and equipment propagation names of the PogoPin equipment based on the equipment information of the PogoPin equipment;
the main device determines the device propagation name of the Pogosin device based on the indication information, and the method comprises the following steps:
And the main equipment determines the equipment propagation name of the PogoPin equipment based on the equipment identifier of the PogoPin equipment and the mapping relation included in the indication information.
11. The method according to any one of claims 8 to 10, wherein the device information further comprises a current software version number of the pogo pin device;
before the software update package corresponding to the pogo pin device is sent to the pogo pin device, the method further includes:
the master device obtains a software version number to be updated corresponding to the device identifier from a server;
the main device judges whether the current software version number of the Pogosin device is the same as the software version number to be updated;
if the software version numbers are different, the master device downloads the software update package from the server, wherein the software update package corresponds to the software version number to be updated;
the sending the software update package corresponding to the pogo pin device includes:
and after the software update package is downloaded, the main equipment sends the software update package to the Pogosin equipment.
12. The method of claim 11, wherein prior to the host device downloading the software update package from the server, the method further comprises:
The main equipment displays the equipment spreading name of the PogoPin equipment and a first selection button, wherein the first selection button is used for selecting whether to download a software update package;
the master device downloading the software update package from the server, comprising:
in response to a confirmation download operation by the user based on the first selection button, the host device downloads the software update package from the server.
13. The method of claim 11, wherein after the host device downloads the software update package from the server, the method further comprises:
the main equipment displays the equipment spreading name of the PogoPin equipment and a second selection button, wherein the second selection button is used for selecting whether to update software;
the sending the software update package corresponding to the pogo pin device includes:
and the main equipment transmits the software update package to the PogoPin equipment in response to the confirmation update operation based on the second selection button by the user.
14. A terminal device, comprising:
the device comprises a receiving and transmitting module, a transmitting module and a receiving module, wherein the receiving and transmitting module is used for transmitting a data access request to a PogoPin device, the data access request is used for requesting device information of the PogoPin device, and the device information comprises a device identifier of the PogoPin device and a device propagation name of the PogoPin device;
The receiving and transmitting module is further configured to receive device information of the pogo pin device from the pogo pin device, and send a software update package corresponding to the pogo pin device; the indication information is used for receiving indication information from the PogoPin equipment, the indication information is used for indicating success or failure of updating, and the indication information comprises equipment identification of the PogoPin equipment;
and the processing module is used for determining the equipment spreading name of the Pogosin equipment based on the indication information and displaying the equipment spreading name of the Pogosin equipment.
15. The terminal device of claim 14, wherein the device identification comprises one or more of: a device model number, a device serial number, a unique device identification code, or a media access control MAC address.
16. The terminal device of claim 14, further comprising:
the processing module is further configured to establish a mapping relationship between an equipment identifier of the pogo pin equipment and an equipment propagation name of the pogo pin equipment based on the equipment information of the pogo pin equipment; and determining the device propagation name of the PogoPin device based on the device identifier of the PogoPin device and the mapping relation included in the indication information.
17. The terminal device according to any of the claims 14 to 16, characterized in that the device information further comprises a current software version number of the pogo pin device;
the processing module is further used for acquiring a software version number to be updated corresponding to the equipment identifier from a server; judging whether the current software version number of the Pogosin equipment is the same as the software version number to be updated; if the software version numbers are different, downloading the software update package from the server, wherein the software update package corresponds to the software version number to be updated;
the transceiver module is specifically configured to send the software update package to the pogo pin device after the software update package is downloaded.
18. The terminal device of claim 17, wherein the processing module is further configured to display a device propagation name of the pogo pin device and a first selection button for selecting whether to download the software update package before downloading the software update package from the server; and downloading the software update package from the server in response to a confirmation download operation by the user based on the first selection button.
19. The terminal device of claim 17, wherein the processing module is further configured to display a device propagation name of the pogo pin device and a second selection button after the software update package is downloaded from the server, the second selection button being configured to select whether to perform a software update; and transmitting the software update package to the PogoPin device in response to a confirmation update operation performed by a user based on the second selection button.
20. A terminal device, comprising: a processor coupled to a memory for storing a computer program which, when invoked by the processor, causes the terminal device to perform the method of any of claims 8 to 13.
21. A computer readable storage medium storing a computer program comprising instructions for implementing the method of any one of claims 8 to 13.
CN202310215986.3A 2023-02-24 2023-02-24 Propagation name display method and terminal equipment Active CN116382728B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310215986.3A CN116382728B (en) 2023-02-24 2023-02-24 Propagation name display method and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310215986.3A CN116382728B (en) 2023-02-24 2023-02-24 Propagation name display method and terminal equipment

Publications (2)

Publication Number Publication Date
CN116382728A CN116382728A (en) 2023-07-04
CN116382728B true CN116382728B (en) 2023-11-21

Family

ID=86979756

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310215986.3A Active CN116382728B (en) 2023-02-24 2023-02-24 Propagation name display method and terminal equipment

Country Status (1)

Country Link
CN (1) CN116382728B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20080037450A (en) * 2006-10-26 2008-04-30 웹싱크 주식회사 Update system and method of software execution module
US8337256B1 (en) * 2011-08-26 2012-12-25 Cheng Uei Precision Industry Co., Ltd. Pogo-pin connector
CN103188561A (en) * 2011-12-30 2013-07-03 三星电子株式会社 Display apparatus, upgrading apparatus, display system and control method thereof
WO2013185570A1 (en) * 2012-06-13 2013-12-19 腾讯科技(深圳)有限公司 Software update method, software update system and computer storage medium
WO2017219496A1 (en) * 2016-06-21 2017-12-28 中兴通讯股份有限公司 Electronic device and signal detection method
CN207573001U (en) * 2017-10-19 2018-07-03 前海哆啦阿梦(深圳)数据服务有限公司 Charger baby with display multimedia messages
CN112162764A (en) * 2020-10-30 2021-01-01 海信视像科技股份有限公司 Display device, server and camera software upgrade method
CN113672266A (en) * 2021-08-24 2021-11-19 Oppo广东移动通信有限公司 Firmware upgrade method, device, charging case and storage medium
CN113885851A (en) * 2020-07-01 2022-01-04 横河电机株式会社 Software development environment providing system, method, and non-transitory computer-readable medium
WO2022055291A1 (en) * 2020-09-14 2022-03-17 삼성전자 주식회사 Electronic device and method for updating electronic device
CN216901179U (en) * 2022-02-18 2022-07-05 所乐思(深圳)科技有限公司 Intelligent glasses equipment and intelligent hinge assembly

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9672023B2 (en) * 2013-03-15 2017-06-06 Apple Inc. Providing a unified update center for security software updates and application software updates
US9690565B2 (en) * 2013-12-19 2017-06-27 Cellco Partnership Application assisted software update for connected devices without a display
KR102446172B1 (en) * 2017-10-27 2022-09-23 삼성전자주식회사 Method for performing communication through input/output interface and apparatus therefor
US11379004B2 (en) * 2018-08-08 2022-07-05 Hewlett-Packard Development Company, L.P. Adjustment control mechanisms of pogo pins
CN114116570B (en) * 2020-08-28 2024-08-02 中强光电股份有限公司 Electronic device control system and electronic device control method

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20080037450A (en) * 2006-10-26 2008-04-30 웹싱크 주식회사 Update system and method of software execution module
US8337256B1 (en) * 2011-08-26 2012-12-25 Cheng Uei Precision Industry Co., Ltd. Pogo-pin connector
CN103188561A (en) * 2011-12-30 2013-07-03 三星电子株式会社 Display apparatus, upgrading apparatus, display system and control method thereof
WO2013185570A1 (en) * 2012-06-13 2013-12-19 腾讯科技(深圳)有限公司 Software update method, software update system and computer storage medium
WO2017219496A1 (en) * 2016-06-21 2017-12-28 中兴通讯股份有限公司 Electronic device and signal detection method
CN207573001U (en) * 2017-10-19 2018-07-03 前海哆啦阿梦(深圳)数据服务有限公司 Charger baby with display multimedia messages
CN113885851A (en) * 2020-07-01 2022-01-04 横河电机株式会社 Software development environment providing system, method, and non-transitory computer-readable medium
WO2022055291A1 (en) * 2020-09-14 2022-03-17 삼성전자 주식회사 Electronic device and method for updating electronic device
CN112162764A (en) * 2020-10-30 2021-01-01 海信视像科技股份有限公司 Display device, server and camera software upgrade method
CN113672266A (en) * 2021-08-24 2021-11-19 Oppo广东移动通信有限公司 Firmware upgrade method, device, charging case and storage medium
CN216901179U (en) * 2022-02-18 2022-07-05 所乐思(深圳)科技有限公司 Intelligent glasses equipment and intelligent hinge assembly

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Pogo pin系列弹针连接器的设计研究;李海峰;刘晨;孙艳冬;申学良;;机电元件(第04期);全文 *

Also Published As

Publication number Publication date
CN116382728A (en) 2023-07-04

Similar Documents

Publication Publication Date Title
CN112399390B (en) Method and related device for Bluetooth back-up connection
CN116360725B (en) Display interaction system, display method and device
CN114079893B (en) Bluetooth communication method, terminal device and computer-readable storage medium
CN113704205B (en) Log storage method, chip, electronic device and readable storage medium
CN113691842A (en) A cross-device content projection method and electronic device
CN113641271B (en) Application window management method, terminal device and computer readable storage medium
CN113254409A (en) File sharing method, system and related equipment
CN116048358B (en) Control methods and related devices for suspended balls
CN111343326A (en) Method and related device for acquiring test log
WO2023071940A1 (en) Cross-device method and apparatus for synchronizing navigation task, and device and storage medium
CN116048831B (en) Target signal processing method and electronic device
CN114765768A (en) Network selection method and equipment
CN116095224B (en) Notification display method and terminal device
CN115119336B (en) Earphone connection system, earphone connection method, earphone, electronic device and readable storage medium
WO2022242412A1 (en) Method for killing application, and related device
WO2023109636A1 (en) Application card display method and apparatus, terminal device, and readable storage medium
CN118072723A (en) Cooperative awakening method, device and electronic device
CN117348894A (en) A software upgrade method, terminal equipment and system
CN116382728B (en) Propagation name display method and terminal equipment
CN117251223A (en) Cloud function plug-in configuration and scheduling method, system and electronic equipment
CN113973152A (en) A kind of quick reply method and electronic device for unread message
CN113867851A (en) Electronic equipment operation guide information recording method, electronic equipment operation guide information acquisition method and terminal equipment
CN116450026B (en) Method and system for identifying touch operation
CN115495716B (en) A local authentication method and electronic device
CN114125805B (en) Bluetooth connection method and terminal device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Patentee after: Honor Terminal Co.,Ltd.

Country or region after: China

Address before: 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong

Patentee before: Honor Device Co.,Ltd.

Country or region before: China

CP03 Change of name, title or address