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

Mqtt client on firmware 4.0.7? #59

Open
Rikbruggink opened this issue Nov 15, 2021 · 11 comments
Open

Mqtt client on firmware 4.0.7? #59

Rikbruggink opened this issue Nov 15, 2021 · 11 comments

Comments

@Rikbruggink
Copy link

Hi,

I got root and telnet activated on 4.0.7 version with board

"devname": "Smart Home Camera",
"model": "Bell 8S",
"serialno": "*********",
"softwareversion": "4.0.7",
"hardwareversion": "BE8S_A2_V10_433",
"firmwareversion": "ppstrong-a3-tuya2_general-4.0.7.20210513",

but when i want to start mosquitto_pub from #4 it is core dumping on the sd card. Any pointers how to proceed?

/dev # cat /proc/cpuinfo
Processor : ARM926EJ-S rev 5 (v5l)
BogoMIPS : 199.06
Features : swp half fastmult edsp java
CPU implementer : 0x41
CPU architecture: 5TEJ
CPU variant : 0x0
CPU part : 0x926
CPU revision : 5

Hardware : CLOUD39EV3_AK3918EV300_MNBD
Revision : 0000
Serial : 0000000000000000

@guino
Copy link
Owner

guino commented Nov 15, 2021

@Rikbruggink looks like the mosquitto_pub we have is compiled for arm v7l -- your processor is arm v5l (older) so it is likely crashing because of that.

I am not the person who built/provided the existing mosquitto_pub tool, so your options are:
1-Download sources and compile the mosquitto_pub for arm v5l (using a cross compiler for uclibc)
OR
2-Try to find an alternate mosquitto_pub binary compiled for arm v5l (uclibc)
OR
3-Use an alternate way for notification (i.e. http with wget using the busybox provided)

You could potentially use http+wget (option 3) to any existing computer/device on your network where you have mosquitto_pub by creating a service to run mosquitto_pub to whatever you need.

@Rikbruggink
Copy link
Author

@guino Thanks for the feedback, i figured the pub client was compiled for armv7 found a pull on the Merkury1080P but that also seems for the armv7 toolchain. He/SHE als posted a post script for webhooks. Will look into that. Will let you know the progress here.

@pjeterinfo
Copy link

@Rikbruggink how does your env file look like? I have the same hardware/software revision but doesn't get the device rooted.

@guino
Copy link
Owner

guino commented Jan 16, 2022

@pjeterinfo most of the time when the root process fails is because of the SD card brand/model or format. You should try to format it with the app, linux, windows and see if it helps. You should definitely try other cards but same brand/model will not make much of a difference so you should try different brand/models to see if it helps.

Feel free to post a zip of your SD card files and I can review them.

@pjeterinfo
Copy link

env.zip
@guino see attached zip file.

@guino
Copy link
Owner

guino commented Jan 17, 2022

@pjeterinfo your files look fine -- your issue is most likely due to SD card brand/model or format. Please note the brand/model and format is most important for the boot loader during the rooting process and after that you can probably use the SD cards that are not working right now. It is also worth pushing the reset button during normal operation (no SD card) to make sure it actually does something -- if the reset button isn't working hardware side it won't work during step 5 of #13

@pjeterinfo
Copy link

@guino thx for checking, the reset button is working normally. I will try other sd cards.

@kruithofm
Copy link

@Rikbruggink Did you find or compiled a mosquitto client for v5l? I have the same camara and also want to use mosquitto_pub.
If you have a working one...
Thanks in advance.

@guino
Copy link
Owner

guino commented Jan 27, 2022

@kruithofm @Rikbruggink I was able to make this work with homebridge (armv5 compatible):

https://github.com/guino/BazzDoorbell/blob/master/mmc/mqtt_pub?raw=true

/mnt/mmc01 # ./mqtt_pub 
Usage: mqtt_pub address port topic message
/mnt/mmc01 # ./mqtt_pub 10.10.10.92 1883 home/doorbell detected
./mqtt_pub done publishing to 10.10.10.92

I did not do a lot of testing but if it works for you let me know and I can post sources and binaries in the repo.

@kruithofm
Copy link

It's working perfectly for me. This is all I need for the log_parser.
Thanks a lot

@guino
Copy link
Owner

guino commented Jan 27, 2022

@kruithofm thanks for testing and reporting back.

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

4 participants