• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revision518a41028b8cb6077c24b5ae4b0ad62888782670 (tree)
Zeit2020-10-10 22:41:05
AutorSatoshi Yasuda <7m3tjz@jarl...>
CommiterSatoshi Yasuda

Log Message

modified: config.h
modified: configure
modified: debian/changelog
modified: dmonitor.h
modified: dmonitor_utils.c
modified: from_node.c
modified: inet_read.c
modified: main.c
modified: node_utils.c
modified: rpt_node_utils.c

Ändern Zusammenfassung

Diff

--- a/config.h
+++ b/config.h
@@ -102,7 +102,7 @@
102102 #define PACKAGE_NAME "dmonitor"
103103
104104 /* Define to the full name and version of this package. */
105-#define PACKAGE_STRING "dmonitor 01.59"
105+#define PACKAGE_STRING "dmonitor 01.60"
106106
107107 /* Define to the one symbol short name of this package. */
108108 #define PACKAGE_TARNAME "dmonitor"
@@ -111,13 +111,13 @@
111111 #define PACKAGE_URL ""
112112
113113 /* Define to the version of this package. */
114-#define PACKAGE_VERSION "01.59"
114+#define PACKAGE_VERSION "01.60"
115115
116116 /* Define to 1 if you have the ANSI C header files. */
117117 #define STDC_HEADERS 1
118118
119119 /* Version number of package */
120-#define VERSION "01.59"
120+#define VERSION "01.60"
121121
122122 /* Define for Solaris 2.5.1 so the uint32_t typedef from <sys/synch.h>,
123123 <pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the
--- a/configure
+++ b/configure
@@ -1,6 +1,6 @@
11 #! /bin/sh
22 # Guess values for system-dependent variables and create Makefiles.
3-# Generated by GNU Autoconf 2.69 for dmonitor 01.59.
3+# Generated by GNU Autoconf 2.69 for dmonitor 01.60.
44 #
55 # Report bugs to <7m3tjz@jarl.com>.
66 #
@@ -580,8 +580,8 @@ MAKEFLAGS=
580580 # Identity of this package.
581581 PACKAGE_NAME='dmonitor'
582582 PACKAGE_TARNAME='dmonitor'
583-PACKAGE_VERSION='01.59'
584-PACKAGE_STRING='dmonitor 01.59'
583+PACKAGE_VERSION='01.60'
584+PACKAGE_STRING='dmonitor 01.60'
585585 PACKAGE_BUGREPORT='7m3tjz@jarl.com'
586586 PACKAGE_URL=''
587587
@@ -1277,7 +1277,7 @@ if test "$ac_init_help" = "long"; then
12771277 # Omit some internal or obsolete options to make the list less imposing.
12781278 # This message is too long to be a string in the A/UX 3.1 sh.
12791279 cat <<_ACEOF
1280-\`configure' configures dmonitor 01.59 to adapt to many kinds of systems.
1280+\`configure' configures dmonitor 01.60 to adapt to many kinds of systems.
12811281
12821282 Usage: $0 [OPTION]... [VAR=VALUE]...
12831283
@@ -1344,7 +1344,7 @@ fi
13441344
13451345 if test -n "$ac_init_help"; then
13461346 case $ac_init_help in
1347- short | recursive ) echo "Configuration of dmonitor 01.59:";;
1347+ short | recursive ) echo "Configuration of dmonitor 01.60:";;
13481348 esac
13491349 cat <<\_ACEOF
13501350
@@ -1435,7 +1435,7 @@ fi
14351435 test -n "$ac_init_help" && exit $ac_status
14361436 if $ac_init_version; then
14371437 cat <<\_ACEOF
1438-dmonitor configure 01.59
1438+dmonitor configure 01.60
14391439 generated by GNU Autoconf 2.69
14401440
14411441 Copyright (C) 2012 Free Software Foundation, Inc.
@@ -1912,7 +1912,7 @@ cat >config.log <<_ACEOF
19121912 This file contains any messages produced by compilers while
19131913 running configure, to aid debugging if configure makes a mistake.
19141914
1915-It was created by dmonitor $as_me 01.59, which was
1915+It was created by dmonitor $as_me 01.60, which was
19161916 generated by GNU Autoconf 2.69. Invocation command line was
19171917
19181918 $ $0 $@
@@ -2778,7 +2778,7 @@ fi
27782778
27792779 # Define the identity of the package.
27802780 PACKAGE='dmonitor'
2781- VERSION='01.59'
2781+ VERSION='01.60'
27822782
27832783
27842784 cat >>confdefs.h <<_ACEOF
@@ -5048,7 +5048,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
50485048 # report actual input values of CONFIG_FILES etc. instead of their
50495049 # values after options handling.
50505050 ac_log="
5051-This file was extended by dmonitor $as_me 01.59, which was
5051+This file was extended by dmonitor $as_me 01.60, which was
50525052 generated by GNU Autoconf 2.69. Invocation command line was
50535053
50545054 CONFIG_FILES = $CONFIG_FILES
@@ -5114,7 +5114,7 @@ _ACEOF
51145114 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
51155115 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
51165116 ac_cs_version="\\
5117-dmonitor config.status 01.59
5117+dmonitor config.status 01.60
51185118 configured by $0, generated by GNU Autoconf 2.69,
51195119 with options \\"\$ac_cs_config\\"
51205120
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,9 +1,16 @@
1+dmonitor (01.60) unstable; urgency=low
2+
3+ * update Closes: (#120)
4+ * BUG fixed for node adapter routine
5+
6+ -- Satoshi Yasuda <7m3tjz@jarl.com> Sat, 10 Oct 2020 21:10:00 +0900
7+
18 dmonitor (01.59) unstable; urgency=low
29
310 * update Closes: (#119)
411 * BUG fixed for lcd_type (typo) another one
512
6- -- Satoshi Yasuda <7m3tjz@jarl.com> Thu, 09 Oct 2020 22:20:00 +0900
13+ -- Satoshi Yasuda <7m3tjz@jarl.com> Fri, 09 Oct 2020 22:20:00 +0900
714
815 dmonitor (01.58) unstable; urgency=low
916
--- a/dmonitor.h
+++ b/dmonitor.h
@@ -33,6 +33,7 @@
3333 #include "config.h"
3434
3535 //#define _DEBUG_DVMEGA
36+//#define _SPECIFICATIO_CHECK
3637
3738 #define GW 0x80
3839 #define ZR 0x40
@@ -248,6 +249,7 @@ unsigned char dvmega_mode;
248249 unsigned char rig_device[32];
249250 unsigned char dvmega_frame_seq;
250251
252+
251253 /* node adapter */
252254 int node_VenderID;
253255 int node_ProductID;
@@ -272,9 +274,9 @@ struct dv_packet node_pkt;
272274 struct dv_packet node_pkt_header;
273275
274276 char node_voice_save[24];
275-int node_voice_send_sw;
276277 int node_tx_inv;
277278 int node_rx_inv;
279+int node_voice_send_sw;
278280
279281 char node_last_frame_sw;
280282
@@ -290,3 +292,6 @@ int scan_stop_sw;
290292 int lcd_type;
291293 int lcd;
292294 time_t lcd_time_save;
295+
296+/* mics */
297+char voice_packet_save[15];
--- a/dmonitor_utils.c
+++ b/dmonitor_utils.c
@@ -722,7 +722,7 @@ void jitter_put (unsigned char buff[])
722722 else
723723 memcpy (&jitter_buff[jitter_wr_pnt][0], buff, 10);
724724 jitter_wr_cnt++;
725- if (jitter_wr_cnt < 0) jitter_wr_cnt = 0;
725+ if (jitter_wr_cnt < 0) jitter_wr_pnt = 0;
726726 #ifdef _DEBUG_JITTER
727727 syslog (LOG_INFO, "jitter put %d %d", jitter_wr_pnt, jitter_wr_cnt);
728728 #endif
@@ -755,11 +755,12 @@ void jitter_putFifo (void)
755755 }
756756 putFifo (13, &jitter_buff[jitter_wr_pnt][0]);
757757 jitter_buff[jitter_wr_pnt][0] = 0xff;
758- jitter_rd_pnt = 0;
758+ jitter_rd_pnt++;
759+ if (jitter_rd_pnt > 20) jitter_rd_pnt = 0;
759760 digitalWrite (INET_LED, 0);
760761 digitalWrite (RIG_LED, 0);
761762 return;
762- }
763+ }
763764 while (jitter_buff[jitter_rd_pnt][0] != 0xff)
764765 {
765766 putFifo (13, &jitter_buff[jitter_rd_pnt][0]);
--- a/from_node.c
+++ b/from_node.c
@@ -56,11 +56,11 @@ void header_read_from_node(void) /* read from rig (DV packet) */
5656 memcpy (&inet_send_buff[20], area_call, 8);
5757 memcpy (&inet_send_buff[28], area_call, 8);
5858 if (memcmp (&inet_send_buff[36], "CQCQCQ ", 8)) gw_on = TRUE;
59- if (send_sw && !rig_send_sw)
59+ if (send_sw && !rig_send_sw && !node_voice_send_sw)
6060 {
61-syslog (LOG_DEBUG, "120");
6261 memset (inet_frame_id, 0xff, 2);
6362 node_last_frame_sw = FALSE;
63+ node_voice_send_sw = TRUE;
6464 in_addr.sin_port = htons(dest_inet_port);
6565 in_addr.sin_addr.s_addr = inet_addr(dest_address);
6666 m_seq++;
@@ -73,7 +73,6 @@ syslog (LOG_DEBUG, "120");
7373 inet_send_buff[57] = crc & 0xff;
7474 ret = sendto (in_addr_sock, inet_send_buff, 58, MSG_DONTWAIT,
7575 (struct sockaddr *)&in_addr, sizeof(in_addr));
76-syslog (LOG_DEBUG, "130 %d", ret);
7776 m_seq++;
7877 m_seq &= 0xffff;
7978 inet_send_buff[4] = (m_seq >> 8) & 0xff;
@@ -113,7 +112,6 @@ syslog (LOG_DEBUG, "130 %d", ret);
113112 HeaderLength = 41;
114113 voice_pnt = 12;
115114 seq = 0;
116- //node_last_frame_sw = TRUE;
117115 }
118116 }
119117
@@ -128,8 +126,6 @@ void header_send_set_from_node(void)
128126 memcpy (node_pkt.dstar.b_bone.b_b.frame_id, &tmp, 2);
129127 node_pkt.dstar.b_bone.b_b.seq = 0x80;
130128 //node_msg.msg_pnt = 0;
131-
132- node_voice_send_sw = FALSE;
133129 seq = 0;
134130 //node_last_frame_sw = TRUE;
135131 }
@@ -171,7 +167,7 @@ int voice_read_from_node()
171167 seq++;
172168 if (seq > 20) seq = 0;
173169 memcpy (&inet_send_buff[17], node_voice_save, 12);
174- if (send_sw)
170+ if (send_sw && !rig_send_sw && node_voice_send_sw)
175171 {
176172 in_addr.sin_port = htons(dest_inet_port);
177173 in_addr.sin_addr.s_addr = inet_addr(dest_address);
@@ -190,7 +186,7 @@ int voice_read_from_node()
190186 inet_send_buff[5] = m_seq & 0xff;
191187 inet_send_buff[16] = seq | 0x40;
192188 memcpy (&inet_send_buff[17], &node_voice_save[12], 12);
193- if (send_sw)
189+ if (send_sw && !rig_send_sw && node_voice_send_sw)
194190 {
195191 in_addr.sin_port = htons(dest_inet_port);
196192 in_addr.sin_addr.s_addr = inet_addr(dest_address);
@@ -200,6 +196,7 @@ int voice_read_from_node()
200196 memset (inet_frame_id, 0x00, 2);
201197 frameID = 0;
202198 HeaderLength = 0;
199+ node_voice_send_sw = FALSE;
203200 digitalWrite (RIG_LED, 0);
204201 digitalWrite (INET_LED, 0);
205202 }
@@ -215,16 +212,3 @@ int voice_read_from_node()
215212 return 0;
216213 }
217214
218-#if 0
219-void node_last_frame_send (void)
220-{
221- memcpy (&node_pkt.dstar.b_bone.dstar_udp.voice_d.data_segment, lastframe, 6);
222- dv_pkt_set(node_pkt);
223- node_pkt.pkt_type = 0x20;
224- node_pkt.dstar.b_bone.b_b.seq = seq | 0x40;
225- if (node_voice_send_sw) putFifo (30, node_pkt);
226- node_last_frame_sw = FALSE;
227- node_NoRespReply_sw = TRUE;
228-}
229-#endif
230-
--- a/inet_read.c
+++ b/inet_read.c
@@ -220,7 +220,7 @@ void inet_read (void)
220220 {
221221 #ifdef _SPECIFICATIO_CHECK
222222 if (!memcmp (&recvBuff[14], voice_packet_save, 15))
223- syslog (LOG_INFO, "Dup. packet (maybe loop) from %8.8s %2.2x %2.2x %2,2x", recvBuff[14], recvBuff[15], recvBuff[16]);
223+ syslog (LOG_INFO, "Dup. packet (maybe loop) from %2.2x %2.2x %2.2x", recvBuff[14], recvBuff[15], recvBuff[16]);
224224 memcpy (voice_packet_save, &recvBuff[14], 15);
225225 #endif
226226 #ifdef _DEBUG
@@ -255,7 +255,11 @@ void inet_read (void)
255255 if (t_sub > 300) syslog (LOG_INFO, "long interval %ld.%03ld Sec. seq:%2.2x", t_sub / 1000, t_sub % 1000, recvBuff[16]);
256256 //if (t_sub < 2) syslog (LOG_INFO, "short interval %ld mSec.", t_sub);
257257 #endif
258- if (!memcmp (&recvBuff[17] , dummy_frame_3, 3) && !memcmp (&recvBuff[26], &dummy_frame_3[9], 3)) recvBuff[16] |= 0x40;
258+ if (!memcmp (&recvBuff[17] , dummy_frame_3, 3) && !memcmp (&recvBuff[26], &dummy_frame_3[9], 3))
259+ {
260+ recvBuff[16] |= 0x40;
261+ memset (inet_frame_id, 0x00, 2);
262+ }
259263 jitter_put (&recvBuff[16]);
260264 if (!scan_sw) dstar_data (recvBuff, TRUE);
261265 #if 0
--- a/main.c
+++ b/main.c
@@ -152,7 +152,7 @@ int main(int argc, char *argv[])
152152 if (length <= 0 ) return -1;
153153 pg_path[length] = 0x00;
154154 if (ETagGen (pg_path, MD5_dmonitor) < 0) return 5;
155- //memcpy (MD5_dmonitor, "5ebe211107266a57b1af14a7fdcd8480", 32);
155+ memcpy (MD5_dmonitor, "5ebe211107266a57b1af14a7fdcd8480", 32);
156156
157157 Rp = malloc (sizeof (struct FifoPkt) - 1024);
158158 Wp = Rp;
--- a/node_utils.c
+++ b/node_utils.c
@@ -24,7 +24,7 @@ void node_term (void)
2424 // node_last_frame_sw = FALSE;
2525 // dvap_voice_send_sw = FALSE;
2626 // memset (&node_save_frame_id, 0x00, 2);
27- syslog (LOG_INFO, "Node Adapter down.");
27+ syslog (LOG_INFO, "Node Adapter close.");
2828 }
2929
3030 int node_cos_check(void)
@@ -99,6 +99,7 @@ int node_usb_init(void)
9999 usb_control_msg(udev, 0x40, SET_DelayTime, node_tx_delay/10, 0, NULL, 0, 100);
100100 if (!scan_sw) PICinfo();
101101 HeaderLength = 0;
102+ node_voice_send_sw = FALSE;
102103 return TRUE;
103104
104105 }
--- a/rpt_node_utils.c
+++ b/rpt_node_utils.c
@@ -101,7 +101,7 @@ void node_term (void)
101101 {
102102 // node_last_frame_sw = FALSE;
103103 // memset (&node_save_frame_id, 0x00, 2);
104- syslog (LOG_INFO, "Node Adapter down.");
104+ syslog (LOG_INFO, "Node Adapter close.");
105105 }
106106
107107 int node_cos_check(void)