@crispyoz thanks a lot again.
I'll post the result here after executing the above code.
@crispyoz thanks a lot again.
I'll post the result here after executing the above code.
@crispyoz OK, I got it.
I'll proceed it.
I want to make the code that publish/subscribe using SSL/TLS(mosquitto).
anyone know that, please let me know.
thanks.
@crispyoz thanks for your advice.
Do you know anything about sites or codes to refer to for SSL?
if you know that, let me know.
@crispyoz First of all, I would like to express my deep gratitude for your interest.
I am even more grateful for your sincere help with my poor English skills.
I found the reason for the error.
Linux for cross-compile was executed on a virtual environment in Windows. (like VMware s/w)
However, an error occurred due to the lack of size given to Linux.
It was found that size of at least 30G or more was required when the installation was performed in the above way.
I succeeded to execute the simple mqtt code.
Once again, I want to say thank you so much.
I hope this article helps others when they have similar problems.
So I want to modify the title of this article to more appropriate,
so please advise if there is a title to recommend.
Thanks to you, I am so grateful to solve this problem.
@crispyoz thanks for your reply again.
I got a late answer because this community site went down.
As a result of the above method you told me, I finally found the libmosquitto in menu>libraries.
thanks again.
but, I had an error during making the build system.
error : recipe for target 'world' failed
so, I'm trying to run the command('make j1 V=s') to see the exact error.
if I succeed with the simple mqtt code, I'll post it to you.
@crispyoz Thank you for your consideration.
I'd like to install the libmosquitto. but, there is not libmosquitto in Libraries tap.
so, I checked the feeds.conf file in the /source folder for verifying OpenWrt version.
list of feeds.conf file
src-git packages https://git.openwrt.org/feed/packages.git;openwrt-18.06
src-git luci https://git.openwrt.org/project/luci.git;openwrt-18.06
src-git routing https://git.openwrt.org/feed/routing.git;openwrt-18.06
src-git telephony https://git.openwrt.org/feed/telephony.git;openwrt-18.06
src-git onion https://github.com/OnionIoT/OpenWRT-Packages.git;openwrt-18.06
contents of build_info.json
version: 0.3.3
build: 251
Can I get the new version of build system?
or should I install the mosquitto package manually?
thanks.
@crispyoz thanks for the reply.
yes, I want to make a C program that can publish/subscribe to topics.
I had build system installed on ubuntu18.04(ubuntu).
and I succeeded in printing 'hello world' on omega2.
I installed the package of mosquitto and libmosquitto-dev on ubuntu.
(apt-get install mosquitto libmosquitto-dev)
mosquitto version : 2.0.14
mosquitto command list : mosquitto, mosquitto_pub(sub), mosquitto_passwd etc.
so I have found the mosquitto.h in '/usr/include/mosquitto.h'
but, there isn't mosquitto.h file in the folder related to 'mipsel-openwrt-linux'.
(ex, /home/source/build_dir/toolchain-mipsel_24kc_gcc-7.3.0_musl/gcc-7.3.0/../../include/mosquitto.h)
if I want to complie the c code with mosquitto function, mosquitto.h file have to be in the folder related 'mipsel-openwrt-linux'? is it right?
or is it possible, I can compile the c code with mosquitto using '/usr/include/mosquitto.h'?
if there is anything I misunderstood, please let me know.
I'm going to review the site you linked.
once again, thank you for your answer.
@crispyoz thanks for the reply.
I understood your intention of the previous reply.
I would like to handle the command according to the receiving messages I received.
so I would like to compile it in c language and put it in omega2.
(like esp32/8266 mqtt communication way)
thanks.
add :
The main question is, did anyone succeed in compiling the mosquitto code into the c language for omega2?
I want to compile the mosquitto code in c language for omega2.
thanks.
@crispyoz thanks for the reply.
I had an error that : mosquitto.h: No such file or directory.
so I think, I need to install the compiling package of mosquitto for omega2.
I don't understand, what's mean 'modify the mosquitto code'?
cross compile environment : ubuntu 18.04
using device : omega2
If anyone knows how to do it, please let me know.
thanks.
addition question,
Is there storing the file of the option of the kernel in omega2?
Thanks for replying.
but, I don't know to use the kernel_menuconfig.
I have executed 'make kernel_menuconfig' but I don't know how to use this command in order to make version b200 of the kernel.
I've searched for using and meaning kernel_menuconfig. but I didn't get the proper information.
what I want to know is how to config version b200 of the kernel option.
Is it the file that includes the option information of kernel in omega2?)
Hi.
I want to know the option of version b200(and b193) of build kernel.
what It's mean is,
I've created firmware for the omega2 using this site(https://github.com/OnionIoT/source).
and I went into the 'make menuconfig'.
but I didn't know to check or do not check the option for b200 and b193.
because I want to customize the firmware using the option in the menuconfig.
so what do I have to do to make the version b200(and b193) of build kernel?
please let me know.
Thanks.
thanks for your reply.
when I executed the i2cdetect command with b187 version, it output the below picture.
but, the omega with b201 version was running correctly(address 0x08 was printed).
so I have 3 questions.
first, why did it print the above picture?
omega2 is wrong? or only I2C function is wrong?
2nd, where can I get the firmware b187 or b194?
onion's repo site don't have a old firmware.
I have a one omega2 with the firmware b187.
so I can't test the other omega2 with the same firmware.
3rd, anyone have did to record with I2S(using the arecord command)?
addition question,
Anyone record with omega2 using alsa util(arecord)?
Dit it work?
in my case, aplay command have worked.(do not output the sound.)
but, arecord command have not worked and it occurred an error.(and did to reboot)
let me know the this situation.
I have a omega2 of version b187, b201.
b187 don't have the function of I2C.
b201 don't have the function of I2S.
I need the both function(I2C, I2S).
Do you know(have) firmware that have the I2C and I2S.
please, let me know If anyone have the firmware of the above features.
thanks.
I installed the libspeex, not libspeexdsp.
but opkg do not have a libasound2.
and pulseaudio daemon didn't start.
has anyone succeeded in executing the pulseaudio?
Or anyone has the reference information about pulseaudio in omega2?
thanks.
I'm appreciate of your help.
I understood above.
thank you again.