Go to advanced search

by danjperron
Thu Feb 20, 2020 9:22 pm
Forum: Beginners
Topic: Reboot on 169 address
Replies: 11
Views: 401

Re: Reboot on 169 address

by danjperron
Tue Feb 18, 2020 5:02 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Raspberry / CAN network - MCP2515/TJA1050
Replies: 4
Views: 366

Re: Raspberry / CAN network - MCP2515/TJA1050

viewtopic.php?f=41&t=2298&hilit=canbus& ... 0#p1407581


This explain how to connect the MCP2515 at 3.3V and then MCP2551 at 5V.
by danjperron
Tue Feb 11, 2020 4:49 pm
Forum: Troubleshooting
Topic: Cannot connect to SMB hosted on a Pi2 from Windows machines (Android devices working fine)
Replies: 11
Views: 320

Re: Cannot connect to SMB hosted on a Pi2 from Windows machines (Android devices working fine)

You don't need both "browseable =" and "public = " they mean the same thing. Yes you are correct. This is why I hate when a lot of terms have the same meaning. You don't remember which one are the same meaning. like read only =no , writable, writeable, etc...... I made the test in 5 minutes of my t...
by danjperron
Tue Feb 11, 2020 2:06 am
Forum: Troubleshooting
Topic: Cannot connect to SMB hosted on a Pi2 from Windows machines (Android devices working fine)
Replies: 11
Views: 320

Re: Cannot connect to SMB hosted on a Pi2 from Windows machines (Android devices working fine)

Is it for multiple users or a single one ? If you have mutliple guest users and you don't want a password then you need to set the smb.conf with the guest ok and the guest account. Something like [share1] comment = public for all path = /usr/data/share1 browseable = yes writeable = yes guest ok = tr...
by danjperron
Thu Feb 06, 2020 7:38 pm
Forum: Troubleshooting
Topic: Cannot connect to SMB hosted on a Pi2 from Windows machines (Android devices working fine)
Replies: 11
Views: 320

Re: Cannot connect to SMB hosted on a Pi2 from Windows machines (Android devices working fine)

Is your smb share is SMB 1.0 ?

Try to enable SMB1 on your windows client.

On windows search type "windows feature" .

Enable SMB 1.0 /CIFS file sharing support.


Did you set the smb user password?
by danjperron
Thu Jan 30, 2020 7:32 pm
Forum: Networking and servers
Topic: keep ssh alive
Replies: 11
Views: 716

Re: keep ssh alive

If you are using putty there is a keep alives fonction. This will send a null packet every n second.


keepalives.png
keepalives.png (18.74 KiB) Viewed 650 times
And on the PI maybe just try to ping to your desktop using crontab.

*** Add=on maybe pinging to the router will be best.
by danjperron
Sun Jan 26, 2020 11:51 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: SPI interface C code
Replies: 2
Views: 249

Re: SPI interface C code

Yes it is way simpler to use the dtoverlay but if you want code without installing the driver there it is it's my modified version from mcp3008. #include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <fcntl.h> #include <sys/ioctl.h> #include <linux/spi/spidev.h> #define SPI_SPEED 100000...
by danjperron
Sun Jan 26, 2020 3:31 pm
Forum: Français
Topic: Projet RFID possible ?
Replies: 4
Views: 255

Re: Projet RFID possible ?

Juste pour bien comprendre, quand les membres du club vont scanner leur badge, c'es tdans une bdd sql que les infos vont se compiler ?
Exactement. La base de donnée permet de reconnaître et de logger.
by danjperron
Tue Jan 21, 2020 7:24 pm
Forum: Troubleshooting
Topic: Unable to change GPIO physical pin 16 to high on Raspberry Pi 4 Model B
Replies: 2
Views: 224

Re: Unable to change GPIO physical pin 16 to high on Raspberry Pi 4 Model B

