Git Product home page Git Product logo

Comments (8)

Munsio avatar Munsio commented on July 30, 2024

found out i forgot something about editing the rfd.conf so i changed it to this:

[Interface 0]
Type = CCU2
ComPortFile = /dev_org/ttyAMA0
AccessFile = /dev/null
ResetFile = /sys_org/class/gpio/gpio18/value

i dont know why but everytime i start the container the lines AccesFile and ResetFile get modified with an # before.

And still the same error

from docker-ccu.

Munsio avatar Munsio commented on July 30, 2024

The # are added in the entrypoint.sh.
Then i figured out that you are mapping /dev_org/ttyAMA0 to /dev/mmd_bidcos so i changed the ComPortFile to /dev/mmd_bidcos but still no luck.

Could it be that i roasted something during soldering?

from docker-ccu.

omo2002 avatar omo2002 commented on July 30, 2024

same thing with the latest image from https://hub.docker.com/r/angelnu/ccu2/.
I don't think it is a hardware problem.
I have an elder docker ccu2 image which works. What I found out:

with the working container I can do this successfully:
echo "0" > /sys/class/gpio/gpio18/value
and the value really changes

doing this with the latest image I get:
sh: can't create /sys/class/gpio/gpio18/value: Read-only file system

Any ideas ?

from docker-ccu.

omo2002 avatar omo2002 commented on July 30, 2024

update:
having written my prevoius comment, I tried to do
echo "0" > /sys_org/class/gpio/gpio18/value
and it worked.

So I changed the entrypoint.sh and tried again, without success.
Problem seems to be rfd, which starts correct now (after the change), but dies after some seconds.

from docker-ccu.

angelnu avatar angelnu commented on July 30, 2024

Hi,

with the new docker image you need additional binds in the docker compose file for sys and dev. Mine looks like this:

ccu2:
image: angelnu/ccu2
volumes:
- /media/glusterfs/ccu2:/mnt
- /dev:/dev_org
- /sys:/sys_org
environment:
- PERSISTENT_DIR=/mnt
- CHECK_PERSISTENT_DIR=y
hostname: ccu2
networks:
ccu2:
#ipv4_address: 10.5.0.5
aliases:
- ccu2
ports:
- 8080:80
- 2001:2001
deploy:
placement:
constraints:
- node.labels.architecture == arm

from docker-ccu.

angelnu avatar angelnu commented on July 30, 2024

If you want to build the docker image yourself you need to install python-lzo on your system. Usually this should be handled by build.sh but I guess it does not work on your OS.

build.sh contains:
python -mplatform | grep -qi Ubuntu && apt-get update && apt-get install python-lzo || true python -mplatform | grep -qi ARCH && apt-get update && pip2 install python-lzo || true

So what is the output from python -mplatform on your system?

from docker-ccu.

angelnu avatar angelnu commented on July 30, 2024

@Munsio could you please let me know what do you get on your system when you execute "python -mplatform" ? Without this I do not know why lzo did not get installed.

from docker-ccu.

Munsio avatar Munsio commented on July 30, 2024

we can close this issue i'm using the official raspbian instead hypriotOS and i don't want to build the image cause you provided a new one

from docker-ccu.

Related Issues (20)

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.