{"id":20975247,"url":"https://github.com/functionland/microchipsmarthub","last_synced_at":"2026-04-20T16:32:06.358Z","repository":{"id":78932641,"uuid":"529580518","full_name":"functionland/MicrochipSmartHub","owner":"functionland","description":null,"archived":false,"fork":false,"pushed_at":"2022-11-21T13:59:30.000Z","size":205,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-12-31T03:28:17.839Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","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/functionland.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":"2022-08-27T12:34:53.000Z","updated_at":"2022-09-15T19:13:50.000Z","dependencies_parsed_at":"2023-06-30T00:45:40.393Z","dependency_job_id":null,"html_url":"https://github.com/functionland/MicrochipSmartHub","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/functionland/MicrochipSmartHub","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/functionland%2FMicrochipSmartHub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/functionland%2FMicrochipSmartHub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/functionland%2FMicrochipSmartHub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/functionland%2FMicrochipSmartHub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/functionland","download_url":"https://codeload.github.com/functionland/MicrochipSmartHub/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/functionland%2FMicrochipSmartHub/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32055297,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T11:35:06.609Z","status":"ssl_error","status_checked_at":"2026-04-20T11:34:48.899Z","response_time":94,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2024-11-19T04:41:29.078Z","updated_at":"2026-04-20T16:32:06.334Z","avatar_url":"https://github.com/functionland.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MicrochipSmartHub\n\n\n## What is smart hub?\n\nSmartHub Is a usb hub that integrates system-level functions typically associated with a seprate MCU or Processor.\n\n## Building\n\n### Building vcpkg\n\n```bash\ncd ~/\ngit clone https://github.com/microsoft/vcpkg\ncd vcpkg \u0026\u0026 ./ bootstrap-vcpkg.sh\n```\n\n### Building for rpi zero 2\n\n```bash\n# install yocto bsp toolchians\n\n# enable cross compiling \nsource /opt/poky/4.0.4/environment-setup-cortexa53-poky-linux\n\n# build vcpkg libraries\ncd \u003cvcpkg path\u003e\n./vcpkg install fmt:rpi-linux\n./vcpkg install spdlog:rpi-linux\n./vcpkg install cpp-httplib:rpi-linux\n./vcpkg install gtest:rpi-linux\n./vcpkg install nlohmann-json:rpi-linux\n\n# build project\nVCPKG_PATH=~/vcpkg/scripts/buildsystems/vcpkg.cmake\nAPP_PATH=~/MicrochipSmartHub\ncmake -GNinja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_TOOLCHAIN_FILE=$VCPKG_PATH -DVCPKG_TARGET_TRIPLET=rpi-linux $APP_PATH\nninja\n\n# move SmartHub/MicrochipSmartHub executable to board and run it\n\n```\n\n\n### Building for x86\n\n```bash\n\n# getting required packages on board side\nsudo apt install libusb-1.0-0-dev i2c-tools libssl-dev libi2c-dev ninja-build\n\n# install required packages for build project\ncd \u003cvcpkg path\u003e\n./vcpkg install fmt\n./vcpkg install spdlog\n./vcpkg install cpp-httplib\n./vcpkg install gtest\n./vcpkg install nlohmann-json\n\n# build project\ncmake -GNinja -DCMAKE_BUILD_TYPE=Debug  -DCMAKE_C_FLAGS_DEBUG=\"-g -O0\" -DCMAKE_CXX_FLAGS_DEBUG=\"-g -O0\" -DCMAKE_TOOLCHAIN_FILE=~/vcpkg/scripts/buildsystems/vcpkg.cmake  ../\nninja\n./SmartHub/MicrochipSmartHub\n\n# For Testing i2c on pc with fake i2c\nsudo modprobe i2c-dev\nsudo modprobe i2c-stub chip_addr=0x2D\ni2cdetect -l\nsudo chmod 777 /dev/i2c-x //x is created i2c on device\n\n#generating digital signiture for https\nopenssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -keyout key.pem -out cert.pem\n\n#run simple web server to test web hooks\npython3 -m http.server\npython -m http.server 8000 --bind 127.0.0.1\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffunctionland%2Fmicrochipsmarthub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffunctionland%2Fmicrochipsmarthub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffunctionland%2Fmicrochipsmarthub/lists"}