{"id":13720381,"url":"https://github.com/ThingSet/thingset-zephyr-sdk","last_synced_at":"2025-05-07T12:31:13.260Z","repository":{"id":113436257,"uuid":"551862211","full_name":"ThingSet/thingset-zephyr-sdk","owner":"ThingSet","description":"ThingSet SDK for Zephyr RTOS","archived":false,"fork":false,"pushed_at":"2025-02-07T14:11:42.000Z","size":4269,"stargazers_count":16,"open_issues_count":3,"forks_count":11,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-07T15:19:11.638Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://thingset.io/thingset-zephyr-sdk/","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/ThingSet.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}},"created_at":"2022-10-15T08:55:50.000Z","updated_at":"2025-02-07T14:01:37.000Z","dependencies_parsed_at":"2024-01-23T18:24:46.455Z","dependency_job_id":"f491e455-1b61-4c61-be3a-83cdd1c8d5a7","html_url":"https://github.com/ThingSet/thingset-zephyr-sdk","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThingSet%2Fthingset-zephyr-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThingSet%2Fthingset-zephyr-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThingSet%2Fthingset-zephyr-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThingSet%2Fthingset-zephyr-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ThingSet","download_url":"https://codeload.github.com/ThingSet/thingset-zephyr-sdk/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252876377,"owners_count":21818171,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-08-03T01:01:03.153Z","updated_at":"2025-05-07T12:31:13.248Z","avatar_url":"https://github.com/ThingSet.png","language":"C","funding_links":[],"categories":["Libraries"],"sub_categories":["IoT \u0026 Cloud"],"readme":"# ThingSet Zephyr SDK\n\nThis repository contains a software development kit (SDK) based on Zephyr RTOS to integrate communication interfaces using the ThingSet protocol into an application with minimum effort.\n\n## Testing with native_sim board\n\n```\nwest build -b native_sim samples/counter -t run\n```\n\n## Testing with LoRaWAN\n\n```\nwest build -b olimex_lora_stm32wl_devkit samples/counter -- -DEXTRA_CONF_FILE=lorawan.conf\n```\n\n## Testing with CAN bus\n\n```\nwest build -b native_sim samples/counter -t run -- -DEXTRA_CONF_FILE=can.conf\n```\n\n## Testing WebSocket with native_sim\n\nStart net-setup from Zephyr net-tools to create `zeth` interface:\n\n```\nsudo ../tools/net-tools/net-setup.sh\n```\n\nForward packets from the the `zeth` interface to the internet via wifi/ethernet interface (replace\n`wifi0` with the actual interface name):\n\n```\nsudo sysctl net.ipv4.ip_forward=1\nsudo iptables -t nat -A POSTROUTING -o wifi0 -j MASQUERADE\nsudo iptables -A FORWARD -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT\nsudo iptables -A FORWARD -i zeth -o wifi0 -j ACCEPT\n```\n\nAfterwards run the nativ_posix board with websocket support from another shell:\n\n```\nwest build -b native_sim samples/counter -- -DEXTRA_CONF_FILE=\"native_websocket.conf storage_flash.conf\"\n./build/zephyr/zephyr.exe -flash=samples/counter/virtual-flash.bin\n```\n\nThe `virtual-flash.bin` file is used to store custom data like server hostnames and credentials.\n\nUpdate server details via ThingSet:\n\n```\npicocom /dev/pts/123            # replace 123 with printed number\nselect thingset\n=Networking {\\\"sWebsocketHost\\\":\\\"your-server.com\\\",\\\"sWebsocketPort\\\":443,\\\"sWebsocketAuthToken\\\":\\\"your-token\\\"}\n```\n\nCheck socket connections\n\n```\nss -t -a -n | grep -E 'State|192.0.2.1'\n```\n\n## License\n\nThis software is released under the [Apache-2.0 License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FThingSet%2Fthingset-zephyr-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FThingSet%2Fthingset-zephyr-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FThingSet%2Fthingset-zephyr-sdk/lists"}