Software to capture and plot with the new firmwares

RobNL
Posts: 122
Joined: Mon Dec 25, 2017 3:11 pm
Location: The Netherlands
Contact:

Re: New firmware and serial data capture to visualize and pl

Post by RobNL »

For test the bluetooth it is possible to update the shell version, if the bluetooth can update the shell it can also datatranfer.
I will aks some friends of my if it is piossible to get the date out of the shell with a APP who can also write it in a wave and store on the sim.
If possible, we do not need the USB2TTL anymore, no holes and no wires.
I only need a data stream to show wat we have to use for the APP.
Unfortunately I am not a (Android) programmer otherwise I would have written something myself.
CU, Rob
robocog
Posts: 64
Joined: Tue Sep 12, 2017 10:06 am

Re: New firmware and serial data capture to visualize and pl

Post by robocog »

There is no reason it shouldn't work as far as I can see
I have just done similar for my car ECU (which is why I ended up with 'spare' bluetooth modules - again lipo battery, charger and 5v boost circuit and an rs232<>TTL as the ecu is serial)

The bluetooth units I have are 3.3v TTL , but do require a higher input voltage so testing is less easy on the DSO shell
(would need another power supply for the module)
HC05 or HC06- fairly straight forward to "program" them (eg name and pin code and baud rate etc)

I will cobble together a 5v supply for one and just check it does work - but I see no reason why it shoudn't

Regards
Rob
RobNL
Posts: 122
Joined: Mon Dec 25, 2017 3:11 pm
Location: The Netherlands
Contact:

Re: New firmware and serial data capture to visualize and pl

Post by RobNL »

The analogboard have AV+ 5V, otherwise we can use a 78LS05 from the 9 Volt input.
It is not necessary to use a step-up module to make 5V from the battery.
CU, Rob
robocog
Posts: 64
Joined: Tue Sep 12, 2017 10:06 am

Re: New firmware and serial data capture to visualize and pl

Post by robocog »

Just had a fiddle with the bluetooth module
Hooked it up to a CP2102 USB<>TTL (5v power and 3.3v TTL)
Got it into AT mode (push button down on unit whilst powering it up)
Programmed it for 115200 baud 8N1, no handshake
Changed its name to DSO150
kept the pin as 1234

I can connect with Android and have been batting data from my PC to Android and back again with these settings
Just need to wire the DSOshell in place of the CP2102 and I will be able to watch the data fly down the screen

The Android app I am using is called "Serial Bluetooth Terminal 1.12"

It claims it has a directory it is saving data to, but the directory is empty when I disconnect / exit the serial app :(
(I should email the author I guess)

I would also think that firmware flash would be a bad thing to attempt via bluetooth
(cable is much more robust!) - but for getting data from the device - with the possibility of graphing it is a great idea

I have other devices that can 2 way communicate and be programmed via BT and therefore I suppose theoretically able to use BT for firmware updates (car ECU, radio control helicopters and quads) but never dared attempt firmware flash via BT - always done it via a cable

Regards
Rob
RobNL
Posts: 122
Joined: Mon Dec 25, 2017 3:11 pm
Location: The Netherlands
Contact:

Re: New firmware and serial data capture to visualize and pl

Post by RobNL »

The HC boards without the baseboad.
http://www.uctronics.com/download/U3006 ... -Board.zip
CU, Rob
robocog
Posts: 64
Joined: Tue Sep 12, 2017 10:06 am

Re: New firmware and serial data capture to visualize and pl

Post by robocog »

Have rigged it up - it does kind of work - but is slow and the data is appearing as chunks with big pauses
On one tablet it completes, on the other I have had it crash out before all the data arrived
(could be app related rather than a BT quirk?)

Will try my phone next...

Regards
Rob
robocog
Posts: 64
Joined: Tue Sep 12, 2017 10:06 am

Re: New firmware and serial data capture to visualize and pl

Post by robocog »

OK found an app called blueterm
https://play.google.com/store/apps/deta ... e.blueterm

have installed that on the phone and it does work rather well

It works great for logging the data from the DSO150 via bluetooth
Files get saved - and it does not pause when getting the data (as it does via a cable on PC)

have uploaded the data to my PC and it all looks good
Will try and zip it up and upload it here - along with some photo's
Powered the Bluetooth from a CP2102 from the PC's USB port and hooked gnd rx and tx to the DSO150
blueTerm_20180114_225010.zip
(4.19 KiB) Downloaded 385 times
IMAG1249.jpg
IMAG1248.jpg
Regards
Rob

Just looking onto using Python under Android...don't write it off just yet :D
(I also see Gnuplot IS available for Android...I would need a decade to get it to all work :D :D )
RobNL
Posts: 122
Joined: Mon Dec 25, 2017 3:11 pm
Location: The Netherlands
Contact:

Re: New firmware and serial data capture to visualize and pl

Post by RobNL »

LOOKS GREAT !!
I have see the BT mainboard use only 3V3 and with the baseboard 3V6 till 6V.
With your date I can get to my friend, hi write also a other program form me.
https://www.youtube.com/watch?v=ev9eYBHMYg0
https://www.youtube.com/watch?v=CKb5ImZ03Yc
I hope he have time for me to help.
CU, Rob
robocog
Posts: 64
Joined: Tue Sep 12, 2017 10:06 am

Re: New firmware and serial data capture to visualize and pl

Post by robocog »

Keep me up to date please :)

Just found out that the bluetooth will work being fed 3.3v on the VCC pin !
Not sure if reliability will be affected, but bench test so far has not shown a problem

Just need a smaller battery and smaller 9v boost board to try and get it all to fit in the case :D

Regards
Rob
RobNL
Posts: 122
Joined: Mon Dec 25, 2017 3:11 pm
Location: The Netherlands
Contact:

Re: New firmware and serial data capture to visualize and pl

Post by RobNL »

I have a 1800mA battery and can use the shell about 6 houres with the stepup (1S Li-ion > 9V)
In the shell is a stepup and USB2TTL module and the lowpower notice for the Li-ion.
There is enough space for the BT, but then I have to use only the mainboad of the BT, not the complete HC06.
If the BT works with a low current, the 3V3 of the shell mainboard can be used.
CU, Rob
Post Reply