Search found 877 matches
- 02 Feb 2024, 08:58
- Forum: Connectivity
- Topic: RevPi Connect: Zugriff über 2 Netzwerkkarten
- Replies: 7
- Views: 1768
Re: RevPi Connect: Zugriff über 2 Netzwerkkarten
Hi Christian, wenn du ohne extra Routen aus dem einem Netz auf einen bestimmten Port (z.B. vom Webinterface) eines Gerätes im Sensornetz zugreifen willst, würde ich mit Portweiterleitungen arbeiten. So aus dem Kopf: iptables -t nat -A PREROUTING -p tcp --dport 8080 -j DNAT --to-destination 192.168.0...
- 31 Jan 2024, 19:19
- Forum: CODESYS
- Topic: Problem with the new runtime
- Replies: 3
- Views: 2041
Re: Problem with the new runtime
Thanks for letting us know. Probably this will help other users upgrading.
Nicolai
Nicolai
- 31 Jan 2024, 19:18
- Forum: Software
- Topic: AIO missing decimal point
- Replies: 2
- Views: 344
Re: AIO missing decimal point
The value in process image is of type integer. Multiplier and Divisor are applied to the same integer feld, thus no decimals If you want to have a float value, I suggest to do the processing in your application.
Nicolai
Nicolai
- 31 Jan 2024, 14:02
- Forum: Software
- Topic: Real Time Output - Scripts
- Replies: 1
- Views: 297
Re: Real Time Output - Scripts
You get call piTest with `-1` and it will return asap the value has been printed. I guess the ~45 secs are result of your timer
- 30 Jan 2024, 21:30
- Forum: Software
- Topic: webpage password not working
- Replies: 9
- Views: 7962
Re: webpage password not working
The above posted /boot/config.txt gave it away: The dtoverlay=revpi-core is missing, so the device did not know which pins to connect to what. Thus nothing really will work (eg. piSerial which relies on the crypto chip). The overlay is usualy set during factory reset which you might omitted with the...
- 30 Jan 2024, 09:05
- Forum: Software
- Topic: webpage password not working
- Replies: 9
- Views: 7962
Re: webpage password not working
Hi
From which version did you upgrade to Bullseye and how?
Looks like the security chip is not initialized. Could you please share the content of dmesg and /boot/config.txt.
Nicolai
From which version did you upgrade to Bullseye and how?
Looks like the security chip is not initialized. Could you please share the content of dmesg and /boot/config.txt.
Nicolai
- 29 Jan 2024, 12:48
- Forum: RevPiModIO
- Topic: Incorrect Analog output when using RevPiModIO
- Replies: 7
- Views: 1405
Re: Incorrect Analog output when using RevPiModIO
Which version of revpimodio2 are you using? /etc/revpi/config.rsc should be a symlink to /var/www/pictory/projects/_config.rsc (on Stretch) or /var/www/revpi/pictory/projects/_config.rsc (on Buster and upwards). NOTE: Pictory version 1.4.7 is (very) outdated, thus you must be using an outdated versi...
- 29 Jan 2024, 12:43
- Forum: RevPiModIO
- Topic: AttributeError: can not find io 'HEATER_V'
- Replies: 8
- Views: 1326
Re: AttributeError: can not find io 'HEATER_V'
Try to set the wordorder import revpimodio2 rpi = revpimodio2.RevPiModIO(autorefresh=True) rpi.io.HEATER_V_HB.replace_io('heater_v', 'H', byteorder='little', wordorder='little') print("value=" + str(rpi.io.heater_v.value)) or import revpimodio2 rpi = revpimodio2.RevPiModIO(autorefresh=True...
- 26 Jan 2024, 14:35
- Forum: RevPiModIO
- Topic: AttributeError: can not find io 'HEATER_V'
- Replies: 8
- Views: 1326
Re: AttributeError: can not find io 'HEATER_V'
Looks like you're using an older image with python3, which does not support f strings. Try:
Code: Select all
import revpimodio2
rpi = revpimodio2.RevPiModIO(autorefresh=True)
rpi.io.HEATER_V_HB.replace_io('heater_v', 'H', byteorder='little')
print("value=" + str(rpi.io.heater_v.value))
- 25 Jan 2024, 21:22
- Forum: RevPiModIO
- Topic: AttributeError: can not find io 'HEATER_V'
- Replies: 8
- Views: 1326
Re: AttributeError: can not find io 'HEATER_V'
readprocimg is also mentioned in the link above. revpimodio2 provides the handy function replace_io, which can create an virtual IO based on the provided data type. In your example the definition would look something like this: import revpimodio2 rpi = revpimodio2.RevPiModIO(autorefresh=True) rpi.io...