Go to advanced search

by Fieldy
Fri Oct 06, 2017 2:07 pm
Forum: Automation, sensing and robotics
Topic: LinuxCNC
Replies: 1021
Views: 317859

Re: LinuxCNC

Dear Kinsa, I have a short question: We have a Haase CUT2500L [1] CnC machine in our lab. This machine has a parallel port interface for controlling. Currently it is connected to a very old desktop PC with an on-board LPT port and controlled via LinuxCnC. Unfortunately the PC died recently and now w...
by Fieldy
Sat Oct 11, 2014 6:05 pm
Forum: Troubleshooting
Topic: SocketCAN cannot bring down interface (solved)
Replies: 2
Views: 743

Re: SocketCAN cannot bring down interface

Thanks! Changing the config of ifplugd did the trick!

Best regards
Fieldy
by Fieldy
Fri Oct 10, 2014 8:02 am
Forum: Troubleshooting
Topic: SocketCAN cannot bring down interface (solved)
Replies: 2
Views: 743

SocketCAN cannot bring down interface (solved)

Hey all, I have a strange problem using socketCAN on the Raspberry Pi. I'm using Raspbian wheezy image from 2014-09-09 and recompiled the kernel from github (adding the needed socketCAN modules, which are not installed by default...) Loading the module works, the hardware is correctly identified...e...
by Fieldy
Fri Feb 08, 2013 3:35 pm
Forum: Linux Kernel
Topic: Strange behaviour of kernel module
Replies: 17
Views: 3283

Re: Strange behaviour of kernel module

ok....after a reboot I tested again reading the "mode" register of my SJA100 via commandline
and the reply from the chip was as expected...
after loading my kernel module gpio23 get stuck when trying to read....
so it seems I really introduced some bug when moving from rev1 to rev2....
by Fieldy
Fri Feb 08, 2013 1:58 pm
Forum: Linux Kernel
Topic: Strange behaviour of kernel module
Replies: 17
Views: 3283

Re: Strange behaviour of kernel module

sure. and my kernel module was removed before this test ;-) I also did a quick test from commandline... when setting gpio17 (used as !RD) and gpio18 (used as !CS) as output and logic 1, I read a 0 at gpio23. Switching 1 of these outputs to logic 0, gpio23 stays logic 0. When switching both outputs t...
by Fieldy
Fri Feb 08, 2013 12:03 pm
Forum: Linux Kernel
Topic: Strange behaviour of kernel module
Replies: 17
Views: 3283

Re: Strange behaviour of kernel module

Hey,

I wanted to test my GPIO independet of my kernel module.
So I copied the GPIO driving c-example from http://elinux.org/RPi_Low-level_periphe ... le_.28C.29, and modified it to read gpio23.
When I run this program I get the error "mmap error -1225224192"

Any Ideas?
by Fieldy
Thu Feb 07, 2013 2:18 pm
Forum: Linux Kernel
Topic: Strange behaviour of kernel module
Replies: 17
Views: 3283

Re: Strange behaviour of kernel module

Nobody any idea why GPIO23 is stuck on revision 2 boards?
Were there any changes from revision 1 to revision 2 related to this gpio?
by Fieldy
Wed Jan 23, 2013 2:28 pm
Forum: Linux Kernel
Topic: Strange behaviour of kernel module
Replies: 17
Views: 3283

Re: Strange behaviour of kernel module

You need to compile the module against the headers for your EXACT kernel That's what I'm doing.... You did add board revision detection and manage the change in GPIO signals? Rev 1 --> GPIO 21 becomes Rev 2 --> GPIO 27 ? This would be my first suspect for a "stuck" bit. Also, it was reported in ano...
by Fieldy
Tue Jan 22, 2013 12:03 pm
Forum: Linux Kernel
Topic: Strange behaviour of kernel module
Replies: 17
Views: 3283

Re: Strange behaviour of kernel module

To be sure it is not a bug or something like this from Kernel 3.6.11 (on rev1 I'm still using 3.2.27) I made a downgrade to the 3.2.27-Kernel, but still the kernel module does absolutly nothing if I disconnect gpio23. If I disconnect the whole extension board, so every gpio is floating, the kernel m...
by Fieldy
Mon Jan 21, 2013 10:51 am
Forum: Linux Kernel
Topic: Strange behaviour of kernel module
Replies: 17
Views: 3283

Strange behaviour of kernel module

Dear all, for my work I have developed an extension board with a CAN bus interface using the SJA1000 CAN controller connected to the GPIOs of the PI. With revision 1 of the Pi everything worked fine, but with revision 2 I have some strange problems: When reading the "Mode" register of the SJA1000 bi...
by Fieldy
Wed Nov 28, 2012 10:12 am
Forum: Other projects
Topic: Raspberry Pi Eagle PCB CAD footprint
Replies: 20
Views: 51669

Re: Raspberry Pi Eagle PCB CAD footprint

I've found your library very useful. I need also layout of Raspberry Rev 2 so I added it to your file. This is modified version of your file where I put a new connector P5 available in the new revision of Raspberry Pi. http://www.4shared.com/zip/QSRBQF1o/RaspberryPi.html I had no opportunity to che...
by Fieldy
Thu Aug 02, 2012 5:14 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: GPIO and interrupts from kernelspace
Replies: 7
Views: 11592

Re: GPIO and interrupts from kernelspace

Hey all, I switched to the raspian 2012-07-15 image and now my kernel module works. But: For our purposes the gpio_set_value and gpio_get_value functions are too slow compared to this C code example . Driving the gpios via memory access seems to be a factor 5 faster. Is there a way to drive the gpio...
by Fieldy
Thu Jul 19, 2012 8:24 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: GPIO and interrupts from kernelspace
Replies: 7
Views: 11592

Re: GPIO and interrupts from kernelspace

Has no one any idea why requesting the IRQ for one of the gpios fails?

BTW: I forgot to say, that I request this gpio and set it to input before trying to use it as irq.
by Fieldy
Tue Jul 17, 2012 1:00 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: GPIO and interrupts from kernelspace
Replies: 7
Views: 11592

Re: GPIO and interrupts from kernelspace

Hey, I need to write a driver for a chip connected to the gpios with interrupt handling. I downloaded the latest Kernel source from github, used > gzip -dc /proc/config.gz > /lib/moduels/3.1.9+/build/.config compiled everything and installed the new kernel. In my driver I'm using > unsigned int irq_...
by Fieldy
Tue Jun 05, 2012 12:56 pm
Forum: Troubleshooting
Topic: SD Card problems?
Replies: 7
Views: 6879

Re: SD Card problems?

Hey, I also have a problem with my SD cards. I'm using the Transcend 32GB SDHC class 10 card which is listed as working card in the wiki. But when i try to flash the image using dd I get the following error: [[email protected] debian6-19-04-2012]# dd bs=1M if=debian6-19-04-2012.img of=/dev/sda dd: writing ...
by Fieldy
Tue Jun 05, 2012 10:00 am
Forum: Troubleshooting
Topic: SD Card problems?
Replies: 7
Views: 6879

Re: SD Card problems?

Hey, I also have a problem with my SD cards. I'm using the Transcend 32GB SDHC class 10 card which is listed as working card in the wiki. But when i try to flash the image using dd I get the following error: [[email protected] debian6-19-04-2012]# dd bs=1M if=debian6-19-04-2012.img of=/dev/sda dd: writing `...

Go to advanced search