Answer the question
In order to leave comments, you need to log in
How from *.dat file -> to *.sql?
Good morning everyone!
two files on mega
They gave me two files in *.dat format and asked me to put them into sql. I opened the file and saw
Answer the question
In order to leave comments, you need to log in
The PDA2 descriptor comes first, then some binary data.
The header starts at offset 0x20. All fields are text, separated by the end of the line (0xD 0xA). At the beginning of each field is the name, then a colon and the value of the field.
At the beginning of the header is a general description of the data
beginheader: // признак начала заголовка
clk:0.01 // скорее всего, частота дискретизации данных
typ:real // тип данных
starttime:20.02.2017 09:24:07.100000 // время начала
frames:0003600000 // количество кадров данных
starttrigger:0000000000
stoptrigger:0000000000
$PDA_RefTimestamp:00063623161262590000 // таймстамп с устройства ??
Module_name_0:Generic unicast UDP // названия модулей
Module_name_1:Generic unicast UDP
Module_name_2:Generic unicast UDP
Module_name_3:Generic unicast UDP
Module_name_4:Bits01
Module_name_5:Bits02
Module_name_6:Bits03
Module_name_7:Bits04
version:ibaPDA 6.24.6 // версия прошивки ??
PDAKeyInfo:0168b02050020302060068a4280021018b0c246a842850a2008114154880800023040918106880804080040d101068a08040800205001028008040800201081028200040800207
PDAKeyInfo2:0140008114520001040000040904700081141002040914700081040140000004700001040040000104700001041040000104300041041041008104600001040041200104600001114000011450000104104004090470008104104204091470008104114000010470000104104000010470000104104102050c70204184104100010c602001041040000104702041
PDADongleId:0100000010400000000000040800600080000002040810600080000100000000600000000000000000200000000000000000200000000000000000200000000000000000200000
endheader: // признак конца заголовка
beginchannel:0 // начало канала и его номер
unit: // единица измерения
$PDA_comment1:IBA[1] // комментарий с устройства
$PDA_Tbase:0.01 // ??
$PDA_Typ:int16 // тип данных
minscale:-32768 // минимальное значение
maxscale:32767 // максимальное значение
xoffset:000000000000 // ??
channel_offset:O6E6B36E540406460 // смещение данных
endchannel: // признак конца описателя
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question