{"id":23832436,"url":"https://github.com/elenaf9/p2p-display","last_synced_at":"2026-04-18T12:03:59.909Z","repository":{"id":40459430,"uuid":"487784107","full_name":"elenaf9/p2p-display","owner":"elenaf9","description":"Writing to remote E-ink displays in a p2p-network","archived":false,"fork":false,"pushed_at":"2022-09-28T12:57:59.000Z","size":977,"stargazers_count":3,"open_issues_count":5,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-24T12:51:28.498Z","etag":null,"topics":["distributed-systems","e-ink","p2p-network","raspberry-pi"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/elenaf9.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}},"created_at":"2022-05-02T09:19:40.000Z","updated_at":"2024-04-01T05:09:55.000Z","dependencies_parsed_at":"2022-09-19T18:00:55.321Z","dependency_job_id":null,"html_url":"https://github.com/elenaf9/p2p-display","commit_stats":null,"previous_names":["elenaf9/p2p-display"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/elenaf9/p2p-display","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elenaf9%2Fp2p-display","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elenaf9%2Fp2p-display/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elenaf9%2Fp2p-display/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elenaf9%2Fp2p-display/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elenaf9","download_url":"https://codeload.github.com/elenaf9/p2p-display/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elenaf9%2Fp2p-display/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31967994,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["distributed-systems","e-ink","p2p-network","raspberry-pi"],"created_at":"2025-01-02T14:35:18.884Z","updated_at":"2026-04-18T12:03:59.884Z","avatar_url":"https://github.com/elenaf9.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Digital Fax\n\n_WIP project for the internet-communication course summer term 2022 at FU Berlin._\n\n**Idea**: Control the content displayed on a E-Ink Display from remote via P2P Communication\n- E-ink display connected to an IoT device that can write to the display\n- Setup P2P node on the IoT device, nodes are connected in a mesh-network\n- Displayed content can be changed by other (authorized) peers by sending messages to the node \n- E-ink display has very low energy consumption - can be unplugged any time and will continue displaying content\n\n## Components\n\n### Display\n\nDisplays a message on an E-Ink display:\n- Interface with the display via SPI\n- Uses bcm2835 driver files to access GPIO \n\n### Network\n\nResponsible for sending and receiving data within the network:\n- P2P network written in Rust using libp2p\n- Peer discovery via MDNS, Pub/Sub communication via GossipSub\n- Nodes connected in a mesh-network using B.A.T.M.A.N\n\n### Management\n\nInterface between network, display and user:\n- Embeds network component as library and display component via FFI.\n- Implements protocol for messages, encoded with protobuf\n- Authenticates messages\n\n## Hardware Setup\n\n- Raspberry Pi 3/4\n- Waveshare e-Paper Module\n\n### Cross Compilation\n\nIn order to cross-compile for ARM, you need to install a GCC compiler for ARM. On macOS this can be done using this GitHub repo: [macos-cross-toolchains](https://github.com/messense/homebrew-macos-cross-toolchains).\nThe compiler will probably have a name similar to `arm-unknown-linux-gnueabihf-gcc` and the archiver `arm-unknown-linux-gnueabihf-ar` but check this for your specific installation.\n\nCompile display component static library for ARM:\n\n```sh\ncd display\nmake lib CC=\u003cCOMPILER_NAME\u003e AR=\u003cARCHIVER_NAME\u003e\n```\n\nCompile management component for ARM:\n\n```sh\ncargo build --release --target arm-unknown-linux-gnueabihf\ncargo build --release --target arm-unknown-linux-gnueabihf --features display\n```\n\n### Raspberry Pi\n\nTo set up a new Raspberry Pi, install your SSH key on it and then:\n\n```sh\nexport CC=\u003cCOMPILER_NAME\u003e \u0026\u0026 export AR=\u003cARCHIVER_NAME\u003e\n./scripts/build.sh # if you want to compile with display support, add --features display\n./scripts/setup.sh \u003cHOSTNAME_PI\u003e\n```\n\n## Scripts\n\nThere are some helper scripts to make stuff easier:\n\n**Build for ARM with display support**: `./scripts/build.sh --features display`. (If you want to use a custom compiler and archiver use `export CC=\u003cCOMPILER_NAME\u003e \u0026\u0026 export AR=\u003cARCHIVER_NAME\u003e` before running the build script.)\n\n**Setup a new Raspberry Pi**: `./scripts/setup.sh \u003cHOSTNAME_PI\u003e`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felenaf9%2Fp2p-display","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felenaf9%2Fp2p-display","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felenaf9%2Fp2p-display/lists"}