Go to advanced search

by Jan1
Tue Jul 12, 2016 5:12 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: MIPI DSI interface
Replies: 6
Views: 19139

Re: MIPI DSI interface

Thank you for replies. I expected if a LCD is MIPI compatible( if it exposes MIPI DSI specification) any board that is also MIPI DSI compatible should work( of course if they have the same number of lanes( data lanes). In other words if any (main)board supports DSI, then there should be also a softw...
by Jan1
Sat Jul 09, 2016 8:45 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: MIPI DSI interface
Replies: 6
Views: 19139

MIPI DSI interface

Where can I foound specification for MIPI DSI interface? Are there any code samples ( controller driver implementations)available for MIPI DSI? Is there any way how to check if a particular LCD uses this MIPI DSI interface? And e.g. how many data lanes are there in a particular LCD? Thank you for yo...
by Jan1
Tue Jan 05, 2016 9:35 am
Forum: Automation, sensing and robotics
Topic: GPIO or PLC needed
Replies: 4
Views: 900

Re: GPIO or PLC needed

I am going to use a thermocouple K model, which is analogue, I think. I know I will have to use an
Analogue to digital conversion.Can you suggest any type?
Why do you think with Arduino it will be easier?
by Jan1
Tue Jan 05, 2016 6:30 am
Forum: Automation, sensing and robotics
Topic: GPIO or PLC needed
Replies: 4
Views: 900

GPIO or PLC needed

I would like to control a heater ( via Solid State Relay) from a Raspberry. My scenario would be like this I will start a heater from a "cold" state( heater will have an ambient temperature). The temperature will reach a low temperature limit( say 190 C) and waits for me to start my temperature prof...
by Jan1
Tue Nov 10, 2015 7:03 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C problem with READ
Replies: 8
Views: 1338

Re: I2C problem with READ

Thank you for your help. It works.
But why must I start pigpio daemon first?
SMBus did not need that.
Thanks for the reply
by Jan1
Fri Nov 06, 2015 9:03 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C problem with READ
Replies: 8
Views: 1338

Re: I2C problem with READ

But then I am not sure it solves my problem. I need to read from an address/register of address 0xC8 A1 81 00 ( see the beginning of this topic) but your i2c_read_i2c_block_data command can read only from 0xFF address of registers. Or am I wrong in understanding? Thank you again for your help/ expla...
by Jan1
Fri Nov 06, 2015 7:13 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C problem with READ
Replies: 8
Views: 1338

Re: I2C problem with READ

Thank you for your reply. I checked the syntax
i2c_read_i2c_block_data(handle, reg, count)
What is the largest number for reg parameter ?
by Jan1
Fri Nov 06, 2015 6:46 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C problem with READ
Replies: 8
Views: 1338

Re: I2C problem with READ

Nobody needed to solve a similar problem yet?
by Jan1
Wed Nov 04, 2015 10:06 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C problem with READ
Replies: 8
Views: 1338

I2C problem with READ

As far as i know, to be able to read from I2C device, I must first write to a register and then read values from this register Example From a logic analyzer I can see this communication between an I2C device Address: D0 D1 D2 D3 D4 Write 08 : C8 A1 81 00 Read 08: 21 00 23 04 03 These commands should...
by Jan1
Thu Aug 27, 2015 10:18 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C problem
Replies: 19
Views: 2608

Re: I2C problem

[email protected] ~/Python $ uname -a Linux raspberrypi 3.6.11+ #538 PREEMPT Fri Aug 30 20:42:08 BST 2013 armv6l GNU/Linux Does it mean I use device tree? I added dtparam=i2c_arm_baudrate=299000 to in /boot/config.txt, but it did not help the speed is still the same (100kHz). What else shall I try? Wha...
by Jan1
Thu Aug 27, 2015 9:30 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C problem
Replies: 19
Views: 2608

Re: I2C problem

I added dtparam=i2c_arm_baudrate=299000 to in /boot/config.txt, but it did not help the speed is still the same (100kHz). Can you please let me know: - what a difference is between Pre device tree and Post device tree -how to check if my Raspberry uses device tree or not Meanwhile I browsed the foru...
by Jan1
Wed Aug 26, 2015 7:58 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C, wiringPi & tea5767
Replies: 28
Views: 31076

Re: I2C, wiringPi & tea5767

@ LinuxCircle
I use a different module and use I2C to control it and also experience the same error.

Code: Select all

>>> bus.write_i2c_block_data(0x08,0x03,[0xAA,0xBB])
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
IOError: [Errno 5] Input/output error
Did you find a solution?
by Jan1
Wed Aug 26, 2015 4:49 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C problem
Replies: 19
Views: 2608

Re: I2C problem

It is MIPS CPU( 400Mhz) board . There is a program that works properly with that CPU and I used it during a reverse engineering.
The frequency was about 299kHz.
While Raspberry shows only 100 kHz.Is it possible to increase the I2C bus speed?
by Jan1
Wed Aug 26, 2015 3:03 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C problem
Replies: 19
Views: 2608

Re: I2C problem

and do you think the small Raspberry's GPIO speed could be that problem?
by Jan1
Wed Aug 26, 2015 2:03 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C problem
Replies: 19
Views: 2608

Re: I2C problem

Which message is incorrect? IOError: [Errno 5] Input/output error ? Is it possible that Raspbery ( IO chip) is slow? I made reversed engineering by using another USB/I2C bridge that uses 299kHz speed ( raspberry only 100kHz) and it was possible to write more bytes. And is the syntax >>> bus.write_i2...
by Jan1
Wed Aug 26, 2015 11:53 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C problem
Replies: 19
Views: 2608

Re: I2C problem

Here is the output, when trying to send more bytes with a command
bus.write_i2c_block_data(0x08,0x03,[0xAA,0xBB])
LAPicture2.jpg
LAPicture2.jpg (46.02 KiB) Viewed 2440 times
Thank you.
by Jan1
Wed Aug 26, 2015 11:24 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C problem
Replies: 19
Views: 2608

Re: I2C problem

Thank you for the reply.
So, the hardware connection is correct, isn't it?
But can you please help me to find out a reason, why I can not send more bytes - see the description of my problem from the beginning of this post ?
Thank you
by Jan1
Wed Aug 26, 2015 11:10 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C problem
Replies: 19
Views: 2608

Re: I2C problem

Thank you for the reply.
The device is shown by
"i2cdetect -y 1"

as a device with address 0x08, which is correct.
So, the device is detected but on bus 1.
Do you think it is wrong and it should be detected on bus 0 ?
by Jan1
Wed Aug 26, 2015 10:42 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C problem
Replies: 19
Views: 2608

Re: I2C problem

Thanks for your reply.
I use
SDA pin 3
SCL pin 5
3.3V pin 1
GND pin 6

But if the device were not connected properly, I do not think I can send any byte.
But I CAN send a byte, but only ONE byte in one write command.
by Jan1
Wed Aug 26, 2015 9:51 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C problem
Replies: 19
Views: 2608

I2C problem

I have Raspberry made in 2011,12 and need to use I2C there. According to the docs, the Raspberry should use /dev/i2c-0 (port I2C0). However i2cdetect -y 0 can not detect my device while "i2cdetect -y 1" can. I use Python smbus utility like this smbus.SMBus(1) and I can send /read a single byte but I...
by Jan1
Mon Aug 24, 2015 12:57 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C
Replies: 18
Views: 3131

Re: I2C

I tried pi = pigpio.pi() # Connect to local Pi. handle = pi.i2c_open(0, 0x08, 0) pi.i2c_write_byte_data(handle, 0x08 , 0x80) but received an error pi.i2c_write_byte_data(handle, 0x08 , 0x80) File "/usr/local/lib/python2.7/dist-packages/pigpio.py", line 2237, in i2c_write_byte_data self.sl, _PI_CMD_I...
by Jan1
Mon Aug 24, 2015 12:55 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C
Replies: 18
Views: 3131

Re: I2C

Thank you for your reply.
So I upgraded and now it works.But can you please help me how to send the commands to get the result like this
[img]
LAPicture.jpg
LAPicture.jpg (31.79 KiB) Viewed 2495 times
[/img]
by Jan1
Fri Aug 21, 2015 11:00 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C
Replies: 18
Views: 3131

Re: I2C

Thank you for help. [email protected] / $ cat /etc/os-release PRETTY_NAME="Raspbian GNU/Linux 7 (wheezy)" NAME="Raspbian GNU/Linux" VERSION_ID="7" VERSION="7 (wheezy)" ID=raspbian ID_LIKE=debian ANSI_COLOR="1;31" HOME_URL="http://www.raspbian.org/" SUPPORT_URL="http://www.raspbian.org/RaspbianForums" B...
by Jan1
Fri Aug 21, 2015 10:35 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C
Replies: 18
Views: 3131

Re: I2C

Thank you for the reply. I tried to install PIGPIO but I received an error [email protected] ~/PIGPIO $ make install sudo install -m 0755 -d /opt/pigpio/cgi sudo install -m 0755 -d /usr/local/include sudo install -m 0644 pigpio.h /usr/local/include sudo install -m 0644 pigpiod_if.h /usr/local/include s...
by Jan1
Thu Aug 20, 2015 5:11 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C
Replies: 18
Views: 3131

Re: I2C

Thanks for the reply. /proc/cpuinfo is Processor : ARMv6-compatible processor rev 7 (v6l) BogoMIPS : 697.95 Features : swp half thumb fastmult vfp edsp java tls CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xb76 CPU revision : 7 Hardware : BCM2708 Revision : 000d Serial : ...

Go to advanced search