Go to advanced search

by stefanoxjx
Sat Mar 17, 2018 7:45 am
Forum: Italiano
Topic: Raggiungere raspberry tramite nome...
Replies: 8
Views: 989

Re: Raggiungere raspberry tramite nome...

Ciao, ho avuto modo di verificare e sulla lista degli indirizzi assegnati dal dhcp appare il nome della rasp, quindi direi che non è un problema di router. Secondo me è una qualche sorta di servizio da far partire sulla rasp. Ti dirò di più, qui ho anche un PC con debian e anche questo se provo a pi...
by stefanoxjx
Fri Mar 16, 2018 9:39 am
Forum: Italiano
Topic: Raggiungere raspberry tramite nome...
Replies: 8
Views: 989

Re: Raggiungere raspberry tramite nome...

Ti ringrazio per i consigli.
Appena ho possibilità faccio un po' di prove.

Stefano
by stefanoxjx
Wed Mar 14, 2018 9:00 pm
Forum: Italiano
Topic: Raggiungere raspberry tramite nome...
Replies: 8
Views: 989

Re: Raggiungere raspberry tramite nome...

Si, ho usato raspi-config.
Sotto Network configuration c'è la voce Hostname.
La rete è già abilitata a questo, perchè i PC (windows) collegati in rete se li pingo tramite il loro nome rispondono.

S
by stefanoxjx
Wed Mar 14, 2018 8:38 pm
Forum: Italiano
Topic: Raggiungere raspberry tramite nome...
Replies: 8
Views: 989

Re: Raggiungere raspberry tramite nome...

E' il nome assegnato durante l'installazione.
Per capirci, quello che viene fuori quando apri una console:
by stefanoxjx
Tue Mar 13, 2018 10:58 am
Forum: Italiano
Topic: Raggiungere raspberry tramite nome...
Replies: 8
Views: 989

Raggiungere raspberry tramite nome...

Ciao a tutti, ho una raspberry che è configurata con ip dinamico. Avrei necessità di raggiungerla tramite il nome assegnatole e non tramite l'ip che essendo dinamico può cambiare. Però se provo a pingarla con il comando "ping myrasp" che è il nome assegnato alla raspberry, non me la trova: ping: unk...
by stefanoxjx
Sat Oct 28, 2017 9:49 pm
Forum: C/C++
Topic: Launch program as root from www-data
Replies: 8
Views: 1730

Re: Launch program as root from www-data

Many thanks for info.
I will try python library.

I've seen MQTT and it is very interesting :)

Stefano
by stefanoxjx
Sat Oct 28, 2017 8:53 pm
Forum: C/C++
Topic: Launch program as root from www-data
Replies: 8
Views: 1730

Re: Launch program as root from www-data

WiringPi programs don't need sudo unless they're using some of the extremely specialist functions. Read the rules here: http://wiringpi.com/wiringpi-update-to-2-29/ I know. SPI doesn't need root privileges. Just add the www-data userid to the spi group. sudo useradd -G spi www-data; sudo systemctl ...
by stefanoxjx
Sat Oct 28, 2017 8:24 pm
Forum: C/C++
Topic: Launch program as root from www-data
Replies: 8
Views: 1730

Re: Launch program as root from www-data

I've a program that use wiringPi and it request root privileges.
I know that exist a method to bypass this problem, but I've another program (don't written from me) that use rifd module wired in SPI and it request root privileges.
This two program are called from php page.

Stefano
by stefanoxjx
Sat Oct 28, 2017 7:22 pm
Forum: C/C++
Topic: Launch program as root from www-data
Replies: 8
Views: 1730

Re: Launch program as root from www-data

