Bluetooth

Bluetooth Smart Monitoring System V2.0

This article only provides a sneak peek into the new features of the network monitor.I’d recommend having a look at the original post first.

  • New PCB design
    The new PCB is now an almost single board design, just a separate board for the USB connector. The old monitor had a small main board which connected to the LCD and Bluetooth modules. This new board has everything soldered straight on.
  • Revamped microcontroller code
    Refactored a lot of the microcontroller code, reduced RAM usage and improved performance a little bit.
  • New router program
    The router program is now completely written in C! Uses much less CPU time than the old shell script.
  • New host program
    Written in C# .NET and uses LibUsbDotNet. It’s still in early development, but at the moment allows uploading images (takes around 2.5 – 3 seconds to upload), drawing stuff (mouse click and drag) and controlling the display brightness.
  • Other new features
    New efficient binary protocol instead of a text protocol.
    Added a temperature sensor since there was a lot of room left on the PCB, however this turned out to be a bit useless for measuring the room temperature because of the heat dissipated by nearby parts, mainly

Monitoring Network Traffic: Bluetooth Network Monitor

You can read about the newer version of the Bluetooth network monitor here, but I suggest you continue reading this article.

I often encounter slow download speeds or online gaming lag, and every time I have to log in to my router’s web page or via SSH to check if it’s because of others in my household downloading/uploading, unstable network connections, or simply a server issue. It’s really frustrating. So, I decided to create a device that displays network statistics in real-time, making it more convenient to monitor network traffic.

The monitor consists of an ATmega328P @ 20MHz, a 160×128 1.8-inch color LCD, and a Bluetooth module, powered by 5V USB. It has a button that long-presses to adjust the LCD brightness and short-presses to switch display modes. Since it’s powered by USB, I added support for V-USB.

Enclosure Design:

  • Uses an A8 paper display holder
  • Removes the back clip part
  • Adds rubber feet

Monitor Modes:

  • Display Mode 1:
    • Downlink sync
    • Uplink sync
    • Download rate
    • Upload rate
    • 25-second historical chart
    • Flat
    • Packet loss
    • WAN IP
    • Time
    • Email notification
  • Display Mode 2:
    • Download rate
    • Upload rate
    • 40-second large historical chart

Future Plans:

  • Add more

Bluetooth Module Communication: Configuration and Testing

A Simple Way to Make Your Project Wireless with Serial Bluetooth Modules

Using serial Bluetooth modules is a straightforward way to make your project wireless, as they can transparently transmit standard serial data to another connected Bluetooth module, without requiring additional code.

Adding Bluetooth to Your Project for Mobile Control

To add Bluetooth to your project for mobile control, simply insert a slave module and connect to it via your phone. However, getting two modules to communicate with each other requires understanding some basic concepts.

How Bluetooth Modules Work

Bluetooth modules work in slave and master modes. Slave modules cannot initiate connections with other Bluetooth devices, but can accept connections. Master devices can be set to master or slave mode, and in master mode, they can initiate connections with other devices. Be sure not to make the mistake of buying two slave devices! You need two master devices or one master and one slave device.

What to Note When Buying Bluetooth Modules

Sometimes, eBay sellers may not provide much information about their modules. To determine whether a module is a slave or master device, be sure to check the following:…