Giter Club home page Giter Club logo

beken7252-opencam's Introduction

beken7252-opencam's People

Contributors

daniel-dona avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

beken7252-opencam's Issues

wifi ap mode problems

  1. Related to dhcp server. Configured ip become 255.255.255.255 and its cant be actual IP address. I have a solution, but i dont like it
    Apache02@318c63d
  2. My Android phone can't connect to this AP.
    My Linux PC can connect but there is a bug in dmesg:
[197018.704406] wlp2s0: associate with c8:47:8c:57:55:d4 (try 1/3)
[197018.706839] wlp2s0: RX AssocResp from c8:47:8c:57:55:d4 (capab=0x421 status=0 aid=1)
[197018.706849] wlp2s0: AP bug: WMM param missing from AssocResp
[197018.708310] wlp2s0: associated

scons: *** [rtthread.elf] Error 1

LINK rtthread.elf
/tools/gcc/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/bin/ld: address 0x140db2 of rtthread.elf section .rodata' is not within region flash'
/tools/gcc/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/bin/ld: rtthread.elf section .opus.low.data' will not fit in region flash'
/tools/gcc/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/bin/ld: address 0x1417f2 of rtthread.elf section .rodata' is not within region flash'
/tools/gcc/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/bin/ld: address 0x1417f2 of rtthread.elf section .rodata' is not within region flash'
/tools/gcc/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/bin/ld: region `flash' overflowed by 21628 bytes
collect2: error: ld returned 1 exit status
scons: *** [rtthread.elf] Error 1
scons: building terminated because of errors.

scons: *** No SConstruct file found.

Hi, I have a problem with the installation:


docker run -v$(pwd)/project:/build bk7252-builder
Building BK7252 project...

scons: *** No SConstruct file found.
File "/tools/scons/bin/../engine/SCons/Script/Main.py", line 940, in _main

scons: *** No SConstruct file found.
File "/tools/scons/bin/../engine/SCons/Script/Main.py", line 940, in _main


thank you and greetings,
VC

Project purpose

Could you please describe the goal you are trying to achieve with this project?

In my case, my first goal has been trying to figure out how to upload the minimum code with my network configuration hard-coded in it (rtthread) so the camera streams to a specific (local) IP address just when powering it up. No extended features like button support, SD card support, etc.). I would call this the "basecode" for all other sorts of improvements.

flashing procedure / unbricking

Hi Daniel,
Thank you for your effort on beken7252-opencam
Could please share (on few lines) the procedure to unbrick a BK7252 ?
I've erased accidentally the chip so no logs are visible in the serial console anymore

Other type of PCB for A9 mini camera.

I am trying to recover the bootloader of this mini camera.

Reading the BK7252 datasheet I found that it is possible to transfer data through its peripheral or SDIO controller. The BK7252 SDIO (secure digital input/output) controller supports master and slave modes. It can operate at clock speeds up to 50 MHz, which is suitable for high-speed data transfers.

The SDIO controller has two modes of operation:

  Master Mode: In this mode, the BK7252 SDIO controller acts as a master device, initiating data transfers and communicating with external devices such as SD cards. In this mode, the BK7252 can read data from or write data to an external SD card.
  Slave Mode: In this mode, the BK7252 SDIO controller acts as a slave device and responds to commands from an external host. In this mode, the BK7252 can be used to communicate with external hosts, such as a computer or other microcontroller.

The SDIO controller supports four data widths: 1-bit, 4-bit, and 8-bit modes. 1-bit mode is the lowest speed mode, while 4-bit mode is the highest speed mode. 8-bit mode is not supported by the BK7252 SDIO controller.

The SDIO controller in the BK7252 has a dedicated DMA (Direct Memory Access) channel. This DMA channel can operate at high speeds without loading the main microcontroller (MCU). This ensures fast and efficient data transfers between the BK7252 SDIO controller and external devices or hosts.

Below is an example of how to configure the SDIO controller in master mode:

void sdio_master_init(void)
{
    uint32_t reg_val;

    /* Enable SDIO clock */
    reg_val = BL_RD_REG(GLB_BASE, GLB_CLK_CFG0);
    reg_val |= (1 << 16);
    BL_WR_REG(GLB_BASE, GLB_CLK_CFG0, reg_val);

    /* Configure SDIO as master */
    reg_val = BL_RD_REG(SDIO_BASE, SDIO_CTRL);
    reg_val &= ~(1 << 0);
    BL_WR_REG(SDIO_BASE, SDIO_CTRL, reg_val);

    /* Configure SDIO clock speed */
    reg_val = BL_RD_REG(SDIO_BASE, SDIO_CLK_CTRL);
    reg_val &= ~(0x7 << 0);
    reg_val |= (0x4 << 0); // 50 MHz
    BL_WR_REG(SDIO_BASE, SDIO_CLK_CTRL, reg_val);

    /* Enable SDIO clock */
    reg_val = BL_RD_REG(SDIO_BASE, SDIO_CLK_CTRL);
    reg_val |= (1 << 8);
    BL_WR_REG(SDIO_BASE, SDIO_CLK_CTRL, reg_val);
}

In this example, the SDIO controller is configured as a master device, with a clock speed of 50 MHz. The SDIO controller is then enabled to start processing data transfers.

Espero te ayude y me ayudes...

IMG_20240205_113647

IMG_20240205_113727

IMG_20240205_113547

another A9 camera pictures

Please find here some picture of another A9 camera buy some month ago on aliexpress. the reference is a BK7252UQN68

20231201_232122
20231201_232835
20231201_232319
20231201_232350

hi704 sensor

I'm sure that 2 of my cameras use uses sensor HYNIX hi704 (i've test 2 sensors on one camera - both works). Current source code don't have hi704 support. As I see the only thing required is i2c initialization. So i tried to monitor i2c pins connected to camera using https://github.com/jjsch-dev/pico_i2c_sniffer . I tried this couple times and result always the same:

https://gist.github.com/Apache02/089760cbc51f2c4add65b92265d07e27#file-hi704_i2c_dump-txt

i2c address multiplied by 2 in this log.

hi704 i2c address is 0x30

init_table: https://gist.github.com/Apache02/089760cbc51f2c4add65b92265d07e27#file-camera_intf-h

I tried to use it, but according to sniffer somthing broken with i2c1 driver.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.