MCPcopy Create free account

hub / github.com/9d77v/iec104 / functions

Functions38 in github.com/9d77v/iec104

↓ 5 callersFunctionparseLittleEndianUInt16
parseLittleEndianUint16 转换小端Uint16
apci.go:70
↓ 5 callersMethodsendSFrame
sendSFrame 发送S帧
client.go:293
↓ 4 callersMethodRun
Run 运行
client.go:58
↓ 4 callersFunctionconvertBytes
convertBytes 转换发送数据
apci.go:77
↓ 3 callersMethodsendTotalCall
sendTotalCall 发送总召唤
client.go:304
↓ 2 callersMethodParseASDU
ParseASDU 解析asdu
asdu.go:44
↓ 2 callersMethodParseTime
ParseTime 解析asdu中7个字节时表,转为带毫秒的时间戳
asdu.go:139
↓ 2 callersMethodParseVariable
ParseVariable 解析asdu可变结构限定词
asdu.go:127
↓ 2 callersMethodsendUFrame
sendUFrame 发送U帧
client.go:286
↓ 1 callersFunctionNewClient
NewClient 初始化客户端,连接失败,每隔10秒重试
client.go:41
↓ 1 callersFunctionNewContextHook
NewContextHook use to make an hook
example/client/utils/log.go:19
↓ 1 callersMethodParseCtr
ParseCtr 解析控制域
apci.go:87
↓ 1 callersFunctionconvert4BytesToSlice
(b [4]byte)
apci.go:51
↓ 1 callersMethoddail
建立tcp连接,支持重试和主备切换
client.go:95
↓ 1 callersFunctionfindCaller
(skip int)
example/client/utils/log.go:42
↓ 1 callersFunctiongetCaller
(skip int)
example/client/utils/log.go:54
↓ 1 callersMethodhandleSignal
Close 结束程序
client.go:338
↓ 1 callersMethodhandler
handler 处理接收到的已解析数据
client.go:167
↓ 1 callersMethodincrRsn
incrRsn 增加rsn
client.go:330
↓ 1 callersFunctioninitLogger
()
example/client/config/init.go:35
↓ 1 callersMethodparseAPDU
parseAPDU 解析APDU
apdu.go:17
↓ 1 callersFunctionparseBigEndianUInt16
parseBigEndianUint16 转换大端Uint16
apci.go:63
↓ 1 callersMethodparseData
ParseData 解析接收到的数据
client.go:186
↓ 1 callersMethodparseIFrame
parseIFrame 解析I帧
apci.go:107
↓ 1 callersMethodparseSFrame
()
apci.go:116
↓ 1 callersMethodparseUFrame
()
apci.go:123
↓ 1 callersMethodread
Read 读数据
client.go:125
↓ 1 callersMethodsendElectricityTotalCall
sendTotalCall 发送电度总召唤
client.go:317
↓ 1 callersMethodwrite
Write 写数据
client.go:146
MethodFire
Fire implement fire
example/client/utils/log.go:37
MethodLevels
Levels implement levels
example/client/utils/log.go:32
FunctionTask
Task 数据处理任务
example/client/worker/worker.go:8
FunctionTestASDU_ParseASDU
(t *testing.T)
asdu_test.go:7
FunctionTestASDU_ParseTime
(t *testing.T)
asdu_test.go:47
FunctionTestASDU_ParseVariable
(t *testing.T)
asdu_test.go:82
FunctionconvertIntToBytes
convertIntToBytes 转换int为bytes,大端序
apci.go:56
Functioninit
()
example/client/config/init.go:28
Functionmain
()
example/client/main.go:11