ON a MAC, I am using Wireshark (tshark.exe) to do som CAN - J1939 filtering. I have done it with a script in LUA. This is working fine. But when I try it in Win10, I have problems by doing the field.new on a j1939 This is part of my LUA file.
In the line:
I get the error
asked 19 Apr '17, 07:55 Klaus Jakobsen edited 04 May '17, 06:38 grahamb ♦ showing 5 of 13 show 8 more comments |
While this may not be your issue, when comparing two different builds of Wireshark it's helpful to state the version numbers of the two versions.
On my MAC it is Wireshark 2.2.1. On my Win10 I tried initially with newest (2.2.6) but to be sure I also tried the 2.2.1 on my Win10. It is the same. Both win installations are not working ane are giving the same error.
Can you post the full contents of your Lua script.
This is not nice. Is it possible to add a file instead
Use the
<pre
></pre
> markup around code.First part of the file:
end
– if src == “9” then – Vi ser kun på beskeder fra CAN-ID 9 – io.write( “VarID: \n” ) – end end
Second part of the file
I am also facing a similar issue with Field.new. LUA script was working in previous wireshark builds, but after updating to 1.12.7 for win7 its now failing. I have checked this field and it does exist. Whats changed?
[string “GSMMAP.lua”]:244: bad argument #1 to ‘?’ (Field_new: a field with this name must exist)
tcap_abort = Field.new(“tcap.abort_element”) — line 244
Hi there, would you be able to share a sample capture of the J1939 data?
Hi WIreshark Q&A I have placed a fil in dropbox:
https://www.dropbox.com/s/oxmxnkyefw2tcs9/010-2129680398_bus_1.pcap?dl=0
Thanks Klaus - in case you happen to have a sample version of the file including some of the more standard/non proprietary PGN data (e.g. wheel speed, RPM, …) that would be interesting. But otherwise appreciate the sharing of above.