LoadableModule

public abstract class LoadableModule extends Object

Base class for loadable modules.

Fields

Name Description
protected final String identifier

Constructors

LoadableModule

public LoadableModule(ConnectedJacquardTag tag)

Parameters

Name Description
ConnectedJacquardTag tag

Methods

getVidPidMid

public abstract Module getVidPidMid()

Extended class must implement this api to return loadable module skeleton.

ReturnValue

Name Description
Module

loadModule

public Signal<Module> loadModule()

Loads IMU module.

ReturnValue

Name Description
Signal<Module>

unloadModule

public Signal<Boolean> unloadModule()

Unloads imu module.

ReturnValue

Name Description
Signal<Boolean>

initialize

public Signal<InitState> initialize()

Initializes loadable module(LM). If LM is not present on ujt, it will flash it to ujt as a dfu. Before returning, this api will ensure that LM is loaded and ready for IMU sample collection.

ReturnValue

Name Description
Signal<InitState>

fetchLMDetails

public Signal<Module> fetchLMDetails()

Fetch loadable module details from the connected tag.

ReturnValue

Name Description
Signal<Module>

Module

tagSerialNumber

protected final String tagSerialNumber()

Returns associated ujt serial number.

ReturnValue

Name Description
String

enqueue

protected final <Res, Request extends ProtoCommandRequest<Res>>Signal<Res> enqueue(Request request)

Enqueue the request to send to the connected tag.

Parameters

Name Description
Request request

ReturnValue

Name Description
Signal<Res>

enqueue

protected final <Res, Request extends ProtoCommandRequest<Res>>Signal<Res> enqueue(Request request, int retries, long timeout)

Enqueue the request to send to the connected tag.

Parameters

Name Description
Request request
int retries
long timeout

ReturnValue

Name Description
Signal<Res>

subscribe

protected final <Res>Signal<Res> subscribe(NotificationSubscription<Res> notificationSubscription)

Subscribe to the specified tag notification.

Parameters

Name Description
NotificationSubscription<Res> notificationSubscription

ReturnValue

Name Description
Signal<Res>

getMyJacquardTag

protected final Signal<ConnectedJacquardTag> getMyJacquardTag()

Returns the associatedConnectedJacquardTag, throwsIllegalStateExceptionif disconnected.

ReturnValue

Name Description
Signal<ConnectedJacquardTag>

setConnectionPriority

protected void setConnectionPriority(int priority)

Sets the BLE connection priority.

Parameters

Name Description
int priority

ReturnValue

Name Description
void

setTargetUjtFirmwareVidPid

protected void setTargetUjtFirmwareVidPid(VidPidMid targetUjtFirmwareVidPid)

Specify vendor id and product id if you are looking for ujt firmware specific to your app.

Parameters

Name Description
VidPidMid targetUjtFirmwareVidPid

ReturnValue

Name Description
void