{"id":2883,"date":"2021-03-10T21:23:58","date_gmt":"2021-03-10T20:23:58","guid":{"rendered":"https:\/\/dxham.de\/?p=2883"},"modified":"2021-03-10T21:35:46","modified_gmt":"2021-03-10T20:35:46","slug":"ic-7300-uhrzeit-und-datum-per-usb-verbindung-stellen","status":"publish","type":"post","link":"https:\/\/dxham.de\/?p=2883","title":{"rendered":"IC-7300 &#8211; Uhrzeit und Datum per USB-Verbindung stellen"},"content":{"rendered":"<p>In &#8222;<a href=\"https:\/\/dxham.de\/?p=2840\">IC-7300 \u00e2\u20ac\u201c Uhrzeit stellen per USB-Verbindung<\/a>&#8220; hatte ich bereits vom Beitrag auf der Webseite&nbsp;<strong><a href=\"https:\/\/amateurfunk-mint.blogspot.com\/2021\/01\/icom-ic-7300-setzen-der-zeit-per-usb.html?m=1\" target=\"_blank\" rel=\"noopener\">amateurfunk-mint.blogspot.com<\/a>&nbsp;<\/strong>berichtet. Da ich ab und an Screenshots am IC-7300 erstellt habe oder Backups durchf\u00fchrte, stellte ich fest, dass das Datum noch immer auf den 01.01.2000 gesetzt war. Daher habe ich den Code f\u00fcr die cmd-Datei etwas erweitert.&nbsp;<\/p>\n<p>An dieser Stelle nochmals Danke an Wilhelm DL4KAL f\u00fcr diese tolle Idee.&nbsp;<\/p>\n<h3>Vorbereitung<\/h3>\n<p>Im IC-7300 unter MENU \u00e2\u20ac\u201c SET \u00e2\u20ac\u201c CONNECTORS \u00e2\u20ac\u201c CI-V muss die richtige Baud Rate (115200) eingestellt werden.&nbsp;<\/p>\n<p><a href=\"https:\/\/dxham.de\/wp-content\/uploads\/2021\/01\/Clock_set_01-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2842 size-full\" src=\"https:\/\/dxham.de\/wp-content\/uploads\/2021\/01\/Clock_set_01-2.png\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" srcset=\"https:\/\/dxham.de\/wp-content\/uploads\/2021\/01\/Clock_set_01-2-300x170.png 300w, https:\/\/dxham.de\/wp-content\/uploads\/2021\/01\/Clock_set_01-2.png 480w\" alt=\"\" width=\"480\" height=\"272\" data-id=\"2842\"><\/a><a href=\"https:\/\/dxham.de\/wp-content\/uploads\/2021\/01\/Clock_set_01-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2841 size-full\" src=\"https:\/\/dxham.de\/wp-content\/uploads\/2021\/01\/Clock_set_01-1.png\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" srcset=\"https:\/\/dxham.de\/wp-content\/uploads\/2021\/01\/Clock_set_01-1.png 480w, https:\/\/dxham.de\/wp-content\/uploads\/2021\/01\/Clock_set_01-1-300x170.png 300w\" alt=\"\" width=\"480\" height=\"272\" data-id=\"2841\"><\/a> Die Befehlszeilen kopiert man in eine neue Text-Datei, die man auf dem Desktop des PC\u00e2\u20ac\u2122s mit Klick auf die rechte Maustaste einfach erstellen kann. Dazu muss man beachten, dass beim Abspeichern der Datei unten der Dateityp auf \u00e2\u20ac\u017eAlle Dateien&nbsp; (*.*)\u00e2\u20ac\u0153 steht. Die Datei wird im Ordner <em><strong>C:\\Users\\[Dein PC-Name]\\auto\\<\/strong><\/em> abgelegt.&nbsp;<\/p>\n<p><a href=\"https:\/\/dxham.de\/wp-content\/uploads\/2021\/01\/cmd_erstellen.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2845\" src=\"https:\/\/dxham.de\/wp-content\/uploads\/2021\/01\/cmd_erstellen.jpg\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" srcset=\"https:\/\/dxham.de\/wp-content\/uploads\/2021\/01\/cmd_erstellen.jpg 812w, https:\/\/dxham.de\/wp-content\/uploads\/2021\/01\/cmd_erstellen-300x132.jpg 300w, https:\/\/dxham.de\/wp-content\/uploads\/2021\/01\/cmd_erstellen-768x337.jpg 768w\" alt=\"\" width=\"760\" height=\"333\" data-id=\"2845\"><\/a><\/p>\n<p>Von der gespeicherten Befehlsdatei kann man nun eine Verkn\u00fcpfung auf den Desktop legen oder auch per Autostart ausf\u00fchren, wenn der IC-7300 beim Start des PC\u00e2\u20ac\u2122s eingeschaltet ist.&nbsp;<\/p>\n<h3>Die Kommandozeile<\/h3>\n<p>Folgender Befehl (Code) wird nun in angelegte cmd-Datei kopiert. Wichtig ist, dass der COM-Port (<span style=\"color: #ff0000;\">rot markiert<\/span>) f\u00fcr den angeschlossenen IC-7300 vorab korrigiert wird. Der richtige COM-Port des IC-7300 kann im Ger\u00e4temanager des PC&#8217;s gefunden werden.&nbsp;<\/p>\n<hr>\n<p><span style=\"color: #999999;\">REM *** Batchfile to set time and date from USB-Port<\/span><br \/>\n<span style=\"color: #999999;\">mode COM24 BAUD=115200 PARITY=n DATA=8 STOP=2 to=on xon=off odsr=off dtr=off rts=hs idsr=off &gt; NUL<\/span><br \/>\n<span style=\"color: #999999;\">@echo off<\/span><br \/>\n<span style=\"color: #999999;\">set T=%time: =0%<\/span><br \/>\n<span style=\"color: #999999;\">set D=%date: =0%<\/span><\/p>\n<p><span style=\"color: #999999;\">echo FEFE94E01A050095%T:~0,2%%T:~3,2%FD &gt; C:\\Users\\dm2rm\\auto\\example_dump_1.txt<\/span><br \/>\n<span style=\"color: #999999;\">echo FEFE94E01A050094%D:~-4%%D:~3,2%%D:~0,2%FD &gt; C:\\Users\\dm2rm\\auto\\example_dump_2.txt<\/span><br \/>\n<span style=\"color: #999999;\">certutil -decodehex example_dump_1.txt example_dump_1.bin<\/span><br \/>\n<span style=\"color: #999999;\">certutil -decodehex example_dump_2.txt example_dump_2.bin<\/span><br \/>\n<span style=\"color: #999999;\">copy example_dump_1.bin \\\\.\\com24 \/b<\/span><br \/>\n<span style=\"color: #999999;\">copy example_dump_2.bin \\\\.\\com24 \/b<\/span><br \/>\n<span style=\"color: #999999;\">del example_dump_1.*<\/span><br \/>\n<span style=\"color: #999999;\">del example_dump_2.*<\/span><\/p>\n<hr>\n<p>Nach dem Ausf\u00fchren der Datei ist nun die Zeit und das Datum wieder auf dem aktuellen Stand.<\/p>\n<p><a href=\"https:\/\/dxham.de\/wp-content\/uploads\/2021\/03\/Clock_set_02_1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2885\" src=\"https:\/\/dxham.de\/wp-content\/uploads\/2021\/03\/Clock_set_02_1.png\" alt=\"\" width=\"480\" height=\"272\" data-id=\"2885\" srcset=\"https:\/\/dxham.de\/wp-content\/uploads\/2021\/03\/Clock_set_02_1.png 480w, https:\/\/dxham.de\/wp-content\/uploads\/2021\/03\/Clock_set_02_1-300x170.png 300w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/a><\/p>\n<p>Und auch die Backup-Datei bekommt nun wieder die richtige Bezeichnung mit aktueller Zeit und Datum.<\/p>\n<p><a href=\"https:\/\/dxham.de\/wp-content\/uploads\/2021\/03\/Clock_set_02_2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2886\" src=\"https:\/\/dxham.de\/wp-content\/uploads\/2021\/03\/Clock_set_02_2.png\" alt=\"\" width=\"480\" height=\"272\" data-id=\"2886\" srcset=\"https:\/\/dxham.de\/wp-content\/uploads\/2021\/03\/Clock_set_02_2.png 480w, https:\/\/dxham.de\/wp-content\/uploads\/2021\/03\/Clock_set_02_2-300x170.png 300w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/a><\/p>\n<p style=\"text-align: center;\">Viel Spa\u00df beim Ausprobieren \ud83d\ude09<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In &#8222;IC-7300 \u00e2\u20ac\u201c Uhrzeit stellen per USB-Verbindung&#8220; hatte ich bereits vom Beitrag auf der Webseite&nbsp;amateurfunk-mint.blogspot.com&nbsp;berichtet. Da ich ab und an<\/p>\n","protected":false},"author":4,"featured_media":1375,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"colormag_page_container_layout":"default_layout","colormag_page_sidebar_layout":"default_layout","footnotes":""},"categories":[1,43,3],"tags":[175,63,174],"class_list":["post-2883","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-allgemein","category-technik","category-transeiverantenne","tag-datum","tag-ic-7300","tag-uhrzeit"],"_links":{"self":[{"href":"https:\/\/dxham.de\/index.php?rest_route=\/wp\/v2\/posts\/2883","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dxham.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dxham.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dxham.de\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/dxham.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2883"}],"version-history":[{"count":7,"href":"https:\/\/dxham.de\/index.php?rest_route=\/wp\/v2\/posts\/2883\/revisions"}],"predecessor-version":[{"id":2892,"href":"https:\/\/dxham.de\/index.php?rest_route=\/wp\/v2\/posts\/2883\/revisions\/2892"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dxham.de\/index.php?rest_route=\/wp\/v2\/media\/1375"}],"wp:attachment":[{"href":"https:\/\/dxham.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2883"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dxham.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2883"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dxham.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2883"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}