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,sx1268
for 433MHz andsx1262
for 915MHz).
- Visit the release page and download the latest firmware files:
-
Copy Files:
- Rename the
loshark-sx126x.js
toloshark.js
- Connect your LoShark dongle to your computer.
- Transfer the downloaded files to the
app
directory 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
sync
and press Enter. This ensures your files are properly saved.
- Use
-
Restart:
- Disconnect and reconnect (power cycle) your LoShark dongle or just run
reboot
in 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 2
tomount -o sync /dev/mmcblk0p2 /data || exit 2
. - Save your changes: Press
ESC
, type:wq
, and pressEnter
.
- In
- Type
sync
and 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 install
in your command line or terminal. - Once the installation finishes, execute
pnpm build
. - Find the build result in the
dist
folder.
- Run
pnpm start
for a continuous dev server that outputs the latest build to thedev
folder, 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.