Not too much information about how do you change the GPIO BCM23 ? Are you changing the GPIO pin using hardware voltage and this is why you specified the GPIO to be in INPUT mode ? If you want to change the GPIO BCM 23 by software it needs to be an output! #!/usr/bin/python3 import sys import RPi.GPI...
by danjperron
Wed Jan 15, 2020 5:53 pm
Forum: Français
Topic: Projet RFID possible ?
Replies: 4
Views: 255

Re: Projet RFID possible ?

J'ai fait quelque projets avec le RFID. Projet de sécurité! Cela va t'aider pour comprendre comment faire une base de données SQL. https://github.com/danjperron/MFRC522-python et la version esp8266 ou esp32 pour lire les cartes mifare avec 10 octets d'identification. https://github.com/danjperron/mi...
by danjperron
Thu Jan 09, 2020 4:40 am
Forum: Troubleshooting
Topic: NodeMCU (ESP8266) is not able to connect to MQTT broker running on a RasPi with an access point
Replies: 5
Views: 222

Re: NodeMCU (ESP8266) is not able to connect to MQTT broker running on a RasPi with an access point

I got no problem with my esp8266 using MQTT on My PI3 in access point. The nodemcu was able to send and receive mqtt data. I used this link to set the access point https://www.raspberrypi.org/documentation/configuration/wireless/access-point.md I flashed the latest nodemcu with lua and add the MQTT ...
by danjperron
Sat Jan 04, 2020 6:17 pm
Forum: Troubleshooting
Topic: [SOLVED] Raspberry Pi 4 not receiving 1000 Mbps
Replies: 16
Views: 916

Re: Raspberry Pi 4 not receiving 1000 Mbps

Maybe the first thing is to check the ethernet speed connection first ethtool eth0 | grep Speed and then testing the speed with iperf. On my PI4 I got 616MBits/sec when the PI4 is the client and 437 MBits/sec when the PI4 is the server. N.B. You need to check your local ethernet speed first. Interne...
by danjperron
Sat Dec 28, 2019 12:33 am
Forum: Advanced users
Topic: /dev/ttyAMA0 -> /dev/ttyS1
Replies: 18
Views: 943

Re: /dev/ttyAMA0 -> /dev/ttyS1

I added dtoverlay=disable-bt into /boot/config.txt

I created /dev/ttyS1

Code: Select all

sudo mknod /dev/ttyS1 c 204 64
sudo chown .dialout /dev/ttyS1
sudo chmod 660 /dev/ttyS1
And tested the serial using minicom -D /dev/ttyS1 -b 9600 and everything works.
by danjperron
Sat Dec 28, 2019 12:11 am
Forum: Advanced users
Topic: /dev/ttyAMA0 -> /dev/ttyS1
Replies: 18
Views: 943

Re: /dev/ttyAMA0 -> /dev/ttyS1

The primary GPIO UART of the RPi is called /dev/ttyAMA0. Does someone know, why it was called so and not /dev/ttyS1? Ok I do have a problem to following you. The main serial , TTL 3.3V serial, on the PI3 is /dev/ttyS0 if you don't swap devices. This is the opposite of what you explained on the firs...
by danjperron
Fri Dec 27, 2019 8:30 pm
Forum: Advanced users
Topic: /dev/ttyAMA0 -> /dev/ttyS1
Replies: 18
Views: 943

Re: /dev/ttyAMA0 -> /dev/ttyS1

https://subscription.packtpub.com/book/networking_and_servers/9781784392536/5/ch05lvl1sec48/device-nodes Serial port are character device. "ls" will show you the device node ID, major and minor, of your device, pi@PI4:~ $ ls -l /dev/ttyS0 crw-rw---- 1 root dialout 4, 64 Dec 27 15:16 /dev/ttyS0 pi@P...
by danjperron
Thu Dec 26, 2019 10:13 pm
Forum: Other projects
Topic: ADS1115 is not detected by i2c
Replies: 22
Views: 2479

Re: ADS1115 is not detected by i2c

use https://imgur.com and send the link
by danjperron
Thu Dec 26, 2019 8:35 pm
Forum: Other projects
Topic: ADS1115 is not detected by i2c
Replies: 22
Views: 2479

Re: ADS1115 is not detected by i2c