Hi, and thanks for your answer. In this case, the security is not a big problem because this server don't exposed to internet but it only run on my home network and only I and my family use it. I don't know MQTT but what do you think about suphp? Thanks. Stefano (I will search to learn more about MQ...
by stefanoxjx
Sat Oct 28, 2017 6:00 pm
Forum: C/C++
Topic: Launch program as root from www-data
Replies: 8
Views: 1730

Launch program as root from www-data

Hi, I'm using raspbian.
I wrote a program in C and I need to run it from a php page.
The problem is that php launches the program from user www-data and program requires root privileges to work..
Is possible resolve this issure?
Excus me for my bad english.
Thanks.

Best regards.

Stefano
by stefanoxjx
Sat Oct 07, 2017 2:13 pm
Forum: Troubleshooting
Topic: i2c don't recognize pheripheral...
Replies: 11
Views: 977

Re: i2c don't recognize pheripheral...

Solved!!!
I've two defective rpi.
With rpi of my friend all work fine.
Many thanks for help and patient.

Stefano
by stefanoxjx
Sat Oct 07, 2017 1:12 pm
Forum: Troubleshooting
Topic: i2c don't recognize pheripheral...
Replies: 11
Views: 977

Re: i2c don't recognize pheripheral...

I don't understand. I have tested all wired pins and these are ok. I've wired: +3.3V to PIN17 (PIN1 don't provide any voltage in all my rpi) SDA to PIN3 SCL to PIN5 GND to PIN6 Is it correct? Now I've tried with pullup resistors too, but nothing to do. In system message I've seen this error: [ 4.911...
by stefanoxjx
Fri Oct 06, 2017 11:23 pm
Forum: Troubleshooting
Topic: i2c don't recognize pheripheral...
Replies: 11
Views: 977

Re: i2c don't recognize pheripheral...

I've modified config.txt but the result is the same. - i2cdetect don't recognize any perpheral. - The module loaded is: Module Size Used by appletalk 31421 0 psnap 2787 1 appletalk llc 5903 1 psnap ax25 63043 0 joydev 9988 0 evdev 12423 2 rtc_pcf8563 7056 0 hid_logitech_hidpp 20558 0 hid_logitech_dj...
by stefanoxjx
Fri Oct 06, 2017 7:38 pm
Forum: Troubleshooting
Topic: i2c don't recognize pheripheral...
Replies: 11
Views: 977

Re: i2c don't recognize preipheral...

Sorry, I forgot to tell you that I've tried with pullup resistors too (2,2K), but without results.
This is the board: https://it.aliexpress.com/item/5pcs-lot ... 0.0.h5Ac8h

Stefano
by stefanoxjx
Fri Oct 06, 2017 7:28 pm
Forum: Troubleshooting
Topic: i2c don't recognize pheripheral...
Replies: 11
Views: 977

Re: i2c don't recognize preipheral...

Hi guys, I've a problem with i2c bus. I need to use RTC PCF8563 module on PI3. I've activating i2c interface and added to /etc/modules "i2c-bcm2835, i2c-dev and rtc-pcf8563, but when I run i2cdetect -y 1 no peripheral is found. 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- --...
by stefanoxjx
Fri Oct 06, 2017 7:17 pm
Forum: Troubleshooting
Topic: i2c don't recognize pheripheral...
Replies: 11
Views: 977

Re: i2c don't recognize preipheral...

DirkS wrote:
Fri Oct 06, 2017 6:08 pm
Unless you're running Raspbian Wheezy you're using antiquated instructions.
The 'modern' way is to use a device tree overlay.
So you enable i2c and then add a line to /boot/config.txt:

Code: Select all

dtoverlay=i2c-rtc,pfc8563
and reboot
I tried this way too but didn't work.
by stefanoxjx
Fri Oct 06, 2017 5:49 pm
Forum: Troubleshooting
Topic: i2c don't recognize pheripheral...
Replies: 11
Views: 977

i2c don't recognize pheripheral...

Hi guys, I've a problem with i2c bus. I need to use RTC PCF8563 module on PI3. I've activating i2c interface and added to /etc/modules "i2c-bcm2835, i2c-dev and rtc-pcf8563, but when I run i2cdetect -y 1 no peripheral is found. 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- ...
by stefanoxjx
Fri Oct 06, 2017 3:20 pm
Forum: Italiano
Topic: RPI non rileva periferiche i2c
Replies: 1
Views: 323

RPI non rileva periferiche i2c

Ciao a tutti, sto cercando di collegare un modulo RTC PCF8563 alla raspberry pi 3. Ho attivato l'interfaccia i2c e messo su /etc/modules i moduli i2c-bcm2835, i2c-dev e rtc-pcf8563 , ma quando vado a lanciare il comando i2cdetect -y 1 non trova nulla: 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- ...
by stefanoxjx
Tue Dec 13, 2016 1:45 pm
Forum: Italiano
Topic: [C++]Problema conversione numero...
Replies: 2
Views: 516

Re: [C++]Problema conversione numero...

Ciao e grazie per la risposta. Premetto che non ho ancora provato la tua soluzione che comunque sono sicuro che funzionerà. Nel frattempo per risolvere il problema mi sono scritto una funzione che converte da decimale a esa. Avevo intuito anch'io che il problema fosse quello che hai detto tu, ma dav...
by stefanoxjx
Wed Dec 07, 2016 7:25 am
Forum: Italiano
Topic: [C++]Problema conversione numero...
Replies: 2
Views: 516

[C++]Problema conversione numero...

Ciao a tutti, ho un problema nella conversione da stringa (numero esadecimale) a intero. Nello specifico, questa riga di codice: int64_t code=stol(rfidCode, nullptr, 16); convertendo questo numero: 0x0500378373, mi genera il seguente errore: terminate called after throwing an instance of 'std::out_o...
by stefanoxjx
Wed Oct 19, 2016 7:44 pm
Forum: General discussion
Topic: Raspbian: Caputure program output...
Replies: 6
Views: 744

Re: Raspbian: Caputure program output...

Sigh!!! This is the command line that launch the program: /root/servertelnet >/home/stefano/server.log 2>&1 &
I need to deepen systemd

Stefano
by stefanoxjx
Wed Oct 19, 2016 7:28 pm
Forum: General discussion
Topic: Raspbian: Caputure program output...
Replies: 6
Views: 744

Re: Raspbian: Caputure program output...

Hi and thanks for help. I made a mistake during creation of post. The correct command that I used is /home/xxx/program 2>&1 >program.log & . Seeing that this command didn't work I've tried the command suggested from dasmanul, but without success :( The output redirection with same program, compiled ...
by stefanoxjx
Wed Oct 19, 2016 5:00 pm
Forum: General discussion
Topic: Raspbian: Caputure program output...
Replies: 6
Views: 744

Raspbian: Caputure program output...

Hello guys, I've a program wrote in C that start at boot in background. This program have an output generated from printf command. Can I capture output of it? I tried to launch the programs by command "/home/xxx/program 2>&1 program.log &" but program.log is always empty :( Can you help me? Thanks. ...

Go to advanced search