This firmware is designed for the LoShark LoRa USB dongle to work with our official dashboard, and can be used as an entry point for developing your own applications on or interfacing the LoShark.
The LoShark LoRa USB dongle is a device that enables wireless communication over long distances using the LoRa protocol. It's perfect for IoT projects and remote communication needs.
-
Download Firmware:
- Visit the release page and download the latest firmware files:
app.sh,resonance_loshark, andloshark-sx126x.js(choose according to your model,sx1268for 433MHz andsx1262for 915MHz).
- Visit the release page and download the latest firmware files:
-
Copy Files:
- Rename the
loshark-sx126x.jstoloshark.js - Connect your LoShark dongle to your computer.
- Transfer the downloaded files to the
appdirectory on the MTP server of your LoShark dongle. MTP (Media Transfer Protocol) is a way to manage files on your dongle.
- Rename the
-
Login to LoShark Shell: If you confirm that your dongle has sync enabled, then just skip this step. If not, this step is essential.
- Use
PuTTY(Windows/Linux) orTabby(download here for macOS) to access the LoShark's shell. The shell is like a command center for your dongle. - Default login:
Username: root Password: loshark - In the shell, type
syncand press Enter. This ensures your files are properly saved.
- Use
-
Restart:
- Disconnect and reconnect (power cycle) your LoShark dongle or just run
rebootin the shell.
- Disconnect and reconnect (power cycle) your LoShark dongle or just run
-
Access the Dashboard:
- Open your web browser and go to LoShark Dashboard.
The first batch LoShark dongles might not sync file changes automatically. To enable this:
- Log in to the LoShark shell (as described above).
- Execute the following commands in order:
mount / -wo,remount vi /sbin/init-storage.sh- In
vi, navigate to the corresponding line, presso, then modify the line frommount /dev/mmcblk0p2 /data || exit 2tomount -o sync /dev/mmcblk0p2 /data || exit 2. - Save your changes: Press
ESC, type:wq, and pressEnter.
- In
- Type
syncand press Enter. - Power cycle your LoShark.
If you would like to change or develop the firmware of your own, you can build it yourself:
- Clone this repository to your computer.
- In the cloned directory, run
pnpm installin your command line or terminal. - Once the installation finishes, execute
pnpm build. - Find the build result in the
distfolder.
- Run
pnpm startfor a continuous dev server that outputs the latest build to thedevfolder, reflecting file changes in real-time.
Resonance, the JavaScript runtime, is currently offered as a pre-built binary. We plan to open-source it in a dedicated repo soon.
If you encounter any issues or have questions, don't hesitate to open an issue.
This project is licensed under the MIT License.