Skip to content

Tcp통신

호스트 컴퓨터 설정Tcp통신매개변수

명령어: 0x7320

매개변수 목록

필드유형필수설명
clientobject아니오클라이언트 매개변수,当 type 을/를 1 时该노드존재
client.frameHeaderstring아니오데이터帧头,留空을/를没有
client.ipstring아니오필요연결的서버IP
client.numberSystemint아니오수신到的데이터解析进制:0-10진수,1-16진수
client.portint아니오통신포트,범위 (0, 65535]
client.separatorstring아니오데이터分隔符
client.terminatorstring아니오데이터帧尾,留空을/를没有
serverobject아니오서버 매개변수,当 type 을/를 0 时该노드존재
server.frameHeaderstring아니오데이터帧头,留空을/를没有
server.ipstring아니오현재用作서버IP
server.numberSystemint아니오수신到的데이터解析进制:0-10진수,1-16진수
server.portint아니오통신포트,범위 (0, 65535]
server.separatorstring아니오데이터分隔符
server.terminatorstring아니오데이터帧尾,留空을/를没有
craftint프로세스번호,범위 [1, 9]
robotint현재로봇 번호,범위 [1, 4]
typeintTCP통신방식:0-서버,1-고객端,2-配置파일

요청 예시

json
{
  "client": {
    "frameHeader": "@",
    "ip": "192.168.1.111",
    "numberSystem": 0,
    "port": 9000,
    "separator": ",",
    "terminator": "!"
  },
  "craft": 1,
  "robot": 1,
  "server": {
    "frameHeader": "@",
    "ip": "192.168.0.229",
    "numberSystem": 0,
    "port": 9001,
    "separator": ",",
    "terminator": "!"
  },
  "type": 1
}

호스트 컴퓨터 조회Tcp통신매개변수

명령어: 0x7321

매개변수 목록

필드유형필수설명
craftint프로세스번호,범위 [1, 9]
robotint로봇 번호,범위 [1, 4]
typeintTCP통신방식:0-서버,1-고객端,2-配置파일;을/를 2 时컨트롤러전송서버 매개변수

요청 예시

json
{
  "craft": 1,
  "robot": 1,
  "type": 2
}

컨트롤러 응답Tcp통신매개변수

명령어: 0x7322

매개변수 목록

필드유형필수설명
clientobject아니오클라이언트 매개변수,当 type 을/를 1 时该노드존재
client.frameHeaderstring아니오데이터帧头,留空을/를没有
client.ipstring아니오필요연결的서버IP
client.numberSystemint아니오수신到的데이터解析进制:0-10진수,1-16진수
client.portint아니오통신포트,범위 (0, 65535]
client.separatorstring아니오데이터分隔符
client.terminatorstring아니오데이터帧尾,留空을/를没有
serverobject아니오서버 매개변수,当 type 을/를 0 时该노드존재
server.frameHeaderstring아니오데이터帧头,留空을/를没有
server.ipstring아니오현재用作서버IP
server.numberSystemint아니오수신到的데이터解析进制:0-10진수,1-16진수
server.portint아니오통신포트,범위 (0, 65535]
server.separatorstring아니오데이터分隔符
server.terminatorstring아니오데이터帧尾,留空을/를没有
craftint프로세스번호,범위 [1, 9]
robotint현재로봇 번호,범위 [1, 4]
typeintTCP통신방식:0-서버,1-고객端,2-配置파일

응답 예시

json
{
  "client": {
    "frameHeader": "@",
    "ip": "192.168.1.111",
    "numberSystem": 0,
    "port": 9000,
    "separator": ",",
    "terminator": "!"
  },
  "craft": 1,
  "robot": 1,
  "server": {
    "frameHeader": "@",
    "ip": "192.168.0.229",
    "numberSystem": 0,
    "port": 9001,
    "separator": ",",
    "terminator": "!"
  },
  "type": 1
}

호스트 컴퓨터요청연결Tcp통신

명령어: 0x7323

매개변수 목록

필드유형필수설명
craftint프로세스번호,범위 [1, 9]
robotint로봇 번호,범위 [1, 4]

요청 예시

json
{
  "craft": 1,
  "robot": 1
}

호스트 컴퓨터요청연결 해제Tcp통신

명령어: 0x7324

매개변수 목록

필드유형필수설명
craftint프로세스번호,범위 [1, 9]
robotint로봇 번호,범위 [1, 4]

요청 예시

json
{
  "craft": 1,
  "robot": 1
}