Starting in the config file, looking for port names/lengths on my own machine:
DEVICE3_NAME:/dev/ttyS0 Couldn't find that label in xastir/src, but did a search like this: grep DEVICE *.h *.c | grep NAME and found: db_gis.h: char name[MAX_DEVICE_NAME+1]; // name of connection to display to user - ioparam device_name interface.h:#define MAX_DEVICE_NAME 128 interface.h: char device_name[MAX_DEVICE_NAME+1]; /* device name */ interface.h: char device_name[MAX_DEVICE_NAME+1]; /* device name */ Your device name is only 63 characters. So... It is probably a limitation in the GUI code rather than the interface code. The "iface" struct is where device_name[MAX_DEVICE_NAME+1] is used. Looking a bit further, interface_gui.c has "TNC_device_name_data" with a max length of 40. That's probably your limitation, but would be in multiple places throughout that file for different types of interfaces, i.e. TNC_device_name_data GPS_device_name_data WX_device_name_data AX25_device_name_data NWX_host_name_data NGPS_host_name_data Inet_host_data Database_host_data AGWPE_host_data There are probably more. that XmNmaxLength should be set to MAX_DEVICE_NAME, instead of 40. These get assigned to variables such as these, which are all in structs defined from the "iface" struct: devices[TNC_port].device_name devices[GPS_port].device_name devices[WX_port].device_name devices[AX25_port].device_name I made the changes to XmNmaxLength in 9 places, recompiled, and Xastir is running nicely. I'll check in the changes later today if everything appears normal. On Sun, Feb 7, 2016 at 10:17 AM, Jason KG4WSV <[email protected]> wrote: > I've started using device special file names that look like > > /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_AD025GYZ-if00-port0 > > because they're unique no matter where i plug them in, and it's a result of > standard udev rules. (once upon a time I started writing some udev rules > to make them look like OS X, but it isn't worth it because I use too many > different systems and i may not have root privs to hack at udev). > > I just tried to do this with xastir for the first time, and it seems the > field isn't big enough. > > can i stick a long name in the config file and expect it to work? > > Consider this a change request to make the field larger to accommodate > these forms of device special file name. > > thanks, > Jason > kg4wsv > _______________________________________________ > Xastir mailing list > [email protected] > http://xastir.org/mailman/listinfo/xastir > -- Curt, WE7U http://wetnet.net/~we7u http://www.sarguydigital.com _______________________________________________ Xastir mailing list [email protected] http://xastir.org/mailman/listinfo/xastir
