Any modern vehicle with a year of manufacture after 2000 has a computer. When the vehicle fails, the computer reports defects and the condition of certain parts inside the vehicle. But we're not talking about that computer. Instead we are talking of having an orange pi, a small computer the size of a credit card that has the same processing capacity as the cell phones we use every day, it just does not have a screen that indicates that it has already turned on, nor does it come with a keyboard nor with a mouse, it is a computer without a screen, not like the altair of course. And what's the use of a computer without a screen in the vehicle? It makes some sense to have a computer of that type in our vehicle.
How to use the car radio that comes installed in the vehicle?
In the case of the adults who wish to be informed, these people listen to news and also to be able to know about the traffic problems that appear within the route. Each person will gives the use that best suits him/her. And what do we do if we have a vehicle manufactured before the year 2000, those vehicles that come with cassetera. Well, very likely that these owners only listen to radio today, it is no longer practical to move with several cassettes inside the vehicle.
However, how many times do we want to listen to a sound or a video and we would like the sound to come out through the four speakers that our vehicle has. In modern vehicles or in vehicles that have built-in bluetooth this is relatively simple, we believe it, but really we do not know how simple it is.
Bluetooth receiver (enabling a bluetooth receiver in our old vehicle)
What do we want to achieve with having a computer in the vehicle? The first thing was to have a bluetooth receiver, it's like having a bluetooth speaker, which are so fashionable and so available to everyone today. Doing this in a computer like the orange pi is very easy, it is difficult to make the sound of the computer come out of the vehicle's speakers, taking into account the age of the car, for this there is an adapter to the stereo connector of the computer (orange pi) and a cassette that is inserted in the old car radio. With this our car radio is enabled as a bluetooth receiver.
When some of us met the napster.
Around the year 2000, the madness of the napster was unleashed, at that time there was no spotify nor the other music services so fashionable nowadays. On the internet, Casey Kasem's programs are also available to download and listen to music from the 80s and 90s. Casey Kasem was the one who imposed the countdown genre. Over here we have a podcast collection and the Casey Kasem programs available. We could also play them from our mobile phone. But it would discharge more quickly the battery of the mobile phone, as our mobile phone is an n900 that already has more than 10 years in the market, the battery does not last long, the truth is that we must acquire a new and good battery for this mobile, returning to theme to be able to save battery the music must be in the orange pi and from there it must be reproduced. We have more than 1000 podcast items and Casey Kasem programs. Ready to be played, in our case being Emacs users we are using the emms, but you could use another music player to do the same.
Without Screen, how would we do it?
How could we know when the orange pi has just turned on? What would we do to start playing the music that is inside the memory of the orange pi? How would we do to select the song that we want to reproduce among the approximately 1000 items that are available in the orange pi memory?
To solve the problem of knowing when the computer turned on, we have enabled a bluetooth NAP server (it is a bluetooth network, which assigns ips automatically by dhcp). Before turning on the orange pi or seconds after connecting the orange pi to the cigarette lighter socket of the vehicle and before putting the vehicle in motion, in our one hand menu on the phone we start to scan the presence of the orange pi (using l2ping), Once detected the presence of the orange pi, we connect to the bluetooth network. All this happens about 15 seconds before the orange pi is fully turned on.
~ $ myips 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: wmaster0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop qlen 1000 link/ieee802.11 00:1f:df:32:67:df brd ff:ff:ff:ff:ff:ff 3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop qlen 1000 link/ether 20:d6:07:bf:c9:2e brd ff:ff:ff:ff:ff:ff 4: phonet0: <POINTOPOINT,NOARP,UP,LOWER_UP> mtu 4000 qdisc pfifo_fast qlen 100 link/ 15 peer 00 family 35 ???/0 scope link 5: upnlink0: <POINTOPOINT,NOARP,UP,LOWER_UP> mtu 49152 qdisc pfifo_fast qlen 1 link/ 1b peer 00 6: usb0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000 link/ether 1e:b3:d3:63:32:47 brd ff:ff:ff:ff:ff:ff inet 192.168.5.15/24 brd 192.168.5.255 scope global usb0 inet6 fe80::1cb3:d3ff:fe63:3247/64 scope link valid_lft forever preferred_lft forever 9: panu0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000 link/ether 20:d6:07:bf:a2:1e brd ff:ff:ff:ff:ff:ff inet 10.1.4.116/8 brd 10.255.255.255 scope global panu0 inet6 fe80::22d6:7ff:febf:a21e/64 scope link valid_lft forever preferred_lft forever ~ $
With respect to start playing a song by default when you finish turning on the orange pi. The orange pi checks if there is any network connection in its NAP network. If there is a connection with the selected mac address. It starts playing the first song in the playlist, although it could be any of the songs in the playlist. If there is no network connection to the bluetooth network the orange pi scans with l2ping for the presence of the selected mac address, if this device is within range of the bluetooth range the orange pi sends an empty file to the bluetooth OPP protocol ( bluetooth object push protocol), and that file would serve the user as a notification that the orange pi has already turned on so he can start playing his favorites songs.
~ $ sudo arp-scan -I pan0 -l Interface: pan0, datalink type: EN10MB (Ethernet) Starting arp-scan 1.9 with 256 hosts (http://www.nta-monitor.com/tools/arp-scan/) 10.1.4.116 20:d6:07:bf:a2:1e Nokia Corporation 1 packets received by filter, 0 packets dropped by kernel Ending arp-scan 1.9: 256 hosts scanned in 2.896 seconds (88.40 hosts/sec). 1 responded ~ $
To select songs, we are using the one hand menu. So we can play some of the most played songs or that we like the most. Doing this with the n900 is quite easy. We must design how it would be possible to do that with an android device. When arriving at our destination with the vehicle, we have a button to turn off the orange pi, once sent the order to turn off the orange pi, we must wait for the green led on the orange pi to turn off for disconnecting the orange pi from the vehicle cigarette lighter socket.
With the orange pi and additionally with the cassette adapter we have managed to get our already quite old collection of mp3s to be reproduce-able again, and it is an excellent company on long trips. We can even make the holy rosary. Would something like that be useful to your vehicle? What uses would you give the orange pi, in your vehicle?
Last change: 03.01.2019 02:18