public class CanOpenRMIServer extends Object implements CanOpenRemoteInterface
| Constructor and Description |
|---|
CanOpenRMIServer(CanOpenInterface coi) |
| Modifier and Type | Method and Description |
|---|---|
void |
addReceivedPDO(int cobId)
Configures the pdo with the given cob_id for reception on the master node.
|
void |
clearReceivedPDOs() |
String |
info(int nodeID)
Returns the information for the given nodeID.
|
void |
init() |
void |
init(int master,
String baud,
String busName,
int nodeID)
Initialization of the master node.
|
boolean |
isReady() |
static void |
main(String[] args) |
void |
quit() |
void |
reset(int nodeId) |
long |
rsdo(int nodeId,
int index,
int subindex)
Read device entry
|
int |
scan()
Sends a scan on the can bus.
|
void |
setBootMessageListener(BootMessageRemoteListener bml) |
void |
setEmergencyMessageListener(EmergencyMessageRemoteListener eml) |
void |
setTimeoutMillis(long to) |
void |
ssta(int nodeId)
Slave start
|
void |
ssto(int nodeId)
Slave stop
|
void |
start() |
void |
stop() |
PDOData |
sync()
Sends a sync message on the CANBus and synchronously waits for the received
PDO configured in the master to be received.
|
void |
wsdo(int nodeId,
int index,
int subindex,
int size,
long data) |
public CanOpenRMIServer(CanOpenInterface coi)
public void init(int master,
String baud,
String busName,
int nodeID)
throws org.lsst.ccs.drivers.commons.DriverException
CanOpenRemoteInterfaceinit in interface CanOpenRemoteInterfacemaster - 1 for master, 0 for slave.baud - "125K","1M",...busName - the bus name (0 for can0, 1 for can1)nodeID - the nodeIDorg.lsst.ccs.drivers.commons.DriverExceptionpublic void addReceivedPDO(int cobId)
throws org.lsst.ccs.drivers.commons.DriverException
CanOpenRemoteInterfaceaddReceivedPDO in interface CanOpenRemoteInterfaceorg.lsst.ccs.drivers.commons.DriverExceptionpublic PDOData sync() throws org.lsst.ccs.drivers.commons.DriverException
CanOpenRemoteInterfacesync in interface CanOpenRemoteInterfaceorg.lsst.ccs.drivers.commons.DriverExceptionpublic int scan()
throws org.lsst.ccs.drivers.commons.DriverException
CanOpenRemoteInterfacescan in interface CanOpenRemoteInterfaceorg.lsst.ccs.drivers.commons.DriverExceptionpublic String info(int nodeID) throws org.lsst.ccs.drivers.commons.DriverException
CanOpenRemoteInterfaceinfo in interface CanOpenRemoteInterfacenodeID - the node idorg.lsst.ccs.drivers.commons.DriverExceptionpublic void wsdo(int nodeId,
int index,
int subindex,
int size,
long data)
throws org.lsst.ccs.drivers.commons.DriverException
wsdo in interface CanOpenRemoteInterfacenodeId - the node idindex - the indexsubindex - the sub indexsize - the sizedata - the dataorg.lsst.ccs.drivers.commons.DriverExceptionpublic long rsdo(int nodeId,
int index,
int subindex)
throws org.lsst.ccs.drivers.commons.DriverException
CanOpenRemoteInterfacersdo in interface CanOpenRemoteInterfacenodeId - the node idindex - the indexsubindex - the subindexorg.lsst.ccs.drivers.commons.DriverExceptionpublic void ssta(int nodeId)
throws org.lsst.ccs.drivers.commons.DriverException
CanOpenRemoteInterfacessta in interface CanOpenRemoteInterfaceorg.lsst.ccs.drivers.commons.DriverExceptionpublic void ssto(int nodeId)
throws org.lsst.ccs.drivers.commons.DriverException
CanOpenRemoteInterfacessto in interface CanOpenRemoteInterfaceorg.lsst.ccs.drivers.commons.DriverExceptionpublic void reset(int nodeId)
throws org.lsst.ccs.drivers.commons.DriverException
reset in interface CanOpenRemoteInterfaceorg.lsst.ccs.drivers.commons.DriverExceptionpublic void quit()
throws org.lsst.ccs.drivers.commons.DriverException
quit in interface CanOpenRemoteInterfaceorg.lsst.ccs.drivers.commons.DriverExceptionpublic void init()
throws org.lsst.ccs.drivers.commons.DriverException
init in interface CanOpenRemoteInterfaceorg.lsst.ccs.drivers.commons.DriverExceptionpublic void start()
throws org.lsst.ccs.drivers.commons.DriverException
start in interface CanOpenRemoteInterfaceorg.lsst.ccs.drivers.commons.DriverExceptionpublic void stop()
throws org.lsst.ccs.drivers.commons.DriverException
stop in interface CanOpenRemoteInterfaceorg.lsst.ccs.drivers.commons.DriverExceptionpublic boolean isReady()
throws org.lsst.ccs.drivers.commons.DriverException
isReady in interface CanOpenRemoteInterfaceorg.lsst.ccs.drivers.commons.DriverExceptionpublic void setEmergencyMessageListener(EmergencyMessageRemoteListener eml) throws org.lsst.ccs.drivers.commons.DriverException
setEmergencyMessageListener in interface CanOpenRemoteInterfaceorg.lsst.ccs.drivers.commons.DriverExceptionpublic void setBootMessageListener(BootMessageRemoteListener bml) throws org.lsst.ccs.drivers.commons.DriverException
setBootMessageListener in interface CanOpenRemoteInterfaceorg.lsst.ccs.drivers.commons.DriverExceptionpublic void clearReceivedPDOs()
throws org.lsst.ccs.drivers.commons.DriverException,
RemoteException
clearReceivedPDOs in interface CanOpenRemoteInterfaceorg.lsst.ccs.drivers.commons.DriverExceptionRemoteExceptionpublic void setTimeoutMillis(long to)
throws org.lsst.ccs.drivers.commons.DriverException,
RemoteException
setTimeoutMillis in interface CanOpenRemoteInterfaceorg.lsst.ccs.drivers.commons.DriverExceptionRemoteExceptionCopyright © 2018 LSST. All rights reserved.