|
 |
|
05-10-2007, 02:38 PM
|
#16
|
|
Newbie
Join Date: Sep 2005
Location: Aylesbury, UK
Posts: 29
|
@putput; does the hqct dll you made, also implement the radiator procedures for initializing and de-initializing the device? ie hwiniti and hwdeinit?
Quote: Originally Posted by FMode 
I have read this thread .. Fmode, you are so modest!
splitting off the rds is a nice idea in itself. but .. take the hqct as example: if the plugin already opened the port, how is another driver gonna read the rds data from the device?
i must admit, lack of rds in radiator is a serious problem that i hadnt realised.  its a pitty that radiator development kind of stopped.
i like the way that radiator has set a kind of standard for interfacing a radio device. That is something we should adopt for future drivers, so drivers can then be re-used in other frontends.
|
|
|
|
Sponsored links
|
|
Advertisement
|
|
05-10-2007, 04:15 PM
|
#17
|
|
Constant Bitrate
Join Date: Sep 2005
Location: Belgium
Posts: 181
|
Quote: Originally Posted by mischka76 
@putput; does the hqct dll you made, also implement the radiator procedures for initializing and de-initializing the device? ie hwiniti and hwdeinit?
Yes it does, 100% according to Radiator rules, return values included.
Putput
|
|
|
05-10-2007, 04:44 PM
|
#18
|
|
Newbie
Join Date: Sep 2005
Location: Aylesbury, UK
Posts: 29
|
YES! hasta la victoria siempre!!!!
i can now tune to AM as well. Allas, I receive only static but thats not because of my code. it must be antenna or summit.
good to hear about the radiator implementation. i'll look into that later!
the thing is with radiator: it doesnt just lack RDS, it also lacks AM/FM? I'll have to investigate the amount of users of am and/or other tuner-devices before i make more effort on this.
or maybe Fmode comes up with some miraculous solution.
|
|
|
05-10-2007, 05:11 PM
|
#19
|
|
Constant Bitrate
Join Date: Sep 2005
Location: Belgium
Posts: 181
|
Quote: Originally Posted by mischka76 
YES! hasta la victoria siempre!!!!
Quote: Originally Posted by mischka76 
i can now tune to AM as well. Allas, I receive only static but thats not because of my code. it must be antenna or summit.
Probably
Quote: Originally Posted by mischka76 
good to hear about the radiator implementation. i'll look into that later!
Request from a dutch guy, you know the dutch guys ..
Quote: Originally Posted by mischka76 
the thing is with radiator: it doesnt just lack RDS, it also lacks AM/FM? I'll have to investigate the amount of users of am and/or other tuner-devices before i make more effort on this.
I know that the people in the US of A appreciate AM reception a lot, has to do with distances I think. I have a very loyal beta tester on the other side of the ocean, he uses AM frequently.
Quote: Originally Posted by mischka76 
or maybe Fmode comes up with some miraculous solution.
|
|
|
05-10-2007, 05:44 PM
|
#20
|
|
Constant Bitrate
Join Date: Mar 2005
Location: Wiesbaden/Germany
Posts: 213
|
Quote: Originally Posted by mischka76 
....
or maybe Fmode comes up with some miraculous solution.
I painted the struture here:
http://www.mp3car.com/vbulletin/932846-post15.html
The truth is:
There is no RDS interpretation... the RDS raw stream should be directly moved to the Frontend from the driver. I don't know what services are run over RDS in your conuntry/station - so I may forgot interpretation in my RDS interpreter. So if you programm your own frontend and want to show "RDS paging" (example) you can still use my driver(s)+RDS interpreter and got the RDS paging out of the raw RDS stream.
Frontend's handling of RDS:
Code:
Private Sub mFMRadioHal_RDSRAWMessageavailable(ByRef RDSRAWMessage As FMRadio.FMRadioHAL.stRDSRAWMessage) Handles mFMRadioHal.RDSRAWMessageavailable
mRDSInterpreter.decode(RDSRAWMessage)
string=mRDSInterpreter.CurrentProgram.RadioText
End Sub
(the RDS interpreter uses an objectual view of RDS - very powerful idea by Aeroanderz)
BTW: blocking/filtering information in a lower layer is always bad...
I would like to have more discussion ! I would like to have more discussion about interface spec's - I am sure there are some things stupid/missing/error.
If you have any concerns that this will not work with a Silabs/ADS Radio.... just ask...
Missing is "audio-mixer-stuff" - these are radiodrivers not "audio". The HQCT is radio with a mixer section.
Interface-Proposal for (radio-)audio-layers:
Code:
Namespace AudioHAL
'this is the root class !
Public Interface I_AudioHAL
ReadOnly Property AudioSources() As AudioSourceCollection ' these Equlizers are at the Input of each Audiosource(Channel)
'...more to add ?
ReadOnly Property CommonEqualizer() As EqualizerBand ' this Eqaulizer is at the OUTPUT of our Mixer
End Interface
Public Interface I_AudioSource
ReadOnly Property Name() As String
ReadOnly Property AudioType() As enAudioSourceTyp
ReadOnly Property RoutingType() As enRouteType
Sub Enable()
ReadOnly Property Equalizer() As EqualizerBandCollection
Property Volume() As Integer
End Interface
Public Interface I_EqualizerBand
ReadOnly Property Name() As String ' examples "100Hz", "1000Hz", "TREBLE", "BASS", "LOUD", ....
ReadOnly Property SortID() As Integer 'helps the Frontends to display the Slider for every EqBand in the right order "100Hz" will be 0 "1000Hz" will be 1 - "BASS" will be 0 "TREBLE" will be 1
Property Value() As Integer ' 50% or something will be the center - this is the value to control this EqBand
End Interface
Public Enum enRouteType
MIXABLE_WITH_OTHER_SOURCES
ONLY_THIS_CAN_BE_ENABLED_AT_ONE_TIME
End Enum
Public Enum enAudioSourceTyp
CD
NAVI
Radio_FM
Radio_AM
Radio_MW
Radio_LW
Radio_SW
CASSETTE
TEL
PC_COMMON
PC_MP3
PC_DVD
PC_NAVI
OTHER
End Enum
End Namespace
This Audio-DLL (the HQCT version of it) will/should communicate with the FMRadioHAL driver (over WindowsMessages)...
Last edited by FMode; 05-10-2007 at 05:50 PM.
|
|
|
05-10-2007, 05:56 PM
|
#21
|
|
Newbie
Join Date: Sep 2005
Location: Aylesbury, UK
Posts: 29
|
Quote: Originally Posted by Putput 
Request from a dutch guy, you know the dutch guys ..
eh? did i?
I'll recode to radiator compliance after 19th of may. i have now coded all stuff with the other set of procedures. now that i have that working, i will implement it in my frontend. then i want to place the software and hardware into my car to see how it works there. after i achieved that, i will work towards the next step.
one other question: in your testapp you read the buffer 4 times per second. is this really necessary for correct operation? or is some buffer overflowing otherwise?
Last edited by mischka76; 05-10-2007 at 06:01 PM.
|
|
|
05-10-2007, 05:59 PM
|
#22
|
|
Constant Bitrate
Join Date: Sep 2005
Location: Belgium
Posts: 181
|
Quote: Originally Posted by mischka76 
eh? did i? 
Never sad it was you who asked for it, look here
And good luck with your frontend!!
|
|
|
05-10-2007, 06:38 PM
|
#23
|
|
Newbie
Join Date: Sep 2005
Location: Aylesbury, UK
Posts: 29
|
Quote: Originally Posted by Putput 
Never sad it was you who asked for it, look here 
ah... i see. made a request and never heard back of him
well, I do appreciate your efforts putput!
i think i need some sleep soon.
|
|
|
|
Sponsored links
|
|
Advertisement
|
|
05-10-2007, 07:19 PM
|
#24
|
|
Newbie
Join Date: Sep 2005
Location: Aylesbury, UK
Posts: 29
|
i permitted myself some eerie naming conventions...
Public Sub RefreshValues()
(lots of code)
If FirstTime Then Loosevirginity
End Sub
Public Sub Loosevirginity()
'set some values on first radio startup
' Sensitivity
SeekSensitivity = HQCTBuffer.HQCTBuf(98)
frmaiva.menukey(1).Caption = "Sensitivity: " & SeekSensitivity
Mute = HQCTBuffer.HQCTBuf(97)
FM = HQCTBuffer.HQCTBuf(101)
FirstTime = False
RadioVolume = 32
HQCTVolume (RadioVolume)
End Sub
|
|
|
05-11-2007, 09:11 AM
|
#25
|
|
Constant Bitrate
Join Date: Sep 2005
Location: Belgium
Posts: 181
|
Quote: Originally Posted by mischka76 
i permitted myself some eerie naming conventions...
...
If FirstTime Then Loosevirginity
Awel he, wij vlamingen hebben een spreekwoord dat zegt:
"Waar het hart van vol is loopt de mond (in dit geval de pen) van over!" ...
PS Sorry for all non dutch speaking people reading this thread but the previous words are not suitable for translation ..
|
|
|
05-11-2007, 02:27 PM
|
#26
|
|
Constant Bitrate
Join Date: Mar 2005
Location: Wiesbaden/Germany
Posts: 213
|
Quote: Originally Posted by Putput 
...
No sorry, it is still a hobby and I need to find the time for it. AF is almost finished, but because both traffic and news need AF to work it has to be in this order => AF, then news/traffic. I hope to get it finished before the end of this month.
...
AF good point... I forget something I want to look for...
"AF is not possible" (with the HQCT and it's current firmware) - my statement !
sorry
The philips software (working over i2c with Tuner and TEF) does AF checks like this:
Code:
S 31 a 8A A 74 A 00 N P -- 74 is the level of the current programm (89,3) from the TEF
S C2 a 87 a E2 a 3C N P -- AF Bit enabled (the 8 from 87!) - 7E2 is the freq to check 90,2 (level, USN and WAM is written into TEF's latches)
S C2 a 87 a D0 a 3C a 88 a 01 N P -- switching back to 89,3
S C2 a 87 a D0 a 3C a 88 a 00 N P -- switching back to 89,3 (2 lines for faster tuning - switching from wide band to dynamic band)
S C3 a 5A N P
S 31 a AA A 24 A 53 N P - reading the TEF now contains the level from the AF check (!) = 24
S C3 a 5A N P
S 31 a 8A A 74 A 00 N P - reading the TEF contains our old programm again (89,3) with level 74
commands 2,3 and 4 are time critical ! they have to follow each other in 5ms - if they took too long the AF check is audible.
What if your windows... is busy between your 2/3 HID commands ?
How to identify the incoming HID message with the level values from the AF check ? May be the PIC buffered (level,...) values ?
I rather think this "i2c-message-salvo" has to be done complete alone by the PIC...
and to add: it is 100% perfect design by Datalex that the PIC is stupid and only an USB-I2C adapter (I see only one expection: AF check)
Last edited by FMode; 05-11-2007 at 02:36 PM.
|
|
|
05-11-2007, 02:34 PM
|
#27
|
|
Constant Bitrate
Join Date: Feb 2007
Location: New Jersey
Posts: 136
|
PutPut, I downloaded your CTuner but how do I make my HQCT use yours instead of the one that comes with the HQCT in RR. Also, I know this question doesn't belong here, but you seem to be qualified enough to answer it. I am having reception issues and no channel comes in over 50 percent in your program. What can I do to increase reception quality? I have it plugged into my car oem antenna but the reception is no where near the quality of my OEM radio.
Last edited by diosagain; 05-11-2007 at 06:18 PM.
|
|
|
05-11-2007, 08:01 PM
|
#28
|
|
Newbie
Join Date: Sep 2005
Location: Aylesbury, UK
Posts: 29
|
ok, i have my first version of the radio integration into james, my carpc software. for more info about james see http://carpc.mischka.eu and then the software section.
ok... a quick explanation.
on top on the status bar you can see the band/frequency. If the received signal is not stereo it will go red.
I guess the tune up and down i dont have to explain  AM FM option switches the band accordingly.
the memory option adds current station to the memory and puts it in the list. if there is a station-name from rds it will also save this. there is room for 16 presets.
with next and previous you can select a saved station in the list.
the sensitivity option sets the seek sensitivity.
when turning the volume down very far it will mute automatically. if you leave the radio menu while muted it will switch off (de-init) the radio. the frequency indicator will then display "radio off".
when the radio plays and user opens an mp3, radio is stopped, and vice versa.
so the basic radio functions that you find on a headunit are now working. some things to do:
- volume control of radio is only in radio menu
- on incoming call a playing mp3 is muted, this needs doing for radio also.
- rds display in main menu
- enable radio memory for AM frequencies.
should be fixed by the end of the weekend. i will then post a new zip file.
|
|
|
05-12-2007, 03:14 AM
|
#29
|
|
Newbie
Join Date: Nov 2006
Location: Cambridge, UK
Posts: 14
|
Quote: Originally Posted by mischka76 
ah, for me it's a hobby too! But I want to have a working version ready before 19th of may, there is a car-pc gathering here in the UK.
Hi - I'm in the UK too and would find the gathering interesting. Where is it exactly? Are newbies welcome?
Paul
|
|
|
05-12-2007, 06:13 AM
|
#30
|
|
Constant Bitrate
Join Date: Sep 2005
Location: Belgium
Posts: 181
|
Quote: Originally Posted by diosagain 
PutPut, I downloaded your CTuner but how do I make my HQCT use yours instead of the one that comes with the HQCT in RR. Also, I know this question doesn't belong here, but you seem to be qualified enough to answer it. I am having reception issues and no channel comes in over 50 percent in your program. What can I do to increase reception quality? I have it plugged into my car oem antenna but the reception is no where near the quality of my OEM radio.
Hi Diosagain,
Here you can find a readme.txt file that describes features and installation of CPCTuner. The following lines are cut out of the text file and describe rr installation:
- RR Install:
+ Unzip the contents of the file CPCTuner.ZIP in C:\CPCSuite\... (!IMPORTANT!: this betaversion uses fixed paths for now, make sure its there or it simply doesn't work!)
+ Rename the file 'RR Path'\HQCT\RRHQCT.exe to 'RR Path'\HQCT\RRHQCT.ORI, where 'RR Path' is the full path in which RR is installed, exp C:\Program Files\RoadRunner.
+ Copy the file C:\CPCSuite\RRHQCT.EXE to 'RR Path'\HQCT\RRHQCT.exe
+ Thats all, now start RR and click on radio, CPCTuner.exe should start minimized and the tuner will start after a few seconds.
+ Of course CPCTuner can still be used as a standalone program.+ To uninstall: delete the file 'RR Path'\HQCT\RRHQCT.exe and rename the file 'RR Path'\HQCT\RRHQCT.Original to its original name.
About the reception problem, I have the module in my car now for several months (used it on my desk first to develop CPCTuner) and reception is 99% like with the original HU using the build in car antenna. And I used a 75ohm antenna extension cable, this should be 50ohm but because of the fact that reception is so good I 'haven't found the time' to replace the extension cable. Also you probably checked the posts on the hardware thread about power supplies (this is more important with bad RDS but) a clean power supply is always important. My HQCT module is directly connected to the 12V power of my car and I use a 7805 for 5V, together with the 5V I also installed the filter that Diogenes proposed in one of his posts (974) in the HQCT hardware thread. But I used a 10ohm resistor in the 12V line instead of the proposed 33ohm by Diogenes. Also check antenna connections and plugs, each connection is a possible source of problems.
Hope this can help, plz let us know how it works out.
Putput
|
|
|
|
Sponsored links
|
|
Advertisement
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 09:19 AM.
| |