{"id":2539,"date":"2012-05-05T19:52:32","date_gmt":"2012-05-06T00:52:32","guid":{"rendered":"http:\/\/w0ep.us\/OM\/?p=2539"},"modified":"2012-05-05T19:52:32","modified_gmt":"2012-05-06T00:52:32","slug":"serial-port-work-linux","status":"publish","type":"post","link":"http:\/\/w0ep.us\/OM\/?p=2539","title":{"rendered":"Serial port work &#8211; linux"},"content":{"rendered":"<p>[Today&#8217;s run: 6.8 miles]<\/p>\n<p>I recently picked up an old IBM notebook computer for use with my radio stuff.\u00a0 I was able to load a version of Linux on it (the free unix-like operating system) and it seems to be working pretty well.<\/p>\n<p>Today I worked on getting the serial port set up\u00a0 to talk to my GPSDO.\u00a0 The GPSDO writes out a message every 16 seconds.\u00a0 I&#8217;d like to gather those into log files and then do some statistics work on them.<\/p>\n<p>It has been quite a while since I have done much with serial ports from a linux box in a scripting environment (even longer for C programming).<\/p>\n<p>I got the serial port figured out using\u00a0 minicom, a terminal\/modem program.\u00a0 While that was working I ran &#8216;stty -g\u00a0 &lt; \/dev\/ttySx &gt; saved.stty&#8217; on another window (for the right &#8216;x&#8217; to match my serial port). That saves the serial port settings in a file.<\/p>\n<p>Then I got out of minicom.\u00a0 I ran &#8216;stty `cat saved.stty` &lt; \/dev\/ttySx&#8217;\u00a0 which puts those settings back in place.\u00a0 Then I could run &#8216;cat \/dev\/ttySx&#8217; and see the logging lines showing up on the screen.\u00a0 From there it was pretty easy to create a little script to write the logging to a file.\u00a0 I took the opportunity to add timestamps in UTC to every log line.<\/p>\n<p>I want to get the TRF logging program installed on this laptop, then I can use it for contest logging.\u00a0 I don&#8217;t think it has the horsepower to use for digital modes, but time will tell.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[Today&#8217;s run: 6.8 miles] I recently picked up an old IBM notebook computer for use with my radio stuff.\u00a0 I was able to load a version of Linux on it (the free unix-like operating system) and it seems to be working pretty well. Today I worked on getting the serial port set up\u00a0 to talk [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-2539","post","type-post","status-publish","format-standard","hentry","category-ham-radio"],"_links":{"self":[{"href":"http:\/\/w0ep.us\/OM\/index.php?rest_route=\/wp\/v2\/posts\/2539","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/w0ep.us\/OM\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/w0ep.us\/OM\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/w0ep.us\/OM\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/w0ep.us\/OM\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2539"}],"version-history":[{"count":1,"href":"http:\/\/w0ep.us\/OM\/index.php?rest_route=\/wp\/v2\/posts\/2539\/revisions"}],"predecessor-version":[{"id":2540,"href":"http:\/\/w0ep.us\/OM\/index.php?rest_route=\/wp\/v2\/posts\/2539\/revisions\/2540"}],"wp:attachment":[{"href":"http:\/\/w0ep.us\/OM\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2539"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/w0ep.us\/OM\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2539"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/w0ep.us\/OM\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2539"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}