{"id":22018541,"url":"https://github.com/flavienbwk/12-bytes-compression","last_synced_at":"2026-01-27T15:01:44.238Z","repository":{"id":124243246,"uuid":"192114615","full_name":"flavienbwk/12-bytes-compression","owner":"flavienbwk","description":"Algorithm for compressing digital values for SigFox frames of 12 bytes.","archived":false,"fork":false,"pushed_at":"2024-10-07T22:47:59.000Z","size":24,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-11T05:32:01.780Z","etag":null,"topics":["arduino","arm","compression-algorithm","sigfox"],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flavienbwk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-06-15T19:05:25.000Z","updated_at":"2024-10-07T22:48:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"22776cdd-6c23-40b3-9ccc-e03c3b459b29","html_url":"https://github.com/flavienbwk/12-bytes-compression","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/flavienbwk/12-bytes-compression","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flavienbwk%2F12-bytes-compression","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flavienbwk%2F12-bytes-compression/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flavienbwk%2F12-bytes-compression/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flavienbwk%2F12-bytes-compression/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flavienbwk","download_url":"https://codeload.github.com/flavienbwk/12-bytes-compression/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flavienbwk%2F12-bytes-compression/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28815385,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T12:25:15.069Z","status":"ssl_error","status_checked_at":"2026-01-27T12:25:05.297Z","response_time":168,"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":["arduino","arm","compression-algorithm","sigfox"],"created_at":"2024-11-30T05:12:31.103Z","updated_at":"2026-01-27T15:01:44.232Z","avatar_url":"https://github.com/flavienbwk.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 12-bytes-compression\nAlgorithm for compressing digital values for SigFox frames of 12 bytes.  \nAllows as well to sacrifice unit value for it to be coded on 2/4/8 values instead of 10. \n\nUse [twelve_bytes_compression.cpp](./twelve_bytes_compression.cpp) on the embedded software side of your SigFox project.  \nThen, use one of the librairies in `/decompress` to decompress the frame on the server side.\n\n## Run example\n\nJust run the following command :\n\n```\ng++ main.cpp twelve_bytes_compression.cpp \u0026\u0026 ./a.out\n```\n\n`main.cpp's a.out` example output :\n\n```\nChecking arithmetic validity...\nValue 0 occupies 12 bits.\nValue 1 occupies 10 bits.\nValue 2 occupies 10 bits.\nValue 3 occupies 20 bits.\nValue 4 occupies 19 bits.\nValue 5 occupies 1 bits.\nValue 6 occupies 1 bits.\nValue 7 occupies 7 bits.\nValue 8 occupies 10 bits.\nValue 9 occupies 2 bits.\nValue 10 occupies 2 bits.\n\nReached 94 bits out of 96 maximum, OK.\nThis payload will use 12 bytes.\n\nComputing frame...\nAggregating bytes...\nOK, you just have to individually send these data :\n[byte 1] 103    (01100111)\n[byte 2] 137    (10001001)\n[byte 3] 196    (11000100)\n[byte 4] 235    (11101011)\n[byte 5] 94     (01011110)\n[byte 6] 50     (00110010)\n[byte 7] 42     (00101010)\n[byte 8] 116    (01110100)\n[byte 9] 5      (00000101)\n[byte 10] 216   (11011000)\n[byte 11] 150   (10010110)\n[byte 12] 84    (010101)\n\n[Binary payload] [94/96] 0110011110001001110001001110101101011110001100100010101001110100000001011101100010010110010101\n```\n\nFind an example to uncompress the payload in [decompress/decompress.py](./decompress/decompress.py)\n\n## Compatibility\n\nThis library was created to be compatible with most of the embedded microprocessors.\n\nCompatibilities :\n- :heavy_check_mark: Cortex M0+ (32 bits)\n- :white_circle: atmega168\n- :white_circle: atmega328\n- :white_circle: atmega644\n- :white_circle: atmega1280\n- :white_circle: atmega1284\n- :white_circle: atmega2560\n\n:heavy_check_mark: = verified  \n:white_circle: = should operate  \n:x: = not compatible\n\n\u003e Please address an issue which title starts with `[Compatibility]` to send me your compatibility results. Your name will be listed below to thank you !\n\n## Special thanks\n\nSpecial thanks to [Eliot Courtel ()](https://github.com/) for his work on the theorical algorithm.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflavienbwk%2F12-bytes-compression","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflavienbwk%2F12-bytes-compression","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflavienbwk%2F12-bytes-compression/lists"}