Close
0%
0%

[ModAir] Computer Interface Module

A CAN-bus to USB/WiFi/Bluetooth interface module for the ModAir project

Similar projects worth following
This module allows PCs, tablets, smart phones and smart watches to be used as multi-functional displays (MFD) to view and control sensor data on the ModAir bus. With a test-app on a PC, it also supports logging, debugging, configuration and firmware updates.

This module is a sub-system of the ModAir project. Refer to the main project page for details: https://hackaday.io/project/19325

Status: evaluating options...

Still not sure if USB, Wifi AND Bluetooth are required. Would also be nice to add a microSD card for logging, although the computer could do that (might not always be connected).

For USB-CDC and Bluetooth SPP: use LAWICEL protocol.

Nice option would be to use this: https://hackaday.io/project/579-cantact ... or at least re-use a lot of Eric Evenchick's work.

Other option would be to use ESP32; it has CAN, USB to Serial, Wifi and BT.

For USB: would be useful to act as device, and charge the SmartPhone / Tablet in the process... Charging Android phone while it is in USB Host mode: possible with resistor on micro USB type B ID pin.

  • HC-06 Bluetooth Serial Module Evaluation

    Rene04/20/2017 at 11:55 0 comments

    I've had a couple of these modules for a while, but never got around to testing them. There seem to be even cheaper ones available now! If they work as expected, they would be a useful interface (USB alternative) from the ModAir hardware to a tablet / phone / PC.

    I found this datasheet to be the most complete and accurate. Reliable documentation seems to be scarce for most of these cheap Chinese modules.

    I soldered up the 4 wires and added the status LED before heat-shrinking it all together. A FT232R based USB-to-Serial converter is used on the other end.

    When powering up the module, the status LED flashes and the device configuration can be accessed from the serial port side via AT commands. Once a Bluetooth device (in this case my laptop) is connected and the virtual serial port is opened (I used Realterm), the LED stops flashing and remains ON. The AT commands stop working and the link now becomes a straight-through data link.

    Changing the baud rate and device name was straightforward as listed in the datasheet. I changed the baud rate to 921600 bps on both ends and used Tera Term since the file send function in Realterm peaks out at 4800 CPS.

    When from the BT side, Tera Term shows a speed of 22.5 KB/s and all bytes were received correctly on the FT232R side. File size was around 5 MB.

    When sending the same file from the FT232R side, Tera Term reports a speed of more than 98 KB/s (theoretical max of 921600 bps == 92160 bytes/sec == 90 KB/s ??), but only around 22% of those are received on the BT side.

    In hardware loopback (TxD to RxD wire):

    • FT232R sustains around 68 KB/s
    • Bluetooth module sustains around 10.8 KB/s

    Seems like these modules are only good for a half duplex data rate of around 20 KB/s, or a full duplex rate of 10 KB/s. Maybe some optimal burst sizes would achieve a higher rate?

View project log

Enjoy this project?

Share

Discussions

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates