{"id":1980,"date":"2025-04-14T12:16:06","date_gmt":"2025-04-14T12:16:06","guid":{"rendered":"https:\/\/webprojects.cloud\/wordpress\/splatco\/?post_type=spl_knowledgebase&#038;p=1980"},"modified":"2025-06-16T06:10:12","modified_gmt":"2025-06-16T06:10:12","slug":"sx10508-serial-logging","status":"publish","type":"spl_knowledgebase","link":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-xwire-peripherals\/sx10508-xwire-sd-logger\/sx10508-serial-logging\/","title":{"rendered":"SX10508: More on Serial Programming"},"content":{"rendered":"\n<h6 class=\"wp-block-heading\">SX10508: Serial Logging<\/h6>\n\n\n\n<h6 class=\"wp-block-heading\">COM Ports<\/h6>\n\n\n\n<p>The easiest way to log with the SX10508 is via the serial port.&nbsp; The default application treats the COM ports as follows:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>COM0 (closest the 3 way screw terminal) is used for configuring the date\/time and formatting the SD card.<\/li>\n\n\n\n<li>COM1 is used for receiving log data, unless jumper J1 is removed, in which case the RS485 port is used.&nbsp; All data sent to this port at 38400 baud will be written to an automatically opened file.<\/li>\n<\/ul>\n\n\n\n<h6 class=\"wp-block-heading\">Commands<\/h6>\n\n\n\n<p>There are some special commands that may be sent to the COM1 (or RS485) logging port.&nbsp; All commands are encapsulated in &#8220;{}&#8221;.&nbsp; Any command that isn&#8217;t recognised will simply be written to the log file.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>{datestamp [format]}<\/td><td>Writes the SX10508&#8217;s date\/time to the current file<\/td><\/tr><tr><td>{newfile [filename.ext]}<\/td><td>Closes the current file and opens a new one<\/td><\/tr><tr><td>{flushdata}&nbsp;&nbsp;&nbsp;<\/td><td>Forces buffered data to be written to the SD Card<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h6 class=\"wp-block-heading\">Datestamp<\/h6>\n\n\n\n<p>The [format] string uses the following special characters to construct the date that will be written to the SD Card.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>a<\/td><td>Day Of Week as 3 characters, eg &#8220;Mon&#8221;<\/td><\/tr><tr><td>e<\/td><td>Day of month, eg &#8220;7&#8221; for 7th February<\/td><\/tr><tr><td>m<\/td><td>Month with leading 0, eg &#8220;02&#8221; for February, &#8220;12&#8221; for December.<\/td><\/tr><tr><td>n<\/td><td>Month without leading 0<\/td><\/tr><tr><td>Y<\/td><td>Year, eg &#8220;2016&#8221;<\/td><\/tr><tr><td>H<\/td><td>24 Hour with leading 0, eg &#8220;01&#8221; for 1AM, &#8220;19&#8221; for 7pm<\/td><\/tr><tr><td>l<\/td><td>12 Hour with leading 0, eg &#8220;10&#8221; for 10AM, &#8220;07&#8221; for 7pm<\/td><\/tr><tr><td>M<\/td><td>Minutes with leading 0<\/td><\/tr><tr><td>S<\/td><td>Seconds with leading 0<\/td><\/tr><tr><td>P<\/td><td>am\/pm as lower case&nbsp;<\/td><\/tr><tr><td>p<\/td><td>AM\/PM as upper case<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>For example:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><br>  iiPrintText COMTTL,\"{datestamp Y\/m\/e H:M:S}\"<\/pre>\n\n\n\n<p>Will write something like&nbsp;<strong>2016\/09\/26 11:31:05<\/strong>.<\/p>\n\n\n\n<h6 class=\"wp-block-heading\">New File<\/h6>\n\n\n\n<p>Files on the SD card are named something like &#8220;00000341.csv&#8221;.&nbsp; When the card is inserted, the SX10508 will automatically sacn the filesystem and create a file whose number is larger than any other on the card.<\/p>\n\n\n\n<h6 class=\"wp-block-heading\">{NewFile filename.ext}<\/h6>\n\n\n\n<p>This command is new from 17 March 2023 (firmware version 4.7, SPLatware version 2.1.5).&nbsp; It instructs the logger to close the existing file and create a new file with the configured name in 8.3 format (fewer characters is also allowable).&nbsp; If the file name matches one already on the SD card, it will overwrite the existing file.<\/p>\n\n\n\n<p>See also&nbsp;<a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-xwire-peripherals\/sx10508-xwire-sd-logger\/sx10508-more-on-serial-programming\/\">More On Serial Programming<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>SX10508: Serial Logging COM Ports The easiest way to log with the SX10508 is via the serial port.&nbsp; The default application treats the COM ports&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":1962,"menu_order":7,"template":"","class_list":["post-1980","spl_knowledgebase","type-spl_knowledgebase","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>SX10508: More on Serial Programming - SPLat Controls<\/title>\n<meta name=\"robots\" content=\"noindex, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"SX10508: More on Serial Programming - SPLat Controls\" \/>\n<meta property=\"og:description\" content=\"SX10508: Serial Logging COM Ports The easiest way to log with the SX10508 is via the serial port.&nbsp; The default application treats the COM ports...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-xwire-peripherals\/sx10508-xwire-sd-logger\/sx10508-serial-logging\/\" \/>\n<meta property=\"og:site_name\" content=\"SPLat Controls\" \/>\n<meta property=\"article:modified_time\" content=\"2025-06-16T06:10:12+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-xwire-peripherals\/sx10508-xwire-sd-logger\/sx10508-serial-logging\/\",\"url\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-xwire-peripherals\/sx10508-xwire-sd-logger\/sx10508-serial-logging\/\",\"name\":\"SX10508: More on Serial Programming - SPLat Controls\",\"isPartOf\":{\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/#website\"},\"datePublished\":\"2025-04-14T12:16:06+00:00\",\"dateModified\":\"2025-06-16T06:10:12+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-xwire-peripherals\/sx10508-xwire-sd-logger\/sx10508-serial-logging\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-xwire-peripherals\/sx10508-xwire-sd-logger\/sx10508-serial-logging\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-xwire-peripherals\/sx10508-xwire-sd-logger\/sx10508-serial-logging\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Product documentation\",\"item\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Product documentation: Xwire peripherals\",\"item\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-xwire-peripherals\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"SX10508: Xwire SD Logger\",\"item\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-xwire-peripherals\/sx10508-xwire-sd-logger\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"SX10508: More on Serial Programming\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/#website\",\"url\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/\",\"name\":\"SPLat Controls\",\"description\":\"OEM Embedded Machine Controllers\",\"publisher\":{\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/#organization\",\"name\":\"SPLat Controls\",\"url\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-content\/uploads\/2024\/10\/logo.svg\",\"contentUrl\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-content\/uploads\/2024\/10\/logo.svg\",\"caption\":\"SPLat Controls\"},\"image\":{\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"SX10508: More on Serial Programming - SPLat Controls","robots":{"index":"noindex","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"og_locale":"en_US","og_type":"article","og_title":"SX10508: More on Serial Programming - SPLat Controls","og_description":"SX10508: Serial Logging COM Ports The easiest way to log with the SX10508 is via the serial port.&nbsp; The default application treats the COM ports...","og_url":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-xwire-peripherals\/sx10508-xwire-sd-logger\/sx10508-serial-logging\/","og_site_name":"SPLat Controls","article_modified_time":"2025-06-16T06:10:12+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-xwire-peripherals\/sx10508-xwire-sd-logger\/sx10508-serial-logging\/","url":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-xwire-peripherals\/sx10508-xwire-sd-logger\/sx10508-serial-logging\/","name":"SX10508: More on Serial Programming - SPLat Controls","isPartOf":{"@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/#website"},"datePublished":"2025-04-14T12:16:06+00:00","dateModified":"2025-06-16T06:10:12+00:00","breadcrumb":{"@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-xwire-peripherals\/sx10508-xwire-sd-logger\/sx10508-serial-logging\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-xwire-peripherals\/sx10508-xwire-sd-logger\/sx10508-serial-logging\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-xwire-peripherals\/sx10508-xwire-sd-logger\/sx10508-serial-logging\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webprojects.cloud\/wordpress\/splatco\/"},{"@type":"ListItem","position":2,"name":"Product documentation","item":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/"},{"@type":"ListItem","position":3,"name":"Product documentation: Xwire peripherals","item":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-xwire-peripherals\/"},{"@type":"ListItem","position":4,"name":"SX10508: Xwire SD Logger","item":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-xwire-peripherals\/sx10508-xwire-sd-logger\/"},{"@type":"ListItem","position":5,"name":"SX10508: More on Serial Programming"}]},{"@type":"WebSite","@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/#website","url":"https:\/\/webprojects.cloud\/wordpress\/splatco\/","name":"SPLat Controls","description":"OEM Embedded Machine Controllers","publisher":{"@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webprojects.cloud\/wordpress\/splatco\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/#organization","name":"SPLat Controls","url":"https:\/\/webprojects.cloud\/wordpress\/splatco\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/#\/schema\/logo\/image\/","url":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-content\/uploads\/2024\/10\/logo.svg","contentUrl":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-content\/uploads\/2024\/10\/logo.svg","caption":"SPLat Controls"},"image":{"@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-json\/wp\/v2\/spl_knowledgebase\/1980","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-json\/wp\/v2\/spl_knowledgebase"}],"about":[{"href":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-json\/wp\/v2\/types\/spl_knowledgebase"}],"author":[{"embeddable":true,"href":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-json\/wp\/v2\/users\/1"}],"up":[{"embeddable":true,"href":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-json\/wp\/v2\/spl_knowledgebase\/1962"}],"wp:attachment":[{"href":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-json\/wp\/v2\/media?parent=1980"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}