Coder Social home page Coder Social logo

Comments (7)

giminni avatar giminni commented on June 12, 2024

BTW I use the latest pigpio daemon (64) if I use the node-red-pigpio node it works with the same
configuration (172.17.0.1:8888), therefore I assume it is a socket handling issue.

@guymcswain is there any workaround or mitigation?

from pigpio-client.

guymcswain avatar guymcswain commented on June 12, 2024

from pigpio-client.

guymcswain avatar guymcswain commented on June 12, 2024

from pigpio-client.

giminni avatar giminni commented on June 12, 2024

I connected GPIO pin11 and pin13 to a relay card. If I use node-red-contrib-pigpio I can successful toggle the relay. If I use your library I am unable to open or close the relay contact.

According to the debug list, I see no change of value (request/response shows the same bit array)

My question is the pigpioVersion correct?
Why I cannot toggle the relay writing 0 to pin11 or pin13?
Which settings are right?
Is handle=0 correct?
Do I need pipelining or other flags?
Is there a workaround for this?

from pigpio-client.

guymcswain avatar guymcswain commented on June 12, 2024

My question is the pigpioVersion correct?

Yes

Is handle=0 correct?

Yes. But this could also be any positive integer. It's what the OS returns as a file descriptor.

Do I need pipelining or other flags?

Pipelining settings should not matter to functionality. It is there more for convenience and possibly performance improvement.

Why I cannot toggle the relay writing 0 to pin11 or pin13?

Unknown. What you showed above should work. Are you connected to pins 23 (GPIO11) and 33 (GPIO13) on the Raspberry Pi 40 pin connector? Make sure you don't have SPI enabled as GPIO11 has alternate function as SPI_CLK.

from pigpio-client.

guymcswain avatar guymcswain commented on June 12, 2024

@giminni , please let me know if you need additional assistance, have abandoned pigpio-client or otherwise so that I may close this issue.

from pigpio-client.

giminni avatar giminni commented on June 12, 2024

@guymcswain
finally I found my error.

It was a bit misleading having myPin = GPIO, e.g. pin11 is GPIO(17).
Can you add some notes into your examples, this would reduce hunting bugs where there aren't.

Your library works perfectly, thank for helping me pointing into the right direction.

Keep up the work on this library!

from pigpio-client.

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.