Wireless WiFi based Thermometers Rated for 0C (lower?) to about 299C.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

34 lines
1.2 KiB

-- protocol dissector for EcoPlugs protocol
-- declare our protocol
tmpProt = Proto("TMP","Prograde Temperature Probe")
-- create a function to dissect it
function tmpProt.dissector(buffer,pinfo,tree)
pinfo.cols.protocol = "TMP"
local protocolTree = tree:add(tmpProt, buffer(), "Temperature Setpoint")
if buffer:len() == 14 then
-- this is a 14 byte command that appears to do nothing?
protocolTree:add(buffer(0,6), "ID: " .. buffer(0,6))
end
if buffer:len() == 15 then
-- this is a 15 byte command that appears to do nothing?
protocolTree:add(buffer(0,6), "ID: " .. buffer(0,6))
end
if buffer:len() == 16 then
-- this is a 16 byte command that often causes state change on the board
protocolTree:add(buffer(0,7), "ID (?): " .. buffer(0,7))
protocolTree:add(buffer(7,5), "Command (?): " .. buffer(7, 5))
protocolTree:add(buffer(12,3), "Setpoint (C): " .. buffer(12,1) .. " " .. buffer(13,1) .. " " .. buffer(14,1))
protocolTree:add(buffer(15,1), "End of Data (?)")
end
end
-- load the udp.port table
udp_table = DissectorTable.get("udp.port")
-- register our protocol to handle udp port 25 and if I could, dest ports of 31423
udp_table:add(17000, tmpProt)