{"id":13480891,"url":"https://github.com/androidthings/sample-uartloopback","last_synced_at":"2025-03-27T11:31:05.897Z","repository":{"id":58688584,"uuid":"76376264","full_name":"androidthings/sample-uartloopback","owner":"androidthings","description":"Echo received characters over a UART with Android Things","archived":false,"fork":false,"pushed_at":"2021-05-26T17:55:40.000Z","size":1664,"stargazers_count":79,"open_issues_count":5,"forks_count":39,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-10-30T14:42:44.976Z","etag":null,"topics":["android-things"],"latest_commit_sha":null,"homepage":"","language":"Java","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/androidthings.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-12-13T16:14:41.000Z","updated_at":"2024-10-28T17:15:21.000Z","dependencies_parsed_at":"2022-09-06T07:31:19.617Z","dependency_job_id":null,"html_url":"https://github.com/androidthings/sample-uartloopback","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/androidthings%2Fsample-uartloopback","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/androidthings%2Fsample-uartloopback/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/androidthings%2Fsample-uartloopback/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/androidthings%2Fsample-uartloopback/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/androidthings","download_url":"https://codeload.github.com/androidthings/sample-uartloopback/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245836044,"owners_count":20680310,"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":["android-things"],"created_at":"2024-07-31T17:00:46.312Z","updated_at":"2025-03-27T11:31:05.569Z","avatar_url":"https://github.com/androidthings.png","language":"Java","funding_links":[],"categories":["Useful links"],"sub_categories":["Sample apps and libraries"],"readme":"# UART Loopback\n\nThis sample demonstrates basic data read and write operations over a UART.\nThe application creates a loopback interface that immediately echoes\nany data read from the receive (RX) buffer to the transmit (TX) buffer.\n\n\u003e **Note:** The Android Things Console will be turned down for non-commercial\n\u003e use on January 5, 2022. For more details, see the\n\u003e [FAQ page](https://developer.android.com/things/faq).\n\n## Screenshots\n\n![UART Loopback sample demo][demo-gif]\n\n[(Watch the demo on YouTube)][demo-yt]\n\n## Pre-requisites\n\n- Android Things compatible board with an available UART port\n- Android Studio 2.2+\n- [FTDI TTL-232R](http://www.ftdichip.com/Products/Cables/USBTTLSerial.htm)\nor compatible USB-TTL converter\n\n## Schematics\n\n![Schematics for Raspberry Pi 3](rpi3_schematics.png)\n\nNOTE: Raspberry Pi 3 shares the UART pins between multiple ports, including the serial debugging\nconsole. Refer to the [mode matrix][pi3-modes] for more details.\n\nCheck in the USB TTL cable's documentation for the TX and RX wire colors:\n- connect the cable TX wire to the board RX pin\n- connect the cable RX wire to the board TX pin\n\n## Build and install\n\n1. On Android Studio, click on the \"Run\" button.\n\nIf you prefer to run on the command line, type\n\n```bash\n./gradlew installDebug\nadb shell am start com.example.androidthings.loopback/.LoopbackActivity\n```\n\n2. Plug the USB-TTL converter into a host PC, start your favorite terminal\nprogram (minicom, screen, RealTerm, etc.), and connect to the USB-TTL port\nat 115200 baud.\n\n3. Type characters into the terminal and observe them echo back to you from the device.\n\n## License\n\nCopyright 2016 The Android Open Source Project, Inc.\n\nLicensed to the Apache Software Foundation (ASF) under one or more contributor\nlicense agreements.  See the NOTICE file distributed with this work for\nadditional information regarding copyright ownership.  The ASF licenses this\nfile to you under the Apache License, Version 2.0 (the \"License\"); you may not\nuse this file except in compliance with the License.  You may obtain a copy of\nthe License at\n\n  http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\nWARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the\nLicense for the specific language governing permissions and limitations under\nthe License.\n\n[pi3-modes]: https://developer.android.com/things/hardware/raspberrypi-mode-matrix.html\n[demo-yt]: https://www.youtube.com/watch?v=OBprmZ00T3E\u0026index=12\u0026list=PLWz5rJ2EKKc-GjpNkFe9q3DhE2voJscDT\n[demo-gif]: demo1.gif\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandroidthings%2Fsample-uartloopback","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandroidthings%2Fsample-uartloopback","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandroidthings%2Fsample-uartloopback/lists"}