Python Library to program via desktop https://github.com/fossasia/led-name-badge-ls32
Magically Create Text and Draw Cliparts on LED Name Badges using Bluetooth
The Badge Magic Android app lets you create moving text and draw clipart for LED name badges. The app provides options to portray names, cliparts, and simple animations on the badges. For the org.fossasia.badgemagic.data transfer from the smartphone to the LED badge it uses Bluetooth. The project is based on the work of Nilhcem.
- Latest Release Build in the apk branch
- Latest Development Build in the apk branch
- Bluetooth: For sending org.fossasia.badgemagic.data to the badge.
- Storage: For storing and saving badges.
Up to Android version 11
- GPS Location: This has been the standard set by Android for use with Bluetooth Low Energy (BLE) devices. For more information, please read the notes on Android website.
Please talk to us on the badge-magic Gitter channel here.
There are a number of devices with Bluetooth on the market. As far as we can tell they are mostly from the same manufacturer. When you get a org.fossasia.badgemagic.device ensure it comes with Bluetooth. There are devices that don't support Bluetooth. These are not supported in the app currently.
- Get one from the FOSSASIA Shop here
Security in Bluetooth LE devices is optional, and many cheap products you can find on the market are not secured at all. This applies to our Bluetooth LED Badge. While this could lead to some privacy issues, this can also be a source of fun, especially when you want to use an LED Badge in a different way. It also makes it easy for us to get started with the development of a Free and Open Source Android app.
As we understand how the Bluetooth LED badge works, converting a text to multiple byte arrays, we can send using the Bluetooth LE APIs. An indepth blog post about reverse-engineering the Bluetooth community is here.
The implementation in the Android app consists of manipulating bits. That may be tricky. A single bit error and nothing will work, plus it will be hard to debug. For those reasons, and since the specs are perfectly clear the reverse engineer Gautier Mechling strongly recommends to start writing unit tests before the code implementation.
We have the following branches
- development All development goes on in this branch. If you're making a contribution, you are supposed to make a pull request to development. PRs to development branch must pass a build check on CI/CD.
- apk This branch contains many apk files, that are automatically generated on the merged pull request a) debug apk b) release apk
- There are multiple files in the apk branch of the project, this branch consists of all the APK files and other files that are relevant when an APK is generated.
- Once a pull request is merged, the previous APK branch is deleted and a new APK branch is created.
- If a PR is merged in development branch then the new APKs for the development branch are generated whereas the APKs corresponding to the master branch are not regenerated and simply the previously generated files are added.
Please read FOSSASIA's Best Practices before contributing. Please help us follow the best practice to make it easy for the reviewer as well as the contributor. We want to focus on the code quality more than on managing pull request ethics. Here are some basics:
- Single commit per pull request
- For writing commit messages please read the CommitStyle.md.
- Follow uniform design practices. The design language must be consistent throughout the app.
- The pull request will not get merged until and unless the commits are squashed. In case there are multiple commits on the PR, the commit author needs to squash them and not the maintainers cherrypicking and merging squashes.
- If the PR is related to any front end change, please attach relevant screenshots in the pull request description.
- Before you join development, please set up the project on your local machine, run it and go through the application completely. Press on any button you can find and see where it leads to. Explore.
- If you would like to work on an issue, drop in a comment at the issue. If it is already assigned to someone, but there is no sign of any work being done, please free to drop in a comment and start working on it.
Opening this repository in VSCode, GitHub Codespaces or another supported editor/IDE will allow the repository to be opened in a Dev Container.
The Dev Container contains all necessary dependencies and tools required to build, run and debug flutter applications.
adb
is already installed and running on the host it may need to be stopped before continuing.
This Dev Container allows several different methods of connecting to a device via adb
:
ℹ️ Windows and MacOS need a working USB/IP setup. Read more in the official Docker Desktop documentation and in this blog post.
The Dev Container bind-mounts /dev/bus/usb/
and sets the correct access controls for a seamless integration.
Enable USB debugging on your phone and try to find it via:
adb devices
If it shows up, everything is ready and you can run flutter run
to push a development version of the app onto your device.
If adb
is already installed on the host, the tools in the Dev Container can be configured to use the host's adb
server:
- Ensure the
adb
server is listening on all interfaces- If that is not the case, kill and restart it:
adb kill-server && adb -a server
(the-a
instructs it to listen on all interfaces).
- If that is not the case, kill and restart it:
- Set or export the following environment variable before executing
adb
orflutter run
:ADB_SERVER_SOCKET=tcp:host.docker.internal:5037
- You should now be able to list the devices connected via USB to the host
Android 11 and higher support wireless debugging. Check out the documentation for more information.
For this mode it is required that both the workstation and the device are on the same network.
ℹ️ This also works when developing inside GitHub Codespaces. In that case you can bring your device and the Codespace onto the same network by installing WireGuard, Tailscale or another overlay/mesh network on both the Codespace and your device.
Enable Wireless debugging as per the documentation, then pair adb pair <IP>:<PORT>
and connect adb connect <IP>:<PORT>
and you should be able to find your device via adb devices
.
The application is licensed under the Apache License 2.0. Copyright is owned by FOSSASIA and its contributors.