@catarmor https://imgur.com/S5P0FM6 I got a big smile when I look at the picture. The connector is from the bottom of the PI and you are using the outside row instead of the inside row. No wonder why it's not working! *** update! my mistake ! it is ok @bkeister Show us a picture of your settings.
by danjperron
Thu Dec 26, 2019 7:30 pm
Forum: Advanced users
Topic: /dev/ttyAMA0 -> /dev/ttyS1
Replies: 18
Views: 943

Re: /dev/ttyAMA0 -> /dev/ttyS1

Just wonder if you try to add a character block. On PIB,PI2 sudo mknod "/dev/ttyS1" c 204 64 sudo chown .dialout /dev/ttyS1 sudo chmod 660 /dev/ttyS1 On PI3 sudo mknod "/dev/ttyS1" c 4 64 sudo chown .dialout /dev/ttyS1 sudo chmod 660 /dev/ttyS1 And use /dev/ttyS1 Just add these lines into /etc/rc.lo...
by danjperron
Tue Dec 24, 2019 2:37 pm
Forum: Advanced users
Topic: /dev/ttyAMA0 -> /dev/ttyS1
Replies: 18
Views: 943

Re: /dev/ttyAMA0 -> /dev/ttyS1

This is why /dev/serial0 exist!

It is a link to the correct /dev/ttyAMA0 or /dev/ttyS0.
by danjperron
Tue Dec 10, 2019 2:05 am
Forum: General discussion
Topic: Problem with serial write
Replies: 2
Views: 204

Re: Problem with serial write

On PI3 the /dev/ttyAMA0 is the bluetooth. The GPIO serial is /dev/ttyS0.

Better use the link which is /dev/serial0. Using the link it will work with old and new PI.
by danjperron
Sun Dec 08, 2019 2:12 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Connecting rs485 device to RPi
Replies: 1
Views: 266

Re: Connecting rs485 device to RPi

You need a resistor divider on RO to reduce 5V signal to 3.3V signal.

Pease check the two links in this post
https://www.raspberrypi.org/forums/view ... 5#p1482792
by danjperron
Wed Nov 27, 2019 8:40 pm
Forum: Automation, sensing and robotics
Topic: Zigbee home automation on Pi Zero W
Replies: 8
Views: 16832

Re: Zigbee home automation on Pi Zero W

I'm still confused about the answer to the OP's question. Is it possible to implement Zigbee on a Rasp Pi Zero W with no additional hardware, or not? If not, what is the most cost effective hardware that I need to add? You need at least a Zigbee module to connect directly through the Pizero serial ...
by danjperron
Wed Nov 27, 2019 8:21 pm
Forum: Troubleshooting
Topic: RS485 and RTS support in Raspberry Pi 4
Replies: 6
Views: 357

Re: RS485 and RTS support in Raspberry Pi 4

In the past, I have used the device tree RS485 options on another CPU (Atmel SAM A5) and it worked automatically without any special program. You are correct a lot of those chips are connected directly to the RS-232 which has the signal inverted (TTL 0 = +(12/15V), TTL 1 = -(12/15V). The only thing...
by danjperron
Wed Nov 27, 2019 7:00 pm
Forum: Troubleshooting
Topic: RS485 and RTS support in Raspberry Pi 4
Replies: 6
Views: 357

Re: RS485 and RTS support in Raspberry Pi 4

Hi Batt61, If I understand you did an overlay to enable RTS. You have link to Hiassoft github and it is more or less the same than yours. But enable RTS to be available is just the first part. The other part is to use it. I don't see in your comment the application you are using to communicate via r...
by danjperron
Tue Nov 26, 2019 8:37 pm
Forum: Troubleshooting
Topic: i2c buffer size increase
Replies: 8
Views: 293

Re: i2c buffer size increase

I though that the hardware, because of the implementation with the SMBUS, limits the I2C to be 32 bytes only which is in reality 31 bytes of data since the first byte is the address and the R/W bit. I did try more than that and it always failed. I think that it is an hardware limitation.

Go to advanced search