java.lang.Object
javafx.application.Application
com.tlcsdm.frame.SampleBase
com.tlcsdm.qe.QeSample
com.tlcsdm.qe.tools.SerialPortTool
- 所有已实现的接口:
Sample,javafx.fxml.Initializable
串口助手
- 从以下版本开始:
- 1.0.0
- 作者:
- unknowIfGuestInDream
-
嵌套类概要
嵌套类从类继承的嵌套类/接口 com.tlcsdm.qe.QeSample
QeSample.ProjectInfo从类继承的嵌套类/接口 javafx.application.Application
javafx.application.Application.Parameters -
字段概要
字段修饰符和类型字段说明(专用程序包) javafx.util.Callback<javafx.scene.control.ListView<com.fazecast.jSerialComm.SerialPort>, javafx.scene.control.ListCell<com.fazecast.jSerialComm.SerialPort>> private final javafx.animation.Timelineprivate javafx.scene.control.Buttonprivate javafx.scene.control.Buttonprivate javafx.scene.control.Labelprivate javafx.scene.control.CheckBoxprivate javafx.scene.control.CheckBoxprivate javafx.scene.control.CheckBoxprivate javafx.scene.control.TextAreaprivate javafx.scene.control.Buttonprivate javafx.scene.control.Buttonprivate javafx.scene.control.Labelprivate javafx.scene.control.CheckBoxprivate javafx.scene.control.TextFieldprivate javafx.scene.control.CheckBoxprivate javafx.scene.control.TextAreaprivate javafx.scene.control.ComboBox<String> private javafx.scene.control.ComboBox<com.fazecast.jSerialComm.SerialPort> private javafx.scene.control.ComboBox<String> private javafx.scene.control.ComboBox<String> private javafx.scene.control.Buttonprivate javafx.scene.control.ComboBox<String> private javafx.scene.control.ComboBox<String> private long从类继承的字段 com.tlcsdm.qe.QeSample
PROJECT_INFO从类继承的字段 com.tlcsdm.frame.SampleBase
aesSeed, userData从类继承的字段 javafx.application.Application
STYLESHEET_CASPIAN, STYLESHEET_MODENA -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明bytesToHexString(byte[] bArray) private bytecharToByte(char c) Convert char to bytevoiddispose()Provides a place to dispose of any resources when sample is deselected.获得当前计算机所有的串口的名称列表排序字段.javafx.scene.NodegetPanel(javafx.stage.Stage stage) Returns the main sample panel.A short, multiple sentence description of the sample.组件id.javafx.scene.image.ImageView设置断开连接按钮点击时的事件处理器: 断开串口连接A short, most likely single-word, name to show to the user - e.g.sample version.boolean是否有右侧区域.private byte[]hexStringToBytes(String hexString) voidinitialize(URL location, ResourceBundle resources) void将在getPanel要设置的binding提取出来.voidvoid将在getPanel要设置的userData binding提取出来.booleanIf true this sample is shown to users, if false it is not.static voidprivate com.fazecast.jSerialComm.SerialPort打开串口private byte[]readFromPort(com.fazecast.jSerialComm.SerialPort serialPort) 从串口读取数据从类继承的方法 com.tlcsdm.qe.QeSample
getProjectName, getProjectVersion从类继承的方法 com.tlcsdm.frame.SampleBase
bindUserData, bindUserDataBefore, buildSample, getControlPanel, getControlPanelDividerPosition, getSampleXmlPrefix, initialize, initializeUserData, start, updateForVersionUpgrade从类继承的方法 javafx.application.Application
getHostServices, getParameters, getUserAgentStylesheet, init, launch, launch, notifyPreloader, setUserAgentStylesheet, stop
-
字段详细资料
-
serPort
private javafx.scene.control.ComboBox<com.fazecast.jSerialComm.SerialPort> serPort -
serPortSpeed
-
serPortCheckBit
-
serPortDataBit
-
serPortStopBit
-
serFlowControl
-
serPortOpenBtn
private javafx.scene.control.Button serPortOpenBtn -
recvShowHex
private javafx.scene.control.CheckBox recvShowHex -
recvShowTime
private javafx.scene.control.CheckBox recvShowTime -
recvStopShow
private javafx.scene.control.CheckBox recvStopShow -
recvClear
private javafx.scene.control.Button recvClear -
sendHex
private javafx.scene.control.CheckBox sendHex -
sendCycle
private javafx.scene.control.CheckBox sendCycle -
sendCycleRap
private javafx.scene.control.TextField sendCycleRap -
sendClear
private javafx.scene.control.Button sendClear -
sendCount
private javafx.scene.control.Label sendCount -
recvCount
private javafx.scene.control.Label recvCount -
CountReset
private javafx.scene.control.Button CountReset -
sendTextAear
private javafx.scene.control.TextArea sendTextAear -
recvTextAear
private javafx.scene.control.TextArea recvTextAear -
sendBtn
private javafx.scene.control.Button sendBtn -
circularSending
private final javafx.animation.Timeline circularSending -
waitTime
private volatile long waitTime -
cellFactory
javafx.util.Callback<javafx.scene.control.ListView<com.fazecast.jSerialComm.SerialPort>,javafx.scene.control.ListCell<com.fazecast.jSerialComm.SerialPort>> cellFactory
-
-
构造器详细资料
-
SerialPortTool
public SerialPortTool()
-
-
方法详细资料
-
getPanel
public javafx.scene.Node getPanel(javafx.stage.Stage stage) 从接口复制的说明:SampleReturns the main sample panel. -
main
-
getSampleId
从接口复制的说明:Sample组件id.- 指定者:
getSampleId在接口中Sample
-
getSampleName
从接口复制的说明:SampleA short, most likely single-word, name to show to the user - e.g. "CheckBox".- 指定者:
getSampleName在接口中Sample
-
getOrderKey
从接口复制的说明:Sample排序字段.- 指定者:
getOrderKey在接口中Sample
-
getSampleDescription
从类复制的说明:SampleBaseA short, multiple sentence description of the sample.- 指定者:
getSampleDescription在接口中Sample- 覆盖:
getSampleDescription在类中SampleBase
-
getSampleVersion
从接口复制的说明:Samplesample version.- 指定者:
getSampleVersion在接口中Sample
-
hasControlPanel
public boolean hasControlPanel()从接口复制的说明:Sample是否有右侧区域.- 指定者:
hasControlPanel在接口中Sample- 覆盖:
hasControlPanel在类中SampleBase
-
isVisible
public boolean isVisible()从类复制的说明:SampleBaseIf true this sample is shown to users, if false it is not.- 指定者:
isVisible在接口中Sample- 覆盖:
isVisible在类中SampleBase
-
initialize
- 指定者:
initialize在接口中javafx.fxml.Initializable
-
getSampleImageIcon
public javafx.scene.image.ImageView getSampleImageIcon()设置断开连接按钮点击时的事件处理器: 断开串口连接- 指定者:
getSampleImageIcon在接口中Sample- 覆盖:
getSampleImageIcon在类中SampleBase
-
initializeUI
public void initializeUI() -
initializeBindings
public void initializeBindings()从类复制的说明:SampleBase将在getPanel要设置的binding提取出来.- 覆盖:
initializeBindings在类中SampleBase
-
initializeUserDataBindings
public void initializeUserDataBindings()从类复制的说明:SampleBase将在getPanel要设置的userData binding提取出来.- 覆盖:
initializeUserDataBindings在类中SampleBase
-
dispose
public void dispose()从接口复制的说明:SampleProvides a place to dispose of any resources when sample is deselected.- 指定者:
dispose在接口中Sample- 覆盖:
dispose在类中SampleBase
-
findPorts
获得当前计算机所有的串口的名称列表- 返回:
- 串口名称列表
-
openPort
打开串口- 参数:
portName- 端口名称baudRate- 波特率- 返回:
- 串口对象
-
readFromPort
private byte[] readFromPort(com.fazecast.jSerialComm.SerialPort serialPort) 从串口读取数据- 参数:
serialPort- 当前已建立连接的SerialPort对象- 返回:
- 读取到的数据
-
hexStringToBytes
- 抛出:
Exception
-
charToByte
Convert char to byte- 参数:
c- char- 返回:
- byte
- 抛出:
Exception
-
bytesToHexString
-