CN110874243B - SWP interface activation method and device - Google Patents

SWP interface activation method and device Download PDF

Info

Publication number
CN110874243B
CN110874243B CN201811026668.8A CN201811026668A CN110874243B CN 110874243 B CN110874243 B CN 110874243B CN 201811026668 A CN201811026668 A CN 201811026668A CN 110874243 B CN110874243 B CN 110874243B
Authority
CN
China
Prior art keywords
swp
interface
driver
protocol
flash
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
CN201811026668.8A
Other languages
Chinese (zh)
Other versions
CN110874243A (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.)
Spreadtrum Communications Shanghai Co Ltd
Original Assignee
Spreadtrum Communications Shanghai 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 Spreadtrum Communications Shanghai Co Ltd filed Critical Spreadtrum Communications Shanghai Co Ltd
Priority to CN201811026668.8A priority Critical patent/CN110874243B/en
Publication of CN110874243A publication Critical patent/CN110874243A/en
Application granted granted Critical
Publication of CN110874243B publication Critical patent/CN110874243B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • G06F13/102Program control for peripheral devices where the programme performs an interfacing function, e.g. device driver

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Read Only Memory (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The invention provides a method and a device for activating an SWP interface. The method comprises the following steps: storing an SWP driver and an ACT protocol stack for activating an SWP interface by utilizing a ROM in the UICC chip; and storing an SHDLC protocol for link layer data transmission control by using the FLASH inside the UICC chip. The invention can solve the problem of the activation failure of the SWP interface on the basis of not increasing the hardware cost, so that the activation of the SWP interface meets the timing requirement specified by the SWP protocol.

Description

SWP interface activation method and device
Technical Field
The present invention relates to the field of mobile communications technologies, and in particular, to a method and an apparatus for activating an SWP interface.
Background
The SWP (Single Wire Protocol) Protocol is used to implement full duplex Communication on a Single Wire, and is used for Communication between a UICC (Universal Integrated Circuit Card) and a CLF (Contactless front end) in a Contactless mode, where a typical application is Communication between a SIM Card and an NFC (Near Field Communication) chip. The SWP protocol is divided into a physical layer protocol and a data link layer protocol, and for the physical layer, the transmission mode is full duplex, the CLF transmits a voltage signal to the UICC, and the UICC transmits a current signal to the CLF. The Data Link layer is divided into an MAC layer and a logical Link layer, and the logical Link layer is divided into an ACT (ACTivation protocol) protocol and an SHDLC (Simple High level Data Link Control) protocol. Generally, the physical layer and the MAC layer are implemented by hardware circuits, and the logical link layer is implemented by software. The SWP interface needs to be activated before communication, and the activation process involves physical layer and MAC layer and logical link layer ACT protocols.
In the process of implementing the present invention, the inventors found that at least the following technical problems exist in the prior art:
the SWP interface activation procedure in the SWP protocol has a strict timing requirement, and the time interval from the reception of the pull-up signal from the CLF to the transmission of the first synchronization frame cannot exceed 700us or 500us for the UICC (secondary activation). In order to save hardware cost, SWP code is often put into flash (flash memory), which causes a problem: because the activation is usually power-on, the flash is not initialized at this time, and the time for initializing the flash is long, which results in an activation timeout of the SWP interface, and the activation timeout means that the SWP interface is not available. Therefore, the activation failure probability of the conventional SWP interface activation scheme is relatively high, and therefore a scheme needs to be designed to reduce the activation failure probability of the SWP interface, so that the activation of the SWP interface meets the timing requirement specified by the SWP protocol.
Disclosure of Invention
The method and the device for activating the SWP interface can solve the problem of the failure of the activation of the SWP interface on the basis of not increasing the hardware cost, so that the activation of the SWP interface meets the timing requirement specified by an SWP protocol.
In a first aspect, the present invention provides a method for activating an SWP interface, which is applied to a UICC chip, where the UICC chip includes an ROM and a FLASH, and includes:
storing an SWP driver and an ACT protocol stack for activating an SWP interface by using the ROM;
and storing an SHDLC protocol for data transmission control of the link layer by using the FLASH.
Optionally, an SWP driver interface export table is set at a fixed address in the ROM, so that the SHDLC protocol in the FLASH calls the SWP driver through an external interface address of the SWP driver in the SWP driver interface export table.
Optionally, a fixed address in the FLASH sets a relay interface, so that the SWP driver in the ROM calls the SHDLC protocol through the relay interface.
In a second aspect, the present invention provides an SWP interface activation device, disposed in a UICC chip, where the UICC chip includes an ROM and a FLASH, and includes:
the ROM is used for storing an SWP driving program and an ACT protocol stack which are used for activating an SWP interface;
and the FLASH stores an SHDLC protocol for data transmission control of the link layer.
Optionally, an SWP driver interface export table is set at a fixed address in the ROM, so that the SHDLC protocol in the FLASH calls the SWP driver through an external interface address of the SWP driver in the SWP driver interface export table.
Optionally, a fixed address in the FLASH sets a relay interface, so that the SWP driver in the ROM calls the SHDLC protocol through the relay interface.
The SWP interface activation method and the device provided by the embodiment of the invention utilize the ROM in the UICC chip to store the SWP driver and the ACT protocol stack for activating the SWP interface; and storing an SHDLC protocol for link layer data transmission control by using FLASH inside the UICC chip. Compared with the prior art, the invention stores the SWP driver and the ACT protocol stack with high timing requirement in the ROM and stores the SHDLC protocol with low timing requirement in the FLASH, so that the SWP interface can be directly executed in the ROM without waiting for the initialization of the FLASH when being activated, the timing requirement in the SWP protocol can be met, and the SHDLC protocol is stored in the FLASH, and can be executed after the initialization of the FLASH because of no strict timing requirement as the ACT protocol. Therefore, the method and the device can enable the activation of the SWP interface to meet the timing requirement specified by the SWP protocol, avoid the failure condition of the activation of the SWP interface caused by activation overtime, and reduce the failure probability of the activation of the SWP interface.
Drawings
Fig. 1 is a flowchart of an SWP interface activation method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an SWP interface activation device according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an SWP interface activation device according to another embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention provides a method for activating an SWP interface, which is applied to a UICC chip, wherein the UICC chip internally comprises a ROM and a FLASH, and as shown in figure 1, the method comprises the following steps:
and S11, storing an SWP driver and an ACT protocol stack for activating an SWP interface by utilizing the ROM.
S12, storing SHDLC protocol for link layer data transmission control by using the FLASH.
Compared with the prior art, on one hand, the method for activating the SWP interface stores the SWP driver with high timing requirement and the ACT protocol stack in the ROM, and stores the SHDLC protocol with low timing requirement in the FLASH, on the other hand, the ROM can execute the codes without software initialization and power-on, and the execution speed of the codes in the ROM is very high, so that the SWP driver and the ACT flow codes in the ROM can be immediately executed when the UICC receives the activation signal of the CLF, namely, the method can directly execute the initialization without waiting for the FLASH in the ROM when the SWP interface is activated, can meet the timing requirement in the SWP protocol, and the SHDLC protocol is stored in the FLASH, and can be executed after the FLASH is initialized because of no harsh timing requirement like the ACT protocol. Therefore, the method and the device can enable the activation of the SWP interface to meet the timing requirement specified by the SWP protocol, avoid the failure condition of the activation of the SWP interface caused by activation overtime, and reduce the failure probability of the activation of the SWP interface. On the other hand, because the SWP driver and the ACT process are simple, the compiled executable file can be optimized to be very small, and does not occupy too much ROM storage space, so that the implementation scheme is simple, and the implementation cost is low.
In step S11, the SWP driver and the ACT protocol stack are separated, and the SWP driver and the ACT protocol stack are separated and compiled, and the compiled SWP driver and ACT protocol stack are stored in the ROM.
Optionally, an SWP driver interface export table is set at a fixed address in the ROM, so that the SHDLC protocol in the FLASH calls the SWP driver program through an external interface address of the SWP driver program in the SWP driver interface export table.
Optionally, a fixed address in the FLASH sets a relay interface, so that the SWP driver in the ROM calls the SHDLC protocol through the relay interface.
The embodiment of the invention also provides an SWP interface activation device, wherein an SWP driver and an ACT protocol stack with high timing requirement are stored in a ROM, and an SHDLC protocol with low timing requirement is stored in a FLASH. Therefore, the invention can enable the activation of the SWP interface to meet the timing requirement specified by the SWP protocol, and avoid the failure condition of the activation of the SWP interface caused by activation overtime, thereby reducing the failure probability of the activation of the SWP interface. On the other hand, because the SWP driver and the ACT flow are simple, the compiled executable file can be optimized to be very small, and does not occupy too much ROM storage space, so that the implementation scheme is simple, and the implementation cost is low.
Optionally, as shown in fig. 2, an SWP driver interface export table is set at a fixed address in the ROM, so that the SHDLC protocol in the FLASH calls the SWP driver via an external interface address of the SWP driver in the SWP driver interface export table.
And a transfer interface is arranged at a fixed address in the FLASH so that an SWP driving program in the ROM can call the SHDLC protocol through the transfer interface.
The implementation manner of the transit interface may fix the transit interface to a fixed address of the FLASH through compiling.
As can be seen from fig. 2, the structural schematic diagram of the SWP interface activation apparatus of the present invention and the calling relationship thereof are shown, wherein the addresses marked in the drawing are only used for explaining fixed addresses, and specifically, which fixed address is selected can be configured according to actual situations. Calling FLASH through a fixed address (transfer interface) in FLASH by an SWP code in ROM; and the SHDLC code in FLASH calls the SWP driver in ROM by a fixed address in ROM (i.e. SWP driver interface export table). Since the ACT protocol is stored in the ROM, the ROM can directly execute initialization without waiting for FLASH when activated, thereby satisfying the timing requirement in the SWP protocol. The SHDLC protocol is stored in FLASH, and since there is no strict timing requirement, it can be executed after FLASH initialization.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.

Claims (6)

1. A method for activating an SWP interface is applied to a UICC chip, wherein the UICC chip internally comprises a ROM and a FLASH, and the method is characterized by comprising the following steps:
storing an SWP driver and an ACT protocol stack for activating an SWP interface by using the ROM;
and storing the SHDLC protocol for the transmission control of the link layer data by using the FLASH.
2. The method as claimed in claim 1, wherein the fixed address in the ROM sets up an SWP driver interface export table, so that SHDLC protocol in the FLASH calls the SWP driver through the external interface address of the SWP driver in the SWP driver interface export table.
3. The method as claimed in claim 1, wherein a fixed address in the FLASH sets a transit interface, so that the SWP driver in the ROM makes a call to the SHDLC protocol through the transit interface.
4. An SWP interface activation device is arranged in a UICC chip, wherein the UICC chip internally comprises a ROM and a FLASH, and the SWP interface activation device is characterized by comprising:
the ROM is used for storing an SWP driving program and an ACT protocol stack which are used for activating an SWP interface;
and the FLASH stores an SHDLC protocol for data transmission control of the link layer.
5. The apparatus of claim 4, wherein the fixed address in the ROM sets up an SWP driver interface export table, so that the SHDLC protocol in the FLASH calls the SWP driver through the external interface address of the SWP driver in the SWP driver interface export table.
6. The apparatus of claim 4 wherein a fixed address in the FLASH sets a transit interface to facilitate the SWP driver in the ROM to make calls to the SHDLC protocol through the transit interface.
CN201811026668.8A 2018-09-04 2018-09-04 SWP interface activation method and device Active CN110874243B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811026668.8A CN110874243B (en) 2018-09-04 2018-09-04 SWP interface activation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811026668.8A CN110874243B (en) 2018-09-04 2018-09-04 SWP interface activation method and device

Publications (2)

Publication Number Publication Date
CN110874243A CN110874243A (en) 2020-03-10
CN110874243B true CN110874243B (en) 2022-07-26

Family

ID=69716079

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811026668.8A Active CN110874243B (en) 2018-09-04 2018-09-04 SWP interface activation method and device

Country Status (1)

Country Link
CN (1) CN110874243B (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202095097U (en) * 2011-05-10 2011-12-28 武汉天喻信息产业股份有限公司 SE module capable of expanding multiple ways SWP protocol interface
US9554331B2 (en) * 2014-09-18 2017-01-24 Qualcomm Incorporated Techniques for activating single wire communications
US9647802B2 (en) * 2014-10-15 2017-05-09 Qualcomm Incorporated Systems and methods for mitigating effects of an unresponsive secure element
CN106445851A (en) * 2016-08-26 2017-02-22 北京中电华大电子设计有限责任公司 Method for improving interface response capability of Flash NFC-SIM smart card

Also Published As

Publication number Publication date
CN110874243A (en) 2020-03-10

Similar Documents

Publication Publication Date Title
US10108511B2 (en) Test for 50 nanosecond spike filter
KR102341149B1 (en) Operating method for communication and Electronic device supporting the same
US10789180B2 (en) SPI-based data transmission method and device
WO2019042421A1 (en) Method, apparatus and device for rate adjustment of usb data transmission, and storage medium
CN108513361B (en) Channel access method, device and storage medium
CN111373382A (en) Fast failure in peripheral component interconnect express (PCI) (PCIe) Address Translation Services (ATS)
CN113840295B (en) Mobile data network establishing method and device, electronic equipment and storage medium
CN111488207A (en) Application process keep-alive method, device, network equipment and storage medium
US20150126111A1 (en) Emulation of Multiple NFC Devices Inside a Communication Device
CN110874243B (en) SWP interface activation method and device
US9425845B2 (en) Method of setting up a communication session via an SWP interface
US10028130B2 (en) Methods for updating a cache memory of a telecommunications terminal
US10003959B2 (en) Subscriber identity module (SIM) access profile (SAP)
CN110213795B (en) Method for simultaneously communicating double SIM cards, mobile terminal and storage medium
US7836234B2 (en) Communication in accordance with a master-slave communication protocol
JP2016506103A5 (en)
CN110990313B (en) Method, equipment and storage medium for processing clock stretching of I3C bus
EP2835712A1 (en) Wireless extension card and method for data storage
US11652512B2 (en) Fast NFC processing
US20140325198A1 (en) Electronic device and loading method of control program
CN105224484B (en) The method and apparatus that multiplex roles application is realized in ID authentication device
CN108419260B (en) SIM card connection control method, mobile terminal and storage medium
CN106470414B (en) Method and device for accessing SIM card
EP3376458A1 (en) Nfc device and initialization method
CN115397033B (en) Wireless communication method, wireless communication device, wireless communication module, medium, and program product

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