Go to advanced search

by rudiratlos
Fri Nov 17, 2017 2:58 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: spi test doesn't work anymore
Replies: 1
Views: 205

spi test doesn't work anymore

Hi, wanted to test spiloopback (MISO shorted with MOSI). but it's not working anymore. couldn't remember which raspian version changed it. https://www.raspberrypi.org/documentation/hardware/raspberrypi/spi/README.md output: # ./spidev_test -D /dev/spidev0.0 spi mode: 0 bits per word: 8 max speed: 50...
by rudiratlos
Wed Nov 15, 2017 4:19 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: rpi3 I2C baudrate is only 250kHz, but should 400kHz???
Replies: 1
Views: 249

Re: rpi3 I2C baudrate is only 250kHz, but should 400kHz???

setting dtparam=i2c_baudrate=640000 on a RPI3B will result in a 400kHz I2C ClockFreq. Also found a more detailed german article, which describes this problem also. We have different dtparam setting for different RPI boards (Pi3/PI3/PiZeroW): http://forum.weihenstephan.org/forum/phpBB3/viewtopic.php?...
by rudiratlos
Tue Nov 14, 2017 5:54 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: rpi3 I2C baudrate is only 250kHz, but should 400kHz???
Replies: 1
Views: 249

rpi3 I2C baudrate is only 250kHz, but should 400kHz???

Hi, I just wanted to test my new logic analyzer on my rpi3 model B V1.2. raspian 4.9.57-v7+ #1045 SMP Fri Oct 20 11:44:49 BST 2017 armv7l GNU/Linux Connected SDA1 and SCL1 and ground (Pins 3,5,6). in /boot/config.txt I have dtparam=i2c_baudrate=400000 just did a i2cdetect -y 1 and get some clock dat...
by rudiratlos
Sun Nov 12, 2017 12:01 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: how do I do multiple I2C IOs in one transfer?
Replies: 5
Views: 466

Re: how do I do multiple I2C IOs in one transfer?

can no on answer?
Is this not possible (multiple reads on different i2c-addrs in one IO)?
by rudiratlos
Fri Nov 10, 2017 6:12 pm
Forum: Device Tree
Topic: OS command to ReRead/refresh HAT Info
Replies: 1
Views: 338

OS command to ReRead/refresh HAT Info

Hi,
I'm overwriting the HAT EEprom on I2C-Addr 0x50 with new infos.
but in the HAT tree ( /proc/device-tree/hat/ ) are the old infos.

Is there a OS command, to reload this info to the tree?

If I reboot, the new info is available. I try to avoid a reboot.
by rudiratlos
Thu Nov 09, 2017 11:55 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: how do I do multiple I2C IOs in one transfer?
Replies: 5
Views: 466

Re: how do I do multiple I2C IOs in one transfer?

using:
pigpiod
pigs i2co 1 0x70 0
pigs i2co 1 0x71 0

pigs i2cz 0 4 0x70 6 2 0
-> 2 6 105 (works)

error with two sensors:
pigs i2cz 0 4 0x70 6 2 4 0x71 6 2 0
ERROR: an I2C transaction segment failed
-106
by rudiratlos
Wed Nov 08, 2017 7:52 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: how do I do multiple I2C IOs in one transfer?
Replies: 5
Views: 466

Re: how do I do multiple I2C IOs in one transfer?

thanks for the hints, i've implemented i2csegments, and tried it with 2 sensors, where I want to read 2 bytes each. But it faild with the errno (95) Operation not supported on transport endpoint. if i try it with one sensor, it's ok. 1. addr:0x70 ptr:0x00125E15 len: 2 flags:0x0001 2. addr:0x71 ptr:0...
by rudiratlos
Tue Nov 07, 2017 9:13 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: how do I do multiple I2C IOs in one transfer?
Replies: 5
Views: 466

how do I do multiple I2C IOs in one transfer?

Hi, I have 4 sensors which deliver pressuredata in 2Bytes each. Each sensor has a unique i2cadr like: 0x71 0x72 0x73 and 0x74. in a sequential order, I read each sensor in a single IO. With a protocol analzer, I can see that each IO (3Bytes: ADR data1 data2) takes around 120mikrosecs. Before the nex...
by rudiratlos
Tue Mar 21, 2017 1:41 pm
Forum: Raspbian
Topic: change SPI Speed
Replies: 5
Views: 719

Re: change SPI Speed

thank you. Just sent some bytes over SPI-Bus and measured transfertime. It's exactly what you've described. SPI_IOC_WR_MAX_SPEED_HZ sets the speed device specific, regardless whats defined in spi-max-frequency. There is no need to set the divider value in SPI0_CLK. It's done by the SPI routine itsel...
by rudiratlos
Tue Mar 21, 2017 9:43 am
Forum: Raspbian
Topic: change SPI Speed
Replies: 5
Views: 719

Re: change SPI Speed

not clear to me until now. xxd -pd /sys/class/spidev/spidev0.0/device/of_node/spi-max-frequency shows 0x0007a120 -> 500kHz If I set the speed for a device with ioctl(spi_fd,SPI_IOC_WR_MAX_SPEED_HZ,<newspeed e.g. 10Mhz>); and if I read the speed back with SPI_IOC_RD_MAX_SPEED_HZ ,I can see that the s...
by rudiratlos
Mon Mar 20, 2017 1:00 pm
Forum: Raspbian
Topic: change SPI Speed
Replies: 5
Views: 719

change SPI Speed

Hello, what's the supported method for kernel 4.9, to change spi speed? Simply write a Hex value into: /sys/class/spidev/spidev0.0/device/of_node/spi-max-frequency ? I read that a clock divider has to be used (see https://www.raspberrypi.org/documentation/hardware/raspberrypi/spi/README.md ). Is the...
by rudiratlos
Sun Mar 19, 2017 3:42 pm
Forum: Raspbian
Topic: i2c speed
Replies: 6
Views: 1072

