janosgyerik / bluetoothviewer

A simple Android app to debug Bluetooth connections: 1. Connect to any Bluetooth device, 2. Display incoming raw data, 3. Send raw data to the Bluetooth device. You can confirm successful pairing, monitor incoming raw data and see exactly what is being transmitted from the Bluetooth device.
https://play.google.com/store/apps/details?id=net.bluetoothviewer
Other
196 stars 108 forks source link

Create a dummy device to make development easier #4

Closed janosgyerik closed 9 years ago

janosgyerik commented 10 years ago

At the moment, testing the app is not possible without connecting to a real bluetooth device that broadcasts ascii data when connected. Even when you have such a device at hand, testing is not very convenient: you have to switch on the bluetooth device, and you probably have to recharge its battery too from time to time.

It would be great to have a fake / dummy / virtual device for testing the app:

Example data set to use by the dummy device:

#210914:210452:668$GPRMC,194125.918,V,4851.5581,N,00220.2004,E,0.00,0.00,210914,,,N*74
#210914:210453:661$GPRMC,194126.918,V,4851.5581,N,00220.2004,E,0.00,0.00,210914,,,N*77
#210914:210453:763$PSEN,CO2,ppm, 0915
#210914:210454:661$GPRMC,194127.918,V,4851.5581,N,00220.2004,E,0.00,0.00,210914,,,N*76
#200914:160256:674$GPRMC,143935.410,V,4851.5581,N,00220.2004,E,0.00,0.00,200914,,,N*73
#200914:160257:651$PSEN,CO2,ppm, 1357
#200914:160257:674$GPRMC,143936.410,V,4851.5581,N,00220.2004,E,0.00,0.00,200914,,,N*70
#200914:160258:673$GPRMC,143937.410,V,4851.5581,N,00220.2004,E,0.00,0.00,200914,,,N*71
#200914:160259:604$PSEN,CO2,ppm, 1311
#200914:160259:676$GPRMC,143938.410,V,4851.5581,N,00220.2004,E,0.00,0.00,200914,,,N*7E
janosgyerik commented 9 years ago

This is done. You can enable mock devices in the settings menu, and when you try to connect, the mock devices will appear as new options.