Added Wireshark extcap command line parameter interface to mstpcap utility.
Tested with Wireshark on Windows (mostly working). To use extcap, run Wireshark and go to the About-dialog. Find a tab located there named "Folders". Locate the extcap search path. Copy the mstpcap.exe to that folder, which may not exist. Restart Wireshark, and look for "BACnet MS/TP on COMx" interfaces. Configure the interface to change baud rate. Capture directly from the interface.
This commit is contained in:
@@ -624,6 +624,14 @@ void RS485_Initialize(
|
||||
printf("=success!\n");
|
||||
}
|
||||
|
||||
void RS485_Print_Ports(void)
|
||||
{
|
||||
/* note: format for Wireshark ExtCap */
|
||||
//printf("interface {value=/dev/ttyUSB%u}"
|
||||
// "{display=MS/TP Capture on /dev/ttyUSB%u}\n", i, i);
|
||||
/* FIXME: add code to print ports */
|
||||
}
|
||||
|
||||
#ifdef TEST_RS485
|
||||
#include <string.h>
|
||||
int main(
|
||||
|
||||
@@ -67,6 +67,8 @@ extern "C" {
|
||||
|
||||
void RS485_Cleanup(
|
||||
void);
|
||||
void RS485_Print_Ports(
|
||||
void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user