Re: i2c speed

is that xxd /sys/class/spidev/spidev0.0/device/of_node/spi-max-frequency ?
by rudiratlos
Sun Mar 19, 2017 3:38 pm
Forum: Raspbian
Topic: i2c speed
Replies: 6
Views: 1072

Re: i2c speed

is there also a command to get the spi bus speed for newer kernel?
by rudiratlos
Wed Mar 08, 2017 10:58 pm
Forum: Raspbian
Topic: i2c speed
Replies: 6
Views: 1072

Re: i2c speed

Thanks for this hint. Is it possible that you post an example, to get via xxd a readable value.
by rudiratlos
Tue Mar 07, 2017 4:24 pm
Forum: Other languages
Topic: rpi-hal for Free Pascal
Replies: 5
Views: 1823

Re: rpi-hal for Free Pascal

Hi,
just uploaded a new Version (V4.4) of rpi_hal to github: https://github.com/rudiratlos/rpi-hal
rpi-hal supports new kernel V 4.9
by rudiratlos
Tue Mar 07, 2017 1:58 pm
Forum: Raspbian
Topic: i2c speed
Replies: 6
Views: 1072

i2c speed

Hello,
since kernel 4.9,
dmesg | grep bcm2708_i2c
is not working anymore, to determine i2c speed/Baudrate.
Any idea, to get this info?
by rudiratlos
Fri Feb 24, 2017 11:12 pm
Forum: Device Tree
Topic: HAT eeprom or overlay in config.txt?
Replies: 10
Views: 1829

Re: HAT eeprom or overlay in config.txt?

Hi,
in the HAT environment there is a custom_0 and custom_1 field. For which purpose are these fields? How to use them?
Thanx
by rudiratlos
Fri Feb 24, 2017 9:49 am
Forum: Raspbian
Topic: 4.9.11-v7+ access violation
Replies: 3
Views: 541

Re: 4.9.11-v7+ access violation

I went back to 4.4.50-v7+ with
rpi-update 52241088c1da59a359110d39c1875cda56496764
and everything is fine.

BTW: Why shouldn't I try the latest firmware?
by rudiratlos
Fri Feb 24, 2017 9:24 am
Forum: Raspbian
Topic: 4.9.11-v7+ access violation
Replies: 3
Views: 541

4.9.11-v7+ access violation

Hi, yesterday I made an rpi-update from: Linux raspberrypi 4.4.49-v7+ #968 SMP Fri Feb 17 14:22:28 GMT 2017 armv7l GNU/Linux to: Linux raspberrypi 4.9.11-v7+ #971 SMP Mon Feb 20 20:44:55 GMT 2017 armv7l GNU/Linux since then I get access violations in reading/writing to GPIO registers. Also I get Err...
by rudiratlos
Fri Feb 24, 2017 8:56 am
Forum: Raspbian
Topic: (New) Official nightly full and cutdown/headless images
Replies: 83
Views: 30932

since BCM2835 access violations

Hi, yesterday I made an rpi-update from: Linux raspberrypi 4.4.49-v7+ #968 SMP Fri Feb 17 14:22:28 GMT 2017 armv7l GNU/Linux to: Linux raspberrypi 4.9.11-v7+ #971 SMP Mon Feb 20 20:44:55 GMT 2017 armv7l GNU/Linux since then I get access violations in reading/writing to GPIO registers. Also I get Err...
by rudiratlos
Tue Feb 07, 2017 12:57 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: How to determine i2c baudrate
Replies: 1
Views: 493

How to determine i2c baudrate

How can I determine the i2c baudrate:
#sudo cat /sys/module/i2c_bcm2708/parameters/baudrate
gives me 0

but it should be 100k

I'm using recent os:
Linux raspberrypi 4.4.38-v7+ #938 SMP Thu Dec 15 15:22:21 GMT 2016 armv7l GNU/Linux
by rudiratlos
Thu Dec 22, 2016 1:25 pm
Forum: Other languages
Topic: rpi-hal for Free Pascal
Replies: 5
Views: 1823

Re: rpi-hal for Free Pascal

Hi,
just uploaded a new Version (V4.3) of rpi_hal to github: https://github.com/rudiratlos/rpi-hal

best regards
by rudiratlos
Mon Aug 29, 2016 8:36 am
Forum: Raspbian
Topic: shell config tool
Replies: 1
Views: 308

shell config tool

Hello, I'm looking for a config tool like raspi-config, to set some attributes on the rpi. Like IpAddress, GW, Mask, ... raspi-config has to much options which are not needed for setting up an embedded system, which runs a preinstalled program only. My intention is to have a user like 'admin', the d...
by rudiratlos
Thu Aug 04, 2016 4:38 pm
Forum: Other languages
Topic: rpi-hal for Free Pascal
Replies: 5
Views: 1823

rpi-hal for Free Pascal

Hi, just uploaded new version of rpi-hal V4.2 to github: https://github.com/rudiratlos/rpi-hal I have corrected several bugs and enhanced the library with new features, like reading config files... I've testet rpi-hal in a pure free pascal environment (fpc 2.6.4). Would be nice to get information fr...
by rudiratlos
Fri Jul 22, 2016 10:52 am
Forum: Advanced users
Topic: Clocksources
Replies: 7
Views: 798

Re: Clocksources

Thanx Joan,
you're right, I did something wrong.
My Oscilloscope had the wrong setting. The magnifier was not set to 1x it was on 3.3x
The internal freqs listet in misc_minimal.c are correct.

Go to advanced search