This guide turns a Samsung Galaxy Note 4 into a low-power marine safety server that broadcasts AIS-like position reports, weather data, and emergency messages over Wi-Fi to nearby devices. You’ll repurpose the phone’s built-in GPS, battery, and radios to create a standalone beacon that runs for days on a power bank. No soldering or root access is required, but you’ll need a few free apps and a basic understanding of Android settings.
What You’ll Need
- Samsung Galaxy Note 4 with a working GPS and a charged battery (any Android 6.0–7.0 version works)
- A micro-USB OTG cable and a USB Wi-Fi adapter (optional, for better range)
- A 10,000 mAh or larger power bank (or a 12V to 5V marine power adapter)
- Free apps: Marine Traffic AIS Transmitter (or similar), Termux, Tasker (trial version is fine), and IP Webcam (for a live camera feed)
- A waterproof case or bag (IP67 rated or better)
- A microSD card (at least 16GB) for logging data
Step-by-Step
- Prepare the Note 4: Fully charge the battery, insert the microSD card, and enable Developer Options (Settings → About phone → tap Build number 7 times). In Developer Options, enable “Stay awake while charging” and set the screen timeout to 10 minutes. This prevents the screen from sleeping during setup.
- Install the required apps: From the Play Store, install an AIS transmitter app (e.g., “Marine AIS Transmitter”), Termux, Tasker, and IP Webcam. For Termux, open it and run
pkg update && pkg install pythonto get a Python environment for custom scripts. - Configure the AIS transmitter: Open the AIS app, enter your vessel name, MMSI (Maritime Mobile Service Identity) number, and vessel type. Set the broadcast interval to 5–10 seconds for safety. The app uses the phone’s GPS to send position reports over Wi-Fi (not AIS VHF radio, but it works for nearby monitoring). Test it by starting the broadcast and checking with a second device on the same network.
- Set up the GPS for continuous operation: In Settings → Location, set the mode to “High accuracy” (GPS + Wi-Fi + mobile networks). Download a GPS status app (like GPS Status & Toolbox) to clear and update the A-GPS data. This speeds up satellite lock. Keep the phone in a spot with a clear view of the sky during the voyage.
- Create a Wi-Fi hotspot: Go to Settings → Tethering and Mobile Hotspot, and enable the hotspot. Set a strong password (WPA2). The Note 4 can broadcast on 2.4 GHz; if you need 5 GHz, use the OTG USB Wi-Fi adapter (some adapters work with Android 6.0+). Name the network something like “SafetyBeacon-1234” so nearby boats can identify it.
- Automate power management with Tasker: Open Tasker and create a new profile: Trigger = Power → External Power (any). Action = Display → Stay Awake (set to 30 minutes). Then create a second profile: Trigger = Time (e.g., 23:00 to 06:00) → Action = Display → Brightness (set to 0) and Sound → Silent. This turns the screen off at night but keeps the server running.
- Set up the IP Webcam server: Open IP Webcam, set the resolution to 640×480 (to save power), and start the server. Note the IP address (e.g., 192.168.43.1:8080). This gives a live video feed that can be accessed from any connected device. You can also enable motion detection and have it send alerts via the AIS app.
- Write a simple Python script (optional): In Termux, create a script that logs GPS coordinates to the microSD card every minute. Use the
termux-locationAPI (install withpkg install termux-api). The script can also broadcast a text message with the position over the hotspot using a simple HTTP server. This is a backup to the AIS app. - Connect the power source: Plug the Note 4 into the power bank or marine adapter. The battery will charge while the phone runs. The Note 4’s battery is removable, so you can also use a battery case that holds an extra cell. For long trips, set the power bank to trickle charge (500mA) to avoid overheating.
- Waterproof and mount: Place the phone in a waterproof case. If you’re using an external antenna for the GPS or Wi-Fi, route the cable through a sealed gland. Mount the case in a location that is above deck but protected from direct spray, e.g., inside a radar arch or a small vented box.
- Test the full system: Before departure, turn on the hotspot, start the AIS app, and check that another device can connect and see the position feed. Test the IP Webcam stream. Verify that the phone stays cool (below 40°C) and that the battery percentage does not drop while charging.
- Deploy and monitor: On the water, check the system every few hours. Use the Tasker profile to send a status SMS to a pre-set number if the battery drops below 20% (requires a SIM card with credit). The Note 4’s low-power mode (Settings → Battery → Power saving mode) can also be enabled to extend runtime.
Common Mistakes
- Using the wrong MMSI: Entering a fake or invalid MMSI can cause issues with real AIS receivers. Use your actual MMSI if you have one, or leave it blank if the app allows.
- Screen always on: Forgetting to set the screen timeout to a short value will drain the battery quickly. Use Tasker to dim the screen at night.
- Overheating: The Note 4 can get hot when charging and broadcasting. Avoid direct sunlight and ensure ventilation. If it gets too hot, the phone will throttle and may shut down.
- Weak GPS signal: Placing the phone in a metal box or below deck will block GPS. Keep it high and exposed to the sky.
- Wi-Fi range: The built-in Wi-Fi has a range of about 30 meters. For longer range, use a USB Wi-Fi adapter with a high-gain antenna.
Tips
- Use a 12V-to-5V USB adapter that is rated for marine use (waterproof, with fuses).
- Set the AIS app to broadcast at 10-second intervals to save battery, unless you’re in a busy shipping lane.
- Store the microSD card with a backup of the GPS log every day. You can use Termux to sync it to a cloud service via FTP.
- If you have a second phone, use it as a remote monitor to check the server status.
- Consider using a battery case that also provides a solar panel, but only if you can guarantee stable charging.
Troubleshooting
- No GPS lock: Go outside with a clear view of the sky and use a GPS status app to reset the A-GPS data. If still failing, check if the phone’s GPS is working by running a map app.
- Hotspot not showing up: Restart the phone and re-enable the hotspot. Ensure that the mobile data is off (the hotspot can work without it). Check that the Wi-Fi adapter (if used) is properly recognized in Settings → Wi-Fi.
- AIS app crashes: Clear the app cache and data, then reconfigure. If it still crashes, try a different AIS app (there are several on the Play Store).
- Phone overheating: Remove the case, turn off the screen, and reduce the broadcast interval. If it continues, charge the phone in shorter bursts (e.g., 30 minutes on, 30 minutes off).
- Battery drains faster than it charges: This happens if the phone is using more power than the charger provides. Use a 2A charger and a high-quality cable. Disable unnecessary background apps (Settings → Battery → Battery usage).
- IP Webcam stream is laggy: Reduce the resolution to 320×240 and disable audio. Also, ensure that no other device is downloading large files on the hotspot.
Frequently Asked Questions
- Can this replace a real AIS transponder? No, it only broadcasts over Wi-Fi, not VHF radio. It is a safety supplement for nearby vessels on your network, not a replacement for a certified AIS unit.
- How long will the battery last? With a 10,000 mAh power bank and the screen off, expect 24–48 hours of continuous operation. Using a 12V adapter, it can run indefinitely.
- Do I need a SIM card? No, the hotspot and GPS work without a SIM. A SIM is only needed if you want to send SMS alerts.
- Can I use a different Android phone? Yes, any phone with GPS and Android 6.0+ can work, but the Note 4 is chosen for its removable battery and low power consumption.
- Is this legal? Broadcasting a false AIS signal on VHF is illegal, but using Wi-Fi for your own safety network is generally allowed. Check local regulations for radio use.
- What if the phone freezes? Set up a Tasker profile to restart the phone daily at 3 AM. Also, use a smart plug to cycle power to the phone if it stops responding.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.
More cards in this drawer
- China’s IPv9 Decimal Network Project Explained
- Fix Wired Earbuds That Only Work in One Ear
- What to Check Before Buying the Dip in Indian Shares
- Cool Raspberry Pi Projects: 15 Ideas for Any Skill Level3
- Terraform vs Kubernetes: Key Differences
- Internet Connectivity in Remote Areas: Options0.80 USD/GB