A2300 porting thread - page 4 - DryOS Development - CHDK Forum
supplierdeeply

A2300 porting thread

  • 70 Replies
  • 38597 Views
*

Offline nafraf

  • *****
  • 1308
Re: A2300 porting thread
« Reply #30 on: 08 / August / 2012, 18:58:33 »
Advertisements
If this implementation is used:
Code: [Select]
void *vid_get_viewport_live_fb() {   return 0x0; }
Liveview with MODE_SCN_FISHEYE, MODE_SCN_MINIATURE, MODE_VIDEO_IFRAME_MOVIE and MODE_SCN_TOY_CAMERA modes work.

But that is not the best solution, is it?

EDIT
With this implementation bug of DISP text color is fixed too.
« Last Edit: 08 / August / 2012, 19:07:24 by nafraf »

*

Offline reyalp

  • ******
  • 14118
Re: A2300 porting thread
« Reply #31 on: 08 / August / 2012, 23:27:06 »
I implemented it using a3300/a2200 as reference, searching for corresponding values using chdk-pt. But  a2200 is under development too, and the behavior of chdkptp with those special capture modes is the same. 
Code: [Select]
void *vid_get_viewport_live_fb()
{    return (void*)(*(int*)(0x20BC+0x134));             //ff8490f8 + ff849150 a2300
}
I'm confused about that values, it seems to be very specific for each DryOS release an camera models. Some post talks about brute force for find its value, others find values inside code.  I know that there is not a recipe, but could you give me a pointer of how to find that buffer?
Not anything better than the post by whoever that you linked. You should watch the value by displaying vid_get_viewport_live_fb in misc debug vals or something like that.  It should alternate through some addresses, inculding the one returned by vid_get_viewport_fb in the modes that work. As long as it doesn't return zero, then you know it's giving you valid addresses because live view isn't garbage. If it's zero in the working modes and non-zero in the broken modes, then it's just the wrong address.

Assuming it is actually working in those modes, one workaround would be to detect those modes and just return the vid_get_viewport_fb value when they are set. That would potentially make motion detection slower in those modes than a "correct" implementation.

Quote
Color of DISP text is different from camera LCD. See the image in attachment. Sometimes it is yellow, sometimes it is green... maybe related to wrong buffer address?
Even though your later comment seems to confirm that it is related to the viewport address, it really shouldn't be, the viewport is only read by CHDK and should be totally independent of the bitmap stuff. Of course, if the color is transparent then what's in the viewport under it will have some effect.
Don't forget what the H stands for.

Re: A2300 porting thread
« Reply #32 on: 18 / September / 2012, 10:19:19 »
Forgive me for being so forward on my first post, but I am working on a project (http://diybookscanner.org/) and I have access to some very resonably priced A2300s.

Before I get these, is the port likely to be in a good enough state to use for these cameras on my Project.

Thanks,

David.

*

Offline nafraf

  • *****
  • 1308
Re: A2300 porting thread
« Reply #33 on: 18 / September / 2012, 11:28:13 »
Forgive me for being so forward on my first post, but I am working on a project (http://diybookscanner.org/) and I have access to some very resonably priced A2300s.

Before I get these, is the port likely to be in a good enough state to use for these cameras on my Project.

Hi, I had a2300 b101 for a few weeks, and I ported as much as was possible.  It is possible to continue with porting, but to do that, It is necessary to have access to the firmware of your camera and people helping with tests.

« Last Edit: 18 / September / 2012, 11:42:36 by nafraf »


Re: A2300 porting thread
« Reply #34 on: 18 / September / 2012, 19:11:35 »
Forgive me for being so forward on my first post, but I am working on a project (http://diybookscanner.org/) and I have access to some very resonably priced A2300s.

Before I get these, is the port likely to be in a good enough state to use for these cameras on my Project.

Hi, I had a2300 b101 for a few weeks, and I ported as much as was possible.  It is possible to continue with porting, but to do that, It is necessary to have access to the firmware of your camera and people helping with tests.
For a book scanner,  I tend to suspect that all he needs is USB remote working ?
Ported :   A1200    SD940   G10    Powershot N    G16

Re: A2300 porting thread
« Reply #35 on: 20 / September / 2012, 06:18:22 »
Hi, yes All I need is
USB remote and the ability to change the naming convention on the cameras for the images, when they are saved.  I also need to automatically copy said images to pc, ans delete from sd card.  Thanks. david.

Re: A2300 porting thread
« Reply #36 on: 20 / September / 2012, 16:41:48 »
Hi, yes All I need is USB remote and the ability to change the naming convention on the cameras for the images, when they are saved.  I also need to automatically copy said images to pc, ans delete from sd card.  Thanks. david.
That's not going to be easy - there is no easy way to rename files on the camera or automatically download them.  You might be able to use chdkptp and some Lua scripting on the PC side but it won't be simple.

You may want to search this forum for "book scanners" as there have been several good threads on what other people have done.

Ported :   A1200    SD940   G10    Powershot N    G16

Re: A2300 porting thread
« Reply #37 on: 20 / September / 2012, 17:21:17 »
Thanks Waterwingz,

Where the downloading is concerned; if I can 'see' the contents of the SD card from the attached cameras, then I might be able to script it on the PC side.  However, I know nothing much at the moment.  But I am having fun getting my feet wet! :-)

Cheers,

David.


Re: A2300 porting thread
« Reply #38 on: 20 / September / 2012, 22:13:40 »
Where the downloading is concerned; if I can 'see' the contents of the SD card from the attached cameras, then I might be able to script it on the PC side.  However, I know nothing much at the moment.  But I am having fun getting my feet wet! :-)
Here's a couple of threads that might be of interest.

http://chdk.setepontos.com/index.php?topic=6231.0
http://chdk.setepontos.com/index.php?topic=6872.msg73360#msg73360
http://chdk.setepontos.com/index.php?topic=6859.msg73223#msg73223
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline nafraf

  • *****
  • 1308
Re: A2300 porting thread
« Reply #39 on: 20 / September / 2012, 22:27:14 »
In diy book scanner forum, there are some scripts for shooting and download
In this example, they are using a2200 + ptpcam + gphoto.
https://github.com/markvdb/diybookscanner/blob/master/misc/settings.md

@dkane, you can create your a2300 + chdptp solution

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal