/
Profile
Profile
Taglet을 등록하고 사용할 때 필요한 기본 설정값들을 저장해놓은 파일이다.
1) 입력 값
항목 | 설명 | 비고 |
---|---|---|
profile_id | Profile ID : 고유 값으로 사용되야 한다. | |
profile_name | Web에서 보여질 Profile 이름 | |
app_name | Taglet 실행파일명 | |
profile_file | Profile 파일 이름. 확장자는 ‘.profil’ 이다. | |
format | Data 형식. 대문자로 표기해야 하며 BYTE, CSV, TAG 형식 사용 가능하다. | |
byte_one | Data 형식이 BYTE 형인 경우 사용. Data 1개가 몇 byte로 구성되어 있는지 표기한다. | |
byte_count | Data 형식이 BYTE 형인 경우 사용. 패킷 당 몇개 Tag의 Data를 보내는지 표기한다. | |
csv_skip_first | Data 형식이 CSV 형인 경우 사용. 첫번째 줄을 생략 여부를 표기한다. ( Y / N ) | |
sep_char | Data 형식이 CSV 형인 경우 사용. data 구분자를 표기한다. | |
time_column | Data 형식이 CSV 형인 경우 사용. time column이 몇번 째인지 표기한다. 1부터 시작하며 time column이 없는 경우는 0. | |
date_format | Data 형식이 CSV 또는 TAG 형인 경우 사용. Tune 값의 형식을 표기한다. 빈 값인 경우 Timestamp로 사용된다. | |
csv_header | Data 형식이 CSV 형인 경우 사용. CSV의 Column 목록을 ","로 구분하여 입력 한다. | |
max_sensor | Taglet에 등록하여 사용할 수 있는 최대 Sensor 개수. | |
module_info | HTML의 input에 기본값으로 넣을 Data.(Json 형태) | Taglet 추가 시 HTML에서 함수 jsonToInput의 매개변수로 사용됨. |
module_name | Taglet 이름으로 사용 | |
listen_port | Edge와 통신할 때 사용하는 Port. 기본값은 50002 | |
input_count | Tag 리스트에 기본적으로 생성해주는 Tag 개수 | default_tag의 개수와 같아야 한다. |
data_type | Data 타입. 반드시 대문자로 표기해야 하며, INTEGER, FLOAT 타입 사용 가능하다. | |
endian | Data 구조. 반드시 대문자로 표기해야 하며 Little Endian은 LITTLE, Big Endian은 BIG 으로 표기한다. | |
default_tag | Tags에 기본으로 넣을 Data.(Json 형태) | Profile 예제 참조. |
BYTE Format Profile 예제
{ "profile_id": "simulator_byte", "profile_name": "simulator(byte)", "app_name": "simulator_byte", "profile_file": "simulator_byte.profil", "format": "BYTE", "byte_one": 4, "byte_count": 1, "max_sensor": 1, "module_info": {"sampling_hz":1024}, "module_name": "simulator(byte)", "listen_port": 50002, "input_count": 1, "data_type": "INTEGER", "endian": "LITTLE", "default_tag": [ {"caption":"Z1", "tagname":"Z1", "using":"Y", "to_fog":"Y", "limits":[{"min":0, "max":3010, "err_msg":"error", "check":"Y"}, {"min":10, "max":3000, "err_msg":"warning", "check":"Y"}]} ] }
CSV Format Profile 예제
{ "profile_id": "csvfile", "profile_name": "csvfile", "app_name": "csvfile", "profile_file": "csvfile.profil", "format": "CSV", "csv_skip_first": "Y", "sep_char": ",", "time_column": "0", "date_format": "", "csv_header": "", "max_sensor": 9999, "module_info": {"full_path":"", "name_rule":"test_*.csv"}, "module_name": "csvfile", "listen_port": 50002, "input_count": 0, "default_tag": [] }
TAG Format Profile 예제
{ "profile_id": "simulator_tag", "profile_name": "simulator(tag)", "app_name": "simulator_tag", "profile_file": "simulator_tag.profil", "format": "TAG", "date_format": "", "max_sensor": 9999, "module_info": {"min_value":2000, "max_value":3000, "sampling_hz":500}, "module_name": "simulator(tag)", "listen_port": 50002, "input_count": 2, "data_type": "INTEGER", "endian": "LITTLE", "default_tag": [ {"caption":"TAG 1", "tagname":"TAG1", "using":"Y", "to_fog":"Y", "limits":[{"min":1000, "max":3100, "err_msg":"error", "check":"Y"}, {"min":1050, "max":3050, "err_msg":"warning", "check":"Y"}]}, {"caption":"TAG 2", "tagname":"TAG2", "using":"Y", "to_fog":"Y", "limits":[{"min":1000, "max":3100, "err_msg":"error", "check":"Y"}, {"min":1050, "max":3050, "err_msg":"warning", "check":"Y"}]} ] }
Related content
Profile
Profile
More like this
프로토콜 규격
프로토콜 규격
More like this
프로토콜 규격
프로토콜 규격
More like this
Edge 및 Taglet 수정
Edge 및 Taglet 수정
More like this
태그의 관리
More like this
태그 분석기 (Tag Analyzer)
태그 분석기 (Tag Analyzer)
More like this