Class MedibusProtocol
java.lang.Object
com.framed.core.Service
com.framed.communicator.driver.protocol.Protocol
com.framed.communicator.driver.protocol.medibus.MedibusProtocol
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionMedibusProtocol(String id, String portName, int baudRate, int dataBits, int stopBits, int waveFormType, boolean realTime, boolean slowData, String multiplier, EventBus eventBus) -
Method Summary
Modifier and TypeMethodDescriptionvoidcommandEchoResponse(byte[] commandBuffer) voidvoidconnect()Establishes a connection using the specific protocol implementation and starts the configured data export.voidvoidsetConfiguredDataStreams(boolean disable) voidsetDataStreams(byte syncCommand, boolean disable) voidstop()Stops the service.
-
Constructor Details
-
MedibusProtocol
-
-
Method Details
-
connect
public void connect()Description copied from class:ProtocolEstablishes a connection using the specific protocol implementation and starts the configured data export. Concrete subclasses must provide the logic for connecting. -
stop
public void stop()Description copied from class:ServiceStops the service.By default, this method logs a message indicating that no stop logic is implemented. Subclasses should override this method to provide custom shutdown behavior when necessary.
-
configureRealtimeTransmission
public void configureRealtimeTransmission() -
commandEchoResponse
public void commandEchoResponse(byte[] commandBuffer) -
sendDeviceID
public void sendDeviceID() -
setConfiguredDataStreams
public void setConfiguredDataStreams(boolean disable) -
setDataStreams
public void setDataStreams(byte syncCommand, boolean disable)
-