Our Online Store have the new products: RFID antenna board. Currently it can work with JC10M24R and JCOP4 card chips.
Compared with normal cards, the antenna board module has a smaller size and fixed holes, which is easy to integrate in the IOT(Internet Of Things) project.

More information about the EventSource in JC3.1

JavaCard Applet Development Related Questions and Answers.
scplatform
Posts: 39
Joined: Wed Aug 31, 2016 9:55 pm
Points :372
Contact:

More information about the EventSource in JC3.1

Post by scplatform » Wed Nov 28, 2018 12:46 am

According to public information, JavaCard 3.1 has an event mechanism that provides peripheral APIs. Does anybody has more relevant information about this topic?
Last edited by scplatform on Wed Nov 28, 2018 12:57 am, edited 1 time in total.

scplatform
Posts: 39
Joined: Wed Aug 31, 2016 9:55 pm
Points :372
Contact:

Re: More information about the EventSource in JC3.1

Post by scplatform » Wed Nov 28, 2018 12:48 am

We can use it like this, but the information related to it is too little.

Code: Select all

EventSourcesrc= IOService.getInstance(IO_SPI);
//Register applet as MessageListenerfor the specified src
EventRegistry.getEventRegistry(src).register(this);
Last edited by scplatform on Wed Nov 28, 2018 1:10 am, edited 2 times in total.

scplatform
Posts: 39
Joined: Wed Aug 31, 2016 9:55 pm
Points :372
Contact:

Re: More information about the EventSource in JC3.1

Post by scplatform » Wed Nov 28, 2018 12:52 am

Java Card 3.1 I/O framework can be used to create an API for applications to directly RW data from/to the specific peripherals.
The I/O framework is made of two new Java Card packages :

javacardx.framework.event
javacardx.framework.nio


javacardx.framework.event
The central abstractions of the event framework are:
Event sources which are I/O interfaces, devices or peripherals that may generate events
Event listeners which is the default interface used to receive events
Event registry which are used to register listeners for event sources

As the platform implementer we should to implement the Event sources, which could be include external peripheral or internal event source, e.g: GPIO/UART、Memory-mapped IO, I2C, SPI, watchdog etc.

Event listeners are the interfaces to be implemented by the application code to receive events. This could be : listeners for GPIO (PinListener and PortListener), listeners for UART interface (UARTEventListener), listeners for memory-mapped I/O (MMIOEventListener) and so on.

javacardx.framework.nio

This package contains classes to manipulate data. It defines buffers that are container providing an encapsulation of data and offering efficient methods to parse and extract structured information from raw data. These buffers can encapsulate data stored into arrays in the data heap, but can also be used to access memory out of the heap and map external memory (e.g. a peripheral).

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 37 guests

JavaCard OS : Disclaimer