Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hi704 sensor #9

Open
Apache02 opened this issue Dec 8, 2023 · 9 comments
Open

hi704 sensor #9

Apache02 opened this issue Dec 8, 2023 · 9 comments

Comments

@Apache02
Copy link

Apache02 commented Dec 8, 2023

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.

@Apache02
Copy link
Author

Apache02 commented Dec 8, 2023

@Apache02
Copy link
Author

I have 2 boards:

I draw a pinout of HI704 connector from V720, it uses i2c1 from bk7252.
I made a dump of app section from 365cam, according to logs it connected to i2c2. So i found a place in firmware where camera inited, found calling to i2c2 device, change it to i2c1, applied encrypt_crc to modified dump and flash it to V720. Logs to uart2 is not working, but dump i have dump from i2c1.

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

@Alvid81
Copy link

Alvid81 commented Dec 10, 2023

https://wiki.bekencorp.com/pages/viewpage.action?pageId=23692262 Maybe this can help you. Also, if you havent logs at uart2 - i2c2 is working...

@Alvid81
Copy link

Alvid81 commented Dec 11, 2023

@Apache02
Copy link
Author

@Alvid81 thx for bekencorp/armino. Implementation of cameras looks useful.
list of supported cameras:

const dvp_sensor_config_t *dvp_sensor_configs[] =
{
	&dvp_sensor_gc0328c,
	&dvp_sensor_hm1055,
	&dvp_sensor_gc2145,
	&dvp_sensor_ov2640,
	&dvp_sensor_gc0308,
	&dvp_sensor_SC101,
};

I can't open https://wiki.bekencorp.com/pages/viewpage.action?pageId=23692262 . Chinese server blocks my ip and vpn's ip.

@Alvid81
Copy link

Alvid81 commented Dec 11, 2023

Me too, maybe some tech issues.

@Alvid81
Copy link

Alvid81 commented Dec 11, 2023

BK7256 looks seems to BK7252, but bk7252 is ARM and BK7256 is RISC-V.. although the principles are general to both.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants