Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions config.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ void read_parms()
/* Read personal parameters */
if ((fp = sfopen(pparfile, "r")) != (FILE *)NULL)
{
fprintf(stderr, "Also using personal configuration from %s\n", pparfile);
readpars(fp, 0);
fclose(fp);
}
Expand Down
8 changes: 8 additions & 0 deletions remote_launch
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

POSSIBLE_SP1_LOCATIONS=( "/dev/serial/by-id/usb-Digilent_Digilent_USB_Device_*-if01-port0" )

echo "# Automatically generated based on this system's actual location for the first serial port" > ~/.remoterc.dfl
echo -e "pu port\t" $POSSIBLE_SP1_LOCATIONS >> ~/.remoterc.dfl

remote_bin
4 changes: 2 additions & 2 deletions remoterc.dfl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pu pname6 YDNY
pu pname7 YUYN
pu pname8 NDYN
pu pprog1 down
pr port /dev/ttyUSB1
pu baudrate 38400
#pr port Set this to one of the symlinks in /dev/serial/by-id/<XXX> depending on which device SP1 is
pr baudrate 38400
pu rtscts No
pu mfcolor RED
12 changes: 6 additions & 6 deletions rwconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,13 @@ struct pars mpars[] = {
{ "", PUBLIC, "pprog11" },
{ "", PUBLIC, "pprog12" },
/* Serial port & friends */
{ DFL_PORT, PRIVATE, "port" },
{ DFL_PORT, PUBLIC, "port" },
{ CALLIN, PRIVATE, "callin" },
{ CALLOUT, PRIVATE, "callout" },
{ UUCPLOCK, PRIVATE, "lock" },
{ DEF_BAUD, PUBLIC, "baudrate" },
{ "8", PUBLIC, "bits" },
{ "N", PUBLIC, "parity" },
{ DEF_BAUD, PRIVATE, "baudrate" },
{ "8", PRIVATE, "bits" },
{ "N", PRIVATE, "parity" },
/* Kermit the frog */
{ KERMIT, PRIVATE, "kermit" },
{ "Yes", PRIVATE, "kermallow" },
Expand Down Expand Up @@ -214,14 +214,14 @@ FILE *fp;
int init;
{
struct pars *p;
char line[80];
char line[300];
char *s;
int public;
int dosleep = 0;

if (init) strcpy(P_SCRIPTPROG, "runscript");

while(fgets(line, 80, fp) != (char *)0) {
while(fgets(line, 300, fp) != (char *)0) {

s = strtok(line, "\n\t ");
if (s == NULL) continue;
Expand Down
5 changes: 5 additions & 0 deletions sp2_launch
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

POSSIBLE_SP2_LOCATIONS=( "/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_*-if00-port0" )

screen $POSSIBLE_SP2_LOCATIONS 38400