Преглед изворни кода

adding pcap for all submodules

priyadharsan пре 3 месеци
родитељ
комит
acd4af62d2

+ 1 - 1
Dissector/tc_tm_protocols.lua

@@ -605,7 +605,7 @@ function TM_dissector(buffer, pinfo, tree)  -- OBC to GS
         info_display= {buffer(11, 2):le_uint(),buffer(7, 4):le_uint() ,tm_id} --- for info display in wireshark
     
 	 
-	pinfo.cols.info ="Seq_no = " ..info_display[1]..", TS = " ..info_display[2]..", TM ID = "..info_display[3] -- for info display in wireshark
+	pinfo.cols.info ="seq_no = " ..info_display[1]..", TS = " ..info_display[2]..", TM ID = "..info_display[3] -- for info display in wireshark
     end
     -- Check if the buffer contains enough data for the expected total length
    --if buffer:len() < 38 + buffer(21, 2):uint() then

+ 1 - 1
Dissector/uhf_dissector.lua

@@ -3,7 +3,7 @@ function UHF_DISSECTOR(buffer, pinfo, tree, HM_TM_dissector, offset, tm_len,data
 
 -- Define ProtoFields for each element of the structure (like in your original example)
 local f_cnt_hk_str = ProtoField.uint8("TC_TM_PROTOCOL.cnt_hk_str", "cnt_hk_str", base.DEC)
-local f_timestamp = ProtoField.uint32("TC_TM_PROTOCOL.timestamp", "timestamp", base.DEC)
+local f_timestamp = ProtoField.uint32("TC_TM_PROTOCOL.timestamp1", "timestamp", base.DEC)
 local f_uptime = ProtoField.uint32("TC_TM_PROTOCOL.uptime", "Uptime", base.DEC)
 local f_uarto_rx_count = ProtoField.uint32("TC_TM_PROTOCOL.uarto_rx_count", "UART0 RX Count", base.DEC)
 local f_uart1_rx_count = ProtoField.uint32("TC_TM_PROTOCOL.uart1_rx_count", "UART1 RX Count", base.DEC)

BIN
exo_dissector_lua.zip


+ 9 - 0
pcaps/Readme.txt

@@ -0,0 +1,9 @@
+## Set port number for these pcaps in wireshark
+
+# adcs   -   6777
+# eps    -   6779
+# sensor -   6779
+# sband  -   6779
+# uhf    -   6779
+# obc    -   6779
+# beacon -   6779

BIN
pcaps/adcs.pcapng


BIN
pcaps/beacon.pcapng




BIN
pcaps/sband.pcapng


BIN
pcaps/sensor.pcapng



+ 3 - 1
readme

@@ -18,4 +18,6 @@ C:\Users\{your_username}\AppData\Roaming\Wireshark\plugins
 
 4. After pasting the ZIP file in the plugins folder, open Wireshark. All Lua dissectors will be automatically loaded by Wireshark.
 
-5. Incase any modifications made in lua script run the ./exo_dissector_lua.sh script to generate the zip file again and follow from step 1 to 4.
+5. Go to the Edit menu, click Preferences, then under Protocols, select TC_TM to set your port number.
+
+6. Incase any modifications made in lua script run the ./exo_dissector_lua.sh script to generate the zip file again and follow from step 1 to 4.