News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Writing software for a car-computer

Started by Siekmanski, November 12, 2014, 11:01:45 AM

Previous topic - Next topic

Siekmanski

Quote from: Zen on November 19, 2014, 09:19:02 AM
MARINUS/SIEKMANSKI,
You really come up with some great concepts. And,...this one is so practical.
...You should think seriously about franchising it,...you will probably become a billionaire,...and, some day run into Bill Gates,...who will ask: "Why didn't I think of that ???"

In my dreams hahaha...  nothing new here, most new cars have such computers built in.
If you want to buy such a system it cost you a lot, so i thought building one myself for fun.

Those mini itx mother-boards are very cheap, 80 - 200 euro and a 7" touchscreen 50 euro.
I have several FM-tuners stripped from old pci TV cards at home, they are easy controlled with a 2 euro microcontroller.
Then i need 4 audio amplifiers for front and rear speakers.
At last an OBD2 connector, some resistors, caps, transistors, diodes, voltage regulator and a FTDI chip for the communication.
This is all the hardware i need in this project.
Some of those parts i have ordered in China.

Maybe i build in a neuralyzer which i can use on cops if i'm caught speeding....  :biggrin:

I have read a lot about BlueTooth ( and OBD2 ) protocols the last days and all is still a bit vague.
This weekend i'll try some coding and hope to get in contact with my mobile phone via a BlueTooth connection.
Creative coders use backward thinking techniques as a strategy.

anunitu

You remind me of a guy I was in High school with. We were both in electronics class,but he was that guy that went above and beyond,I think he could have taught the teacher. I have no doubt he has invented a lot of things since we were in school,he was just that guy who could come up with stuff no one else could. :t 

Siekmanski

I'm struggling my way thru the Bluetooth apis.
So far it only searches for Bluetooth devices and i hope that it filters out the smart phones.

It would be nice if you guys with a smart phone can help me out to test if it works as expected.

Turn your Bluetooth on on your smart phone and make sure it's discoverable.
Then start this proggy and let me know if it's listed as a smart phone.

Maybe some day i'll get control over smart phones and create a hands-free car kit....
Find BlueTooth Devices.....

Local Bluetooth Radio found.

Radio Name         : COSMOS
Radio Address      : 5cf37013cff0
Class of Device    : 007e0104
Radio lmpSubversion: 00009999
Radio manufacturer : 00000045

Please wait for 12.8 seconds, scanning for BlueTooth Devices.....

Bluetooth Device Name: SiekmanskiPC
Device Address       : 0015834e40ef
Class of Device      : 00120104
Device Authenticated : NO
Device Connected     : NO
Device Remembered    : NO

Bluetooth Device Name: OnBeat Rumble
Device Address       : 001ddf75c722
Class of Device      : 00240400
Device Authenticated : NO
Device Connected     : NO
Device Remembered    : NO

Next device is a Smart Phone:

Bluetooth Device Name: Galaxy Note
Device Address       : 38ece48e7da3
Class of Device      : 005a020c
Device Authenticated : NO
Device Connected     : NO
Device Remembered    : NO
Creative coders use backward thinking techniques as a strategy.

habran

Cod-Father

Siekmanski

Quote from: habran on November 26, 2014, 02:51:31 PM
Nada  :(

What do you mean exactly habran ?
You need an usb bluetooth radio addapter connected or one on board of your computer.
It should work with XP sp2 and later operating systems.
It scans for 12.8 seconds to find nearby bluetooth devices.
Creative coders use backward thinking techniques as a strategy.

anta40

Quote
C:\Users\CSL-NB-064\Desktop>BlueTooth.exe
Find BlueTooth Devices.....

Local Bluetooth Radio found.

Radio Name         : CSL-NB-068
Radio Address      : 3859f9ebd93e
Class of Device    : 0002010c
Radio lmpSubversion: 0000220e
Radio manufacturer : 0000000f

Please wait for 12.8 seconds, scanning for BlueTooth Devices.....

Bluetooth Device Name: CSL-NB
Device Address       : 2016d859e733
Class of Device      : 0002010c
Device Authenticated : NO
Device Connected     : NO
Device Remembered    : NO

Bluetooth Device Name: PRIADI-PC
Device Address       : 2016d859f911
Class of Device      : 007e010c
Device Authenticated : NO
Device Connected     : NO
Device Remembered    : NO

Bluetooth Device Name: BENI-RND
Device Address       : 889ffabbc18d
Class of Device      : 0006010c
Device Authenticated : NO
Device Connected     : NO
Device Remembered    : NO

Next device is a Smart Phone:

Bluetooth Device Name: BlackBerry 9860
Device Address       : a06cec9e7827
Class of Device      : 007a020c
Device Authenticated : NO
Device Connected     : NO
Device Remembered    : NO

Bluetooth Device Name: SUPRIADI-NB
Device Address       : bc773735cd4c
Class of Device      : 0002010c
Device Authenticated : NO
Device Connected     : NO
Device Remembered    : NO

Next device is a Smart Phone:

Bluetooth Device Name: anta40
Device Address       : c4420203e4a4
Class of Device      : 005a020c
Device Authenticated : NO
Device Connected     : NO
Device Remembered    : NO

Bluetooth Device Name: SIGITSUKSES
Device Address       : d0df9a2c6c4b
Class of Device      : 007e010c
Device Authenticated : NO
Device Connected     : NO
Device Remembered    : NO

Press any key to continue...

Seems to work well...

habran

I thought that it can discover my mobile phone with bluetooth on
isn't that what the car radio does? :redface:
when I enter my car and turn the key on Start it connects to my mobile 8)
my laptop has bluetooth inside
Cod-Father

Siekmanski

Thank you anta40  :biggrin:

Hi habran,
Your smart phone is already paired with your car radio so it finds it because it has the cars address etc. saved.
For allowing the smart phone to get discovered by other bluetooth devices,
you have to select the "Allow Bluetooth Devices to Find This Device" option on your smart phone.

This is how far my proggy goes at this time.

Next step in my proggy will be to send a pin-code to confirm the connection so it will recognise the smart phone automatically the next time.
Creative coders use backward thinking techniques as a strategy.

habran

My smart phone doesn't have that option
it has "Now discoverable as habran" option which is always on
I appreciate your work and I think that this is a brilliant idea
QuoteIf you want a job done right do it yourself
Cod-Father

Siekmanski

Habran, what brand and type of smart phone do you own ?
Creative coders use backward thinking techniques as a strategy.

habran

Last iPhone5 before iPhone6 it is 64 bit
Cod-Father

anunitu

I am thinking one of the most useful software in the future would be to block hijacking of wireless tech by outside means.

Siekmanski

I'll have to check this, when i had an iPhone it has also troubles connecting to other bluetooth devices.  :icon_rolleyes:
It would be nice to connect to iPhones too.  :biggrin:
Creative coders use backward thinking techniques as a strategy.

habran

That would be nice :biggrin:
I would like to see your final product
Hope you will let us see it ;)
Cod-Father

Siekmanski

Quote from: anunitu on November 27, 2014, 11:38:20 PM
I am thinking one of the most useful software in the future would be to block hijacking of wireless tech by outside means.

I think that would be impossible....
Creative coders use backward thinking techniques as a strategy.