3

I am establishing a kermit connection to my target via a ~/.kermrc file as suggested...

set line /dev/ttyUSB0

set flow-control none

set carrier-watch off

set speed 115200

connect

... But I periodically must unpower the target, which then changes the ttyUSB enumeration, which means I need to change the USB enumeration in the ~/.kermrc file.

My question is, is there a way to dynamically populate the USB line number without modifying the ~/.kermrc. If I remove the 'set line /dev/ttyUSB' and attempt to populate via command-line like this...

kermit -l /dev/ttyUSB0

... the ~/.kermrc file is read first and the command-line line configuration is not respected, so you receive errors that a line number must be set before setting the additional options in the ~/.kermrc.

Thanks in advance for response.

Badslacks
  • 69
  • 4
  • I too am looking for a similar solution. I had done it through scripts though. You may take a look at it [here](http://stackoverflow.com/questions/43133310/how-can-i-get-kermit-script-to-accept-arguments-and-connect-to-serial-device). Passing port number as argument seemed to be the best solution to me. – skrowten_hermit Mar 31 '17 at 10:26

0 Answers0