Go to advanced search

by jabss
Fri Jun 02, 2017 4:46 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: i2cset - one bit at a time?
Replies: 4
Views: 1084

Re: i2cset - one bit at a time?

Thanks for getting back so quickly.

I was wondering, and if part of the byte ports are inputs? Writting there wouldn't affect something?

Does this mean that if a 8 bit port has one pin defined as output, all others need to be output?

Thanks,
Jabss
by jabss
Fri Jun 02, 2017 3:51 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: i2cset - one bit at a time?
Replies: 4
Views: 1084

i2cset - one bit at a time?

Hello, I’m sure this is a frequent doubt but I couldn’t find an answer anyhere… Maybe I’m not using the correct keyword, so here it goes, hope you can help me. When using I2cset in a PCF8574/MCP23017, we have to set all 8 bits in one go. However, for pin-specific operations, it could make sense to c...
by jabss
Sat Sep 10, 2016 1:03 pm
Forum: Troubleshooting
Topic: RPI3 power and GPIO35
Replies: 2
Views: 967

Re: RPI3 power and GPIO35

Anyone?
by jabss
Tue Aug 23, 2016 2:37 pm
Forum: Troubleshooting
Topic: RPI3 power and GPIO35
Replies: 2
Views: 967

RPI3 power and GPIO35

Hello, I have an headless RPI3 and its being powered by a 2A power supply. Its acting as a NAS server running onwcloud with a SSD drive. However, since its an headless system, I can't check easily if there are problems with the power supply (usually indicated by the coloured square on the upper-righ...
by jabss
Mon Feb 29, 2016 5:29 pm
Forum: Advanced users
Topic: USB2 or USB3 sticks for RAID1 in the PI?
Replies: 8
Views: 5314

Re: USB2 or USB3 sticks for RAID1 in the PI?

Hello, Some years after (better late then never), I've found a way to overcome SD corruption: FS2RAM. sudo apt-get install fs2ram (and edit /etc/fs2ram/fs2ram accordingly) Basically this package moves most read/writting to RAM. Its mainly useful in systems that aren't so much RAM hungry. Hope this h...
by jabss
Sun Sep 06, 2015 8:02 pm
Forum: Advanced users
Topic: mjpg-streamer rotate
Replies: 1
Views: 1259

mjpg-streamer rotate

Hi, I have a raspberry pi with two logitech C270 webcams working as security cameras and they are working great! However, one of the cameras is upside-down and I'd like to rotate it with software so I could have the image in the right direction. I tried to look around for the right parameters to do ...
by jabss
Tue Jul 07, 2015 11:10 am
Forum: Advanced users
Topic: Best I2C GPIO port expander ?
Replies: 5
Views: 9146

Re: Best I2C GPIO port expander ?

Hello, Thanks for replying. I already ordered and received a couple of MCP23017's, and could confirm that there are linux drivers to deal with it, treating each GPIO pin as a file, as I need. As simple GPIO expander it works great! However, as opposite to the PCF857x's,the interrupts are programable...
by jabss
Fri Jul 03, 2015 10:58 pm
Forum: Advanced users
Topic: devicetree overlay for MCP23017 GPIO expander
Replies: 66
Views: 17540

Re: devicetree overlay for MCP23017 GPIO expander

Hi, Very interesting thread. I tried to understand it all, but I guess my knowledge about coding is rather limited. I have always used the GPIO /sys/class/gpio style for PCF857x's although I had the feeling I was one of the very few: https://www.raspberrypi.org/forums/viewtopic.php?p=545887#p545887 ...
by jabss
Sun Jun 21, 2015 3:15 pm
Forum: Advanced users
Topic: Best I2C GPIO port expander ?
Replies: 5
Views: 9146

Best I2C GPIO port expander ?

Hello, I'm using the PCF8574/PFC8575 I2C "quasi-bidirectional" GPIO port expander for quite some time, and now I'd like to start using the INTerrupt functionality instead of pooling it. However, it seems it only works when all ports are configured as input, hence the "Quasi-bidirectional" name. More...
by jabss
Mon May 04, 2015 12:30 pm
Forum: Troubleshooting
Topic: [SOLVED] Logitech C270 and MJPG-Streamer
Replies: 7
Views: 28631

Re: Logitech C270 and MJPG-Streamer

Hello,

Thank you for your reply.
Your instructions were very clear and easy to follow and above all, it solved the problem!

I'll buy more C270 in order to add it to my RPI. :D

Thank you very much!
Jabss
by jabss
Mon May 04, 2015 10:45 am
Forum: Troubleshooting
Topic: [SOLVED] Logitech C270 and MJPG-Streamer
Replies: 7
Views: 28631

Re: Logitech C270 and MJPG-Streamer

Hello, Some more info that I found from http://wolfpaulus.com/jounal/embedded/raspberrypi_webcam/ Asif1924 on April 19, 2015 at 12:43 am It seems that with the latest raspbian image, and after doing a sudo apt-get update and sudo apt-get upgrade, the mjpeg streamer no longer works. You now have to u...
by jabss
Mon May 04, 2015 12:06 am
Forum: Troubleshooting
Topic: [SOLVED] Logitech C270 and MJPG-Streamer
Replies: 7
Views: 28631

[SOLVED] Logitech C270 and MJPG-Streamer

Hi, I have a Logitech C270 webcam connected to my RPI via a powered USB hub. This camera has two operation modes (or capabilities): YUYV and MJPEG. As far as I could understand, the difference between both is that with MJPEG capability, the image is compressed in the camera itself before being sent ...
by jabss
Mon Feb 09, 2015 9:38 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: i2c configuration
Replies: 25
Views: 13088

Re: i2c configuration

by jabss
Sun Aug 03, 2014 11:43 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: maximum cable length I2C with twisted pair?
Replies: 62
Views: 52270

Re: maximum cable length I2C with twisted pair?

@bbodin I'm not saying 1-w over 300m its not possible. That would be rude, and to be honest, I couldn't care less if it works or not. What I'm saying is what I have working and how I made it work in a practical, experimental way with no theories or studies behind it. My purpose with my post, as I sa...
by jabss
Sat Aug 02, 2014 11:20 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: maximum cable length I2C with twisted pair?
Replies: 62
Views: 52270

Re: maximum cable length I2C with twisted pair?

At these distances there are many other factors to consider besides pure resistance, like capacity, frequency, interference, etc. I confess I don't know the theoretical reason, what I can tell is that is my setup is working. This is a practical fact. Maybe because of the level shifter? Don't know an...
by jabss
Sat Aug 02, 2014 12:49 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: maximum cable length I2C with twisted pair?
Replies: 62
Views: 52270

Re: maximum cable length I2C with twisted pair?

Hi, I can tell you that besides gigabit ethernet I also have a I2C and 1-W network in my house :geek: . Its all going through cat-5e wire and it has a couple of RJ-45 spliters all the way. I'd say the maximum length would go over the 20m of cable. My PI is the main point and I have "satelite" boards...
by jabss
Sun May 18, 2014 11:17 pm
Forum: Advanced users
Topic: USBRelay on RaspberryPI
Replies: 15
Views: 7813

Re: USBRelay on RaspberryPI

Hi, Thanks for replying. Indeed, I didn't know I had to run ldconfig, and that was it! [email protected] ~ $ cd usbrelay/usbrelay/ [email protected] ~/usbrelay/usbrelay $ ./usbrelay ./usbrelay: error while loading shared libraries: libhidapi-hidraw.so.0: cannot open shared object file: No such file or...
by jabss
Sun May 18, 2014 11:03 pm
Forum: Advanced users
Topic: USBRelay on RaspberryPI
Replies: 15
Views: 7813

Re: USBRelay on RaspberryPI

My first questions is... do you really have a file at usbrelay/usbrelay/.usbrelay? Not a problem if you do, but it causes me to raise an eyebrow, so it might be worth verifying that that's what you meant. Sorry, I'm not sure I have understood. Should I create a usbrelay/usbrelay/.usbrelay directory...
by jabss
Sun May 18, 2014 10:45 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Sharing my use of I2C GPIOs
Replies: 26
Views: 8873

Re: Sharing my use of I2C GPIOs

I think I also had that problem in older kernel versions?
What kernel are you using currently?

Cheers,
Jabss
by jabss
Sun May 18, 2014 10:44 pm
Forum: Advanced users
Topic: USBRelay on RaspberryPI
Replies: 15
Views: 7813

USBRelay on RaspberryPI

Hello, I have bought a USB relay controller in ebay and it works nice in a windows PC! It seems someone had put it working in raspberry PI and generic linux . However, I tried it and could't get it working. I basically compiled the hidapi library and the USBRelay code. (maybe hidapi-devel is missing...
by jabss
Sun May 18, 2014 8:06 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Sharing my use of I2C GPIOs
Replies: 26
Views: 8873

Re: Sharing my use of I2C GPIOs

[66.185030] gpiochip_find_base: cannot find free range I'm no expert but I think it might be the same it happened to me before. Check out the 3rd post in http://www.raspberrypi.org/forums/viewtopic.php?f=44&t=74233&p=549568 What kernel version are you using? If you are compiling your own kernel and...
by jabss
Sun May 18, 2014 4:06 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Sharing my use of I2C GPIOs
Replies: 26
Views: 8873

Re: Sharing my use of I2C GPIOs

Hi again, Not sure if it will have any effect, but maybe you can just issue "echo pcf8574 0x20 > /sys/bus/i2c/devices/i2c-1/new_device" (wihtout the "P"). Check dmesg right after you do it: dmesg | tail -10 You should see something like (your numbers will vary): [ 52.378980] pcf857x 1-003b: probed [...
by jabss
Sun May 18, 2014 11:17 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Sharing my use of I2C GPIOs
Replies: 26
Views: 8873

Re: Sharing my use of I2C GPIOs

You are almost there... Not sure why it should't be working, I would try to firstly do all the commands as root, and double check if the port is really set as output by issuing "cat /sys/class/gpio/gpio248/direction" After you do the initialization, does the corresponding chip appears as "UU" when y...
by jabss
Fri May 16, 2014 5:37 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Sharing my use of I2C GPIOs
Replies: 26
Views: 8873

Re: Sharing my use of I2C GPIOs

Hi, You have three options: a) You do it as root sudo su - (and then echo pcf8574 0x20 > /sys/bus/i2c/devices/i2c-1/new_device) b) Put that command in /etc/rc.local so it will be ran as root during boot. Check above the links to my /etc/rc.local files c) Add pi user to the gpio group (/etc/group) ex...
by jabss
Mon May 12, 2014 5:39 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: gpio_pcf857x broken in 3.10.36+ ?
Replies: 24
Views: 6313

Re: gpio_pcf857x broken in 3.10.36+ ?

Richard-TX wrote:I would also blacklist the snd_soc_wm8804 module
By adding snd_soc_wm8804 in /etc/modprobe.d/raspi-blacklist.conf ?

Sure, I can do it, but what would be the reason for it?

Thanks,
Jabss

Go to advanced search