public class CanOpenRMIClient extends Object implements CanOpenInterface
| Constructor and Description |
|---|
CanOpenRMIClient(String registryHostName) |
| Modifier and Type | Method and Description |
|---|---|
void |
addReceivedPDO(int cobId)
Configures the pdo with the given cob_id for reception on the master node.
|
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() |
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(BootMessageListener bml) |
void |
setEmergencyMessageListener(EmergencyMessageListener eml) |
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 CanOpenRMIClient(String registryHostName)
registryHostName - the registry host namepublic void init(int master,
String baud,
String busName,
int nodeID)
throws org.lsst.ccs.drivers.commons.DriverException
CanOpenInterfaceinit in interface CanOpenInterfacemaster - 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
CanOpenInterfaceaddReceivedPDO in interface CanOpenInterfaceorg.lsst.ccs.drivers.commons.DriverExceptionpublic PDOData sync() throws org.lsst.ccs.drivers.commons.DriverException
CanOpenInterfacesync in interface CanOpenInterfaceorg.lsst.ccs.drivers.commons.DriverExceptionpublic int scan()
throws org.lsst.ccs.drivers.commons.DriverException
CanOpenInterfacescan in interface CanOpenInterfaceorg.lsst.ccs.drivers.commons.DriverExceptionpublic String info(int nodeID) throws org.lsst.ccs.drivers.commons.DriverException
CanOpenInterfaceinfo in interface CanOpenInterfacenodeID - 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 CanOpenInterfacenodeId - 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
CanOpenInterfacersdo in interface CanOpenInterfacenodeId - the node idindex - the indexsubindex - the subindexorg.lsst.ccs.drivers.commons.DriverExceptionpublic void ssta(int nodeId)
throws org.lsst.ccs.drivers.commons.DriverException
CanOpenInterfacessta in interface CanOpenInterfaceorg.lsst.ccs.drivers.commons.DriverExceptionpublic void ssto(int nodeId)
throws org.lsst.ccs.drivers.commons.DriverException
CanOpenInterfacessto in interface CanOpenInterfaceorg.lsst.ccs.drivers.commons.DriverExceptionpublic void reset(int nodeId)
throws org.lsst.ccs.drivers.commons.DriverException
reset in interface CanOpenInterfaceorg.lsst.ccs.drivers.commons.DriverExceptionpublic void quit()
throws org.lsst.ccs.drivers.commons.DriverException
quit in interface CanOpenInterfaceorg.lsst.ccs.drivers.commons.DriverExceptionpublic void init()
throws org.lsst.ccs.drivers.commons.DriverException
init in interface CanOpenInterfaceorg.lsst.ccs.drivers.commons.DriverExceptionpublic void start()
throws org.lsst.ccs.drivers.commons.DriverException
start in interface CanOpenInterfaceorg.lsst.ccs.drivers.commons.DriverExceptionpublic void stop()
throws org.lsst.ccs.drivers.commons.DriverException
stop in interface CanOpenInterfaceorg.lsst.ccs.drivers.commons.DriverExceptionpublic boolean isReady()
throws org.lsst.ccs.drivers.commons.DriverException
isReady in interface CanOpenInterfaceorg.lsst.ccs.drivers.commons.DriverExceptionpublic void setEmergencyMessageListener(EmergencyMessageListener eml) throws org.lsst.ccs.drivers.commons.DriverException
setEmergencyMessageListener in interface CanOpenInterfaceorg.lsst.ccs.drivers.commons.DriverExceptionpublic void setBootMessageListener(BootMessageListener bml) throws org.lsst.ccs.drivers.commons.DriverException
setBootMessageListener in interface CanOpenInterfaceorg.lsst.ccs.drivers.commons.DriverExceptionCopyright © 2018 LSST. All rights reserved.