Comments (7)
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.
from pigpio-client.
from pigpio-client.
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.
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.
@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.
@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)
- Process exits silently ... HOT 1
- Make hardware PWM work HOT 1
- Network error not handled HOT 55
- Error using waveform HOT 11
- I2C support HOT 24
- lower timeout - for connection monitor HOT 2
- AssertionError [ERR_ASSERTION]: Argument 'gpio' is not a user GPIO. HOT 7
- Notifications not working after network disconnect then reconnect. HOT 21
- can't set up pulldown resistor HOT 8
- make install error HOT 1
- Latest Installation Unit File In Git Is Wrong HOT 3
- SPI functionality HOT 10
- gpio.waveAddSerial() only supports 1 stop bit.
- Notify on only one edge HOT 10
- Can't use more than 11 pigpio.gpio() HOT 5
- Timing issues with pigpio-client HOT 1
- Correct way to destroy the instance? HOT 1
- writing and running pigpiod scripts? HOT 4
- i2c full features HOT 2
- timeout on first connect
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pigpio-client.