{"id":21339985,"url":"https://github.com/zedstarr/sibo-sat_sync","last_synced_at":"2026-03-19T20:00:58.700Z","repository":{"id":183507915,"uuid":"670277510","full_name":"zedstarr/SIBO-Sat_Sync","owner":"zedstarr","description":"Setting the system clock in Psion SIBO computers via an attached GPS","archived":false,"fork":false,"pushed_at":"2023-08-14T08:13:58.000Z","size":45,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-03T19:39:47.047Z","etag":null,"topics":["gnss","gps","opl","psion","sync"],"latest_commit_sha":null,"homepage":"https://zedstarr.com/2023/07/21/setting-a-1990s-pda-clock-via-gps/","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zedstarr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-24T17:25:25.000Z","updated_at":"2023-10-05T09:29:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"b105f1b2-8015-4606-a675-1bdbbd93b01d","html_url":"https://github.com/zedstarr/SIBO-Sat_Sync","commit_stats":null,"previous_names":["zedstarr/sibo-sat_sync"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zedstarr/SIBO-Sat_Sync","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zedstarr%2FSIBO-Sat_Sync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zedstarr%2FSIBO-Sat_Sync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zedstarr%2FSIBO-Sat_Sync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zedstarr%2FSIBO-Sat_Sync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zedstarr","download_url":"https://codeload.github.com/zedstarr/SIBO-Sat_Sync/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zedstarr%2FSIBO-Sat_Sync/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28772912,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T08:38:24.014Z","status":"ssl_error","status_checked_at":"2026-01-26T08:38:22.080Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gnss","gps","opl","psion","sync"],"created_at":"2024-11-22T00:48:39.734Z","updated_at":"2026-01-26T09:32:09.833Z","avatar_url":"https://github.com/zedstarr.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# SIBO-Sat_Sync\nSetting the system clock in Psion SIBO computers via an attached GPS\n\n---\n![Series 3a Sync'd via GPS](https://zedstarr.files.wordpress.com/2023/07/sat_sync.png)\n\nPsion MC/Series 3/3a time setting via serially attached GPS receiver that outputs NMEA\n\nUses the CALL $058B to retrieve the \"country data\" structure - this includes UTC offset (in minutes) and \"Summer Time\" flag\n\nNOTES: **DATE IS NOT SET - ONLY TIME!**\n       **FIX STATUS IS NOT CHECKED!**\n\nAfter opening the serial port we \n- get 255 bytes of NMEA \n- LOCate GPRMC, get GPS traceable UTC time from next 7-12 bytes\n- calc time (in seconds from 1/1/1970) from that and UTC offset and the Psion's \"Summer Time\" setting\n- Add a \"delay processing time\" fudge factor of ... 1s?\n- call OS function $038B to set the time\n\nTime is expressed as:\n\n1690166270 or $64BDE3F3 (32-bit number) - i.e. can be split into $64BD \u0026 $E3F3 as below\n\n(as Hex $nnnnNNNN - split into hi \u0026 low part $nnnn \u0026 $NNNN or just by simple maths ;-) )\n\n \nTested working on the MC/Series 3/Series 3a\n \nAssumes a GPS receiver attached to the serial port, running at 9600 8N1\nAssumes the GPS has a valid fix\n \nAssumes GPRMC or GPGGA sentences which contain UTC time after \"GPRMC,\" or \"GPGGA,\"\n \n\u003e $GPRMC,170805.000,A,5337.5945,N,00300.7381,W,0.00,281.17,250523,,,D*7D\n\u003e $GPVTG,281.17,T,,M,0.00,N,0.01,K,D*34\n\u003e $PGTOP,11,3*6F\n\u003e $GPGGA,170806.000,5337.5945,N,00300.7381,W,2,9,1.13,4.2,M,49.5,M,0000,0000*40\n \n \nThe \"GenGetCountryData\" OS call may or may not be meaningless on the MC - certainly its clock has no concept of \"Summer Time\"\nlike the 3/3a does. So `stime%` is set to 1 in the MC's OPL to get UTC to BST working (in summer!). Also (obviously!) all the \ngraphics commands such as `gAT`, `gPRINT`, etc. are meaningless on the MC (I also removed them from the Series 3 code too). \n\nI also had to change the sentence to search for to GPGGA rather than GPRMC on the S3 \u0026 MC, possibly something to do with \nserial overruns or maybe something else entirely...?\n\n### **DISCLAIMER**: THIS IS BARELY WORKING CODE! There is minimal error checking, lots of superflous variables \u0026 commented-out test code\n\n### **USE AT YOUR OWN RISK!**   \nShared in the hope it might prove useful to someone. somewhere ;-)\n\n\n :: Chris Farrow @zedstarr July 2023 ::\n\n![Series 3 sync'd via GPS](https://zedstarr.files.wordpress.com/2023/07/20230724_161316.jpg?w=1024)\n---\n![Even the old MC400 gets synchronised via GPS](https://zedstarr.files.wordpress.com/2023/07/screen2023-07-24-165052.png)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzedstarr%2Fsibo-sat_sync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzedstarr%2Fsibo-sat_sync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzedstarr%2Fsibo-sat_sync/lists"}