Skip to content

Commit

Permalink
Change default device filename for CAT.
Browse files Browse the repository at this point in the history
  • Loading branch information
kobayasy committed Oct 19, 2024
1 parent b0fff75 commit 949bc24
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 26 deletions.
22 changes: 11 additions & 11 deletions README_ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ POSIX準拠のOSならば動作すると思いますが、動作確認が出来
|---|---|---|---|
|IC-705|?|?|-|
|IC-7100|?|?|-|
|IC-7300|macOS Sonoma 14.2.1|Yes|/dev/cu.usbserial-110|
|IC-7300|macOS Sonoma 14.2.1|Yes|/dev/cu.usbserial-1110|
||Linux ?|?|-|
|IC-7600|?|?|-|
|IC-7610|?|?|-|
Expand All @@ -35,9 +35,9 @@ POSIX準拠のOSならば動作すると思いますが、動作確認が出来
## インストール
1. 下記コマンドでビルドとインストールを実行します。
```
curl -LOJs https://github.com/kobayasy/syncTimeICOM/releases/download/1.0/syncTimeICOM-1.0.tar.gz
tar xzf syncTimeICOM-1.0.tar.gz
cd syncTimeICOM-1.0
curl -LOJs https://github.com/kobayasy/syncTimeICOM/releases/download/1.1/syncTimeICOM-1.1.tar.gz
tar xzf syncTimeICOM-1.1.tar.gz
cd syncTimeICOM-1.1
./configure --prefix=$HOME
make install
Expand All @@ -55,12 +55,12 @@ syncTimeICOM --help
実行例↓
```
$ syncTimeICOM --help
syncTimeICOM 1.0
syncTimeICOM 1.1
Usage: syncTimeICOM [-u|-l] [--utc|--local] [CATDEV]
syncTimeICOM --help
CATDEV device filename for CAT (default: /dev/cu.usbserial-110)
CATDEV device filename for CAT (default: /dev/cu.usbserial-1110)
runmode
-u, --utc adjust to UTC (default)
Expand All @@ -73,10 +73,10 @@ $
```

2. 無線機をPCに繋いで、電源を切った状態で下記コマンドを実行して下さい。
/dev/cu.usbserial-110 部分はPCが認識した無線機の CAT デバイスファイル名に置き換えて下さい。
/dev/cu.usbserial-1110 部分はPCが認識した無線機の CAT デバイスファイル名に置き換えて下さい。

```
syncTimeICOM --utc /dev/cu.usbserial-110
syncTimeICOM --utc /dev/cu.usbserial-1110
```
無線機の電源が入る
Expand All @@ -89,7 +89,7 @@ syncTimeICOM --utc /dev/cu.usbserial-110

実行例↓
```
$ syncTimeICOM --utc /dev/cu.usbserial-110
$ syncTimeICOM --utc /dev/cu.usbserial-1110
Power on
[ Waiting for 0 seconds until exactly 09:18 UTC ]
Adjusted to 09:18 UTC
Expand All @@ -113,7 +113,7 @@ configure のオプションは下記コマンドで表示されます。
実行例↓
```
$ ./configure --help
'configure' configures syncTimeICOM 1.0 to adapt to many kinds of systems.
'configure' configures syncTimeICOM 1.1 to adapt to many kinds of systems.
Usage: ./configure [OPTION]... [VAR=VALUE]...
Expand Down Expand Up @@ -183,7 +183,7 @@ Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
--with-catdev=DEVICE device filename for CAT
(default=/dev/cu.usbserial-110)
(default=/dev/cu.usbserial-1110)
--with-timeout=MSEC timeout in msec for CAT
Some influential environment variables:
Expand Down
20 changes: 10 additions & 10 deletions src/configure
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.72 for syncTimeICOM 1.0.
# Generated by GNU Autoconf 2.72 for syncTimeICOM 1.1.
#
# Report bugs to <kobayasy@kobayasy.com>.
#
Expand Down Expand Up @@ -606,8 +606,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='syncTimeICOM'
PACKAGE_TARNAME='syncTimeICOM'
PACKAGE_VERSION='1.0'
PACKAGE_STRING='syncTimeICOM 1.0'
PACKAGE_VERSION='1.1'
PACKAGE_STRING='syncTimeICOM 1.1'
PACKAGE_BUGREPORT='kobayasy@kobayasy.com'
PACKAGE_URL=''

Expand Down Expand Up @@ -1276,7 +1276,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
'configure' configures syncTimeICOM 1.0 to adapt to many kinds of systems.
'configure' configures syncTimeICOM 1.1 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
Expand Down Expand Up @@ -1342,7 +1342,7 @@ fi

if test -n "$ac_init_help"; then
case $ac_init_help in
short | recursive ) echo "Configuration of syncTimeICOM 1.0:";;
short | recursive ) echo "Configuration of syncTimeICOM 1.1:";;
esac
cat <<\_ACEOF
Expand All @@ -1357,7 +1357,7 @@ Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
--with-catdev=DEVICE device filename for CAT
(default=/dev/cu.usbserial-110)
(default=/dev/cu.usbserial-1110)
--with-timeout=MSEC timeout in msec for CAT
Some influential environment variables:
Expand Down Expand Up @@ -1437,7 +1437,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
syncTimeICOM configure 1.0
syncTimeICOM configure 1.1
generated by GNU Autoconf 2.72
Copyright (C) 2023 Free Software Foundation, Inc.
Expand Down Expand Up @@ -1702,7 +1702,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by syncTimeICOM $as_me 1.0, which was
It was created by syncTimeICOM $as_me 1.1, which was
generated by GNU Autoconf 2.72. Invocation command line was
$ $0$ac_configure_args_raw
Expand Down Expand Up @@ -5900,7 +5900,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by syncTimeICOM $as_me 1.0, which was
This file was extended by syncTimeICOM $as_me 1.1, which was
generated by GNU Autoconf 2.72. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
Expand Down Expand Up @@ -5964,7 +5964,7 @@ ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config='$ac_cs_config_escaped'
ac_cs_version="\\
syncTimeICOM config.status 1.0
syncTimeICOM config.status 1.1
configured by $0, generated by GNU Autoconf 2.72,
with options \\"\$ac_cs_config\\"
Expand Down
6 changes: 3 additions & 3 deletions src/configure.ac
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# configure.ac - Last modified: 03-Feb-2024 (kobayasy)
# configure.ac - Last modified: 19-Oct-2024 (kobayasy)
#
# Copyright (C) 2024 by Yuichi Kobayashi <kobayasy@kobayasy.com>
#
Expand All @@ -23,7 +23,7 @@
# SOFTWARE.

AC_PREREQ(2.72)
AC_INIT([syncTimeICOM], [1.0], [kobayasy@kobayasy.com], [syncTimeICOM])
AC_INIT([syncTimeICOM], [1.1], [kobayasy@kobayasy.com], [syncTimeICOM])
AC_COPYRIGHT([Copyright @{:@C@:}@ 2024 by Yuichi Kobayashi <kobayasy@kobayasy.com>])
AC_CONFIG_SRCDIR([syncTimeICOM.c])
AC_CONFIG_AUX_DIR([conf])
Expand Down Expand Up @@ -63,7 +63,7 @@ AC_CHECK_HEADERS([termcap.h],
AC_SYS_POSIX_TERMIOS
AS_VAR_IF([ac_cv_sys_posix_termios], [no],
[AC_MSG_ERROR([missing function: POSIX termios.])] )
MY_ARG_WITH([catdev], [DEVICE], [device filename for CAT @{:@default=/dev/cu.usbserial-110@:}@])
MY_ARG_WITH([catdev], [DEVICE], [device filename for CAT @{:@default=/dev/cu.usbserial-1110@:}@])
AS_VAR_SET_IF([withval],
[AC_DEFINE_UNQUOTED([CATDEV], ["$withval"], [Deveice filename for CAT.])] )
MY_ARG_ENABLE([tzlocal], [enable], [adjust to local time])
Expand Down
4 changes: 2 additions & 2 deletions src/syncTimeICOM.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* syncTimeICOM.c - Last modified: 03-Feb-2024 (kobayasy)
/* syncTimeICOM.c - Last modified: 19-Oct-2024 (kobayasy)
*
* Copyright (C) 2024 by Yuichi Kobayashi <kobayasy@kobayasy.com>
*
Expand Down Expand Up @@ -47,7 +47,7 @@
#define PACKAGE_TARNAME "syncTImeICOM"
#endif /* #ifndef PACKAGE_TARNAME */
#ifndef CATDEV
#define CATDEV "/dev/cu.usbserial-110"
#define CATDEV "/dev/cu.usbserial-1110"
#endif /* #ifndef CATDEV */
#ifndef TZLOCAL
#define TZLOCAL false
Expand Down

0 comments on commit 949bc24

Please sign in to comment.