Page 23 of 33 FirstFirst ... 1314151617181920212223242526272829303132 ... LastLast
Results 221 to 230 of 329
Like Tree1Likes

Thread: DAB DAB+ FM Digital Radio Development Board

  1. #221
    Newbie
    Join Date
    May 2006
    Posts
    38
    Mickz:

    Are you writing in C# or VB? I'm having an issue getting the file name passed back properly. It's creating the files no problem and saving them somewhere (not my preferred location but I can move/delete it I want I guess). I just can't get the filename properly. It seems to be maybe a Unicode issue. When using the exact same method on say GetProgramText this method works fine.

    I have:

    Code:
    // Get the filename of the SlideShow image.
    [DllImport(DABFMMonkeydll)]
    public static extern void GetImage(StringBuilder ImageFileName);
    and then something like

    Code:
    StringBuilder buffer = new StringBuilder(250);
    GetImage(buffer);
    .... to get the filename.

    Any hints or ideas?
    Last edited by Shonky*; 12-16-2012 at 01:30 AM.

  2. #222
    Maximum Bitrate Mickz's Avatar
    Join Date
    Sep 2009
    Location
    Australia
    Posts
    859
    Hi, I'm using VB.NET for this. I stopped coding in various C languages 30 years ago so can't be of any help.

    Strange one, I checked my code and as you say the code for both is identical. What does the name being returned actually look like.
    Last edited by Mickz; 12-16-2012 at 01:32 AM.
    GA-Z77N-WIFI, i5-2400S, 8GB, Intel 520 128GB SSD, M4-ATX Modified, 2 Rev Cams, 2 Web Cams
    8" 16:9 TRANSFLECTIVE, Win8-64, Dual GPS RX and Garmin PC + Odyssey Nav, FM-DAB+, BB-Rec
    T-Screen HVAC control, custom microcontrollers, code and FE. CarPC Project

  3. #223
    Newbie
    Join Date
    May 2006
    Posts
    38
    For others playing at home, I figured it out. I had it on the other DllImport lines but hadn't twigged I needed it here too.

    Code:
            // Get the filename of the SlideShow image.
            [DllImport(DABFMMonkeydll, CharSet = CharSet.Unicode, CallingConvention = CallingConvention.Cdecl)]
            public static extern void GetImage(string ImageFileName);

  4. #224
    Maximum Bitrate Mickz's Avatar
    Join Date
    Sep 2009
    Location
    Australia
    Posts
    859
    Hey glad you sorted it, as you are writing your own code, I found that MotQuery should be polled faster than 40ms else some Stations with fast updating Slideshow images may not be signalled.
    GA-Z77N-WIFI, i5-2400S, 8GB, Intel 520 128GB SSD, M4-ATX Modified, 2 Rev Cams, 2 Web Cams
    8" 16:9 TRANSFLECTIVE, Win8-64, Dual GPS RX and Garmin PC + Odyssey Nav, FM-DAB+, BB-Rec
    T-Screen HVAC control, custom microcontrollers, code and FE. CarPC Project

  5. #225
    Newbie
    Join Date
    May 2006
    Posts
    38
    Thanks. Yes I noticed that note. I was doing 50ms and it seemed to work OK, but maybe I was missing some things. I notice a couple of the stations have incrementing file numbers e.g. 12031.jpg then 12034.jpg then 12037.jpg. So I'm not sure if that means I'm only getting every third one or not.

    I've bumped it to 25ms and see how it goes. The basics of my code are working. Now it's more a case of getting the UI right for my CarMedia software. I'm having some issues with font size etc. Will put up some screen shots when I'm done. I have limited resolution (BMW screen is only 400x234) so not sure how well these images will display since I wasn't planning on doing full screen so there are time, date, indicators around the place.

  6. #226
    Maximum Bitrate Mickz's Avatar
    Join Date
    Sep 2009
    Location
    Australia
    Posts
    859
    Ok, image names on some stations increment by 3, some are sequential and others use only one image file (at least that's what I'm seeing here), for now I just coded to remove the image file as soon as it's loaded. The timing issue really shows when you have a station sending images 3 to 5 seconds apart.

    Those last two images on page 22 were captured from the Work PC with the APP sized to around 590 X 370 and of course different installations don't have all of the fonts that make it look nice, but I managed to allow for selection of all fonts, font size and colour to be changed in settings, and in the end I'm glad I did as I run the Car-PC screen at around 1000 x 600 and the workshop can be at 1600 x 1000.

    EDIT: For anyone interested, latest version of my APP with Slideshow is available at the bottom of the 1st post.
    Last edited by Mickz; 12-16-2012 at 04:47 AM.
    GA-Z77N-WIFI, i5-2400S, 8GB, Intel 520 128GB SSD, M4-ATX Modified, 2 Rev Cams, 2 Web Cams
    8" 16:9 TRANSFLECTIVE, Win8-64, Dual GPS RX and Garmin PC + Odyssey Nav, FM-DAB+, BB-Rec
    T-Screen HVAC control, custom microcontrollers, code and FE. CarPC Project

  7. #227
    Newbie
    Join Date
    May 2006
    Posts
    38
    Ok. Good seems like I'm getting everything then (I was only using 50ms at the time but currently have 25ms). Yes I've noticed those differences in terms of naming. I'm also seeing some files that are apparently PNG but are named as .JPG. A .NET PictureBox doesn't seem to care though which makes it nice and easy.

    Do you know if the images are fixed to 320x240 pixels in size? And 4:3 aspect ratio? So far I think everyone I've seen has looked like that. My layout is much more restrictive so I do need to consider other situations.
    Last edited by Shonky*; 12-17-2012 at 04:38 AM.

  8. #228
    Maximum Bitrate Mickz's Avatar
    Join Date
    Sep 2009
    Location
    Australia
    Posts
    859
    Hi great news on getting everything working, I believe the suggested standard is 320 x 240 with ideally a file size < 23K.

    JPEG, PNG and APNG images supported.

    Just finished adding BBE-EQ to my APP, the APP also saves both BBE and EQ states across Module Power downs, I think that's the last I have to do now until JP comes up with a new feature for us.

    Just Uploaded APP but BBE-EQ save-settings not fully tested yet.

    EDIT - BTW Press the Speaker level Icon in Setup to Open BBE settings.

    EDIT - Updated Post 2 with a pic of BBE-EQ setup screen, also updated APP download.

    EDIT - Found a BUG in BBE Save - Fixed and uploaded.
    Last edited by Mickz; 12-17-2012 at 10:51 PM.
    GA-Z77N-WIFI, i5-2400S, 8GB, Intel 520 128GB SSD, M4-ATX Modified, 2 Rev Cams, 2 Web Cams
    8" 16:9 TRANSFLECTIVE, Win8-64, Dual GPS RX and Garmin PC + Odyssey Nav, FM-DAB+, BB-Rec
    T-Screen HVAC control, custom microcontrollers, code and FE. CarPC Project

  9. #229
    Maximum Bitrate Mickz's Avatar
    Join Date
    Sep 2009
    Location
    Australia
    Posts
    859
    Fixed another glitch when saving BBE state.

    Basically you can switch between Pre-set EQ Settings and manually configured BBE settings without loosing the settings. This includes turning BBE and EQ off and then restoring all BBE settings at later time and across Module Power cycles. Saved BBE - EQ settings are automatically reloaded into the DAB module at every power-up. Anyway looks ok now - new APP uploaded.



    NOTE: The APP size was set to 550 x 340 for this screen capture so some text is slightly cramped. The APP scales from that low res to 1920 x 1200 and above.
    Last edited by Mickz; 12-21-2012 at 05:54 AM.
    GA-Z77N-WIFI, i5-2400S, 8GB, Intel 520 128GB SSD, M4-ATX Modified, 2 Rev Cams, 2 Web Cams
    8" 16:9 TRANSFLECTIVE, Win8-64, Dual GPS RX and Garmin PC + Odyssey Nav, FM-DAB+, BB-Rec
    T-Screen HVAC control, custom microcontrollers, code and FE. CarPC Project

  10. #230
    Newbie
    Join Date
    Dec 2012
    Posts
    1
    Hi Mickz,

    congrats on your app, really looks and works great. I'm working on a customized version with your demo as the source, which by the way makes it quite easy to get an understanding of how it works.

    I'm wondering if the new Pro Board has improved RDS capabilities, with the "old" board I can't get any info out. Since you seem to have the new one for quite a while, could you let me know your observings?

Similar Threads

  1. Replies: 1
    Last Post: 04-29-2008, 12:52 AM
  2. On-Board Digital Equalizer
    By Cheekz185 in forum Car Audio
    Replies: 4
    Last Post: 05-24-2005, 06:47 PM
  3. Frustrated with my digital WW board....
    By Waveblaster785 in forum LCD/Display
    Replies: 15
    Last Post: 03-12-2005, 05:42 PM
  4. Fried my Digital WW board....
    By Waveblaster785 in forum LCD/Display
    Replies: 9
    Last Post: 02-21-2005, 10:26 PM
  5. SB Value Digital I/O Board???
    By RaZor in forum General Hardware Discussion
    Replies: 6
    Last Post: 04-19-2001, 12:45 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •