[ask]i2c + Qt

azihsan
Hello all!

I am newbie here, i got my tiny4412 last week and have installed linux in
it. I'm making some project ADC with the i2c protocol which will gather the
data and show it. 
I wonder if the data can be showed in some apps in my qtopia, i have read a
little about qt, but still i am confusing. Do you have any idea or good
reading for my little steps to build the project?

thank you.

davef
Have a look through these sites:

http://paolosereno.info/

He had more info on an older site.

Also, search <domdom> on this site, which hopefully will take you to
collection of his tutorials.

Then read through this stuff:

http://mini2440vietnam.blogspot.co.nz/

davef
hey davef nice to meet u.
thank you 
i will read it first, then i'll come back after it.

paolo_sereno
Hi all,
thanks Dave to redirect to my new blog. I'm changing the web provider and I
had some trouble to move the domain, so I decided to redirect all the
requests to the address you wrote in your post.

At the moment I put online the most requested tutorials, but there is much
more material I have to move to the new site.

Please stay tuned.

Regards,
Paolo

azihsan
hi paolo soreno

Thank you, i am waiting for your new site. 
but i have tried some of the qt stuff in your site really helpful. 

regards 
azihsan

paolo_sereno
@azihsan
Thanks for your feedback. It's important for me to know that the Qt stuff
in my site is helpful to someone.
Regards
Paolo

azihsan
hi all

is anyone has an example of i2c code, i'm confusing to start writing the
code?

azihsan
Hey all

i have finished to build a cross compiled program for i2c, but when i am
tryin to run in my tiny4412 it came PERMISSION DENIED,
so what shuold i do?

azihsan
Hey 
I just solved the problem with chmod +x myExeName

but i got a problem again with my i2c bus channel, when i tried i2c-0 and
i2c-1, the result came up with -1

what should i do?

davef
On your host computer command line type:
   readelf -a <your_cross_compiled_program>

and copy the last 10 lines or so from the output

azihsan
is it like this davef?
File Attributes
  Tag_CPU_name: "ARM1176JZF-S"
  Tag_CPU_arch: v6K
  Tag_ARM_ISA_use: Yes
  Tag_THUMB_ISA_use: Thumb-1
  Tag_FP_arch: VFPv2
  Tag_ABI_PCS_wchar_t: 4
  Tag_ABI_FP_denormal: Needed
  Tag_ABI_FP_exceptions: Needed
  Tag_ABI_FP_number_model: IEEE 754
  Tag_ABI_align_needed: 8-byte
  Tag_ABI_align_preserved: 8-byte, except leaf SP
  Tag_ABI_enum_size: int
  Tag_ABI_HardFP_use: SP and DP

azihsan
hey davef it seems i succeed to open the i2c file.
but i cant read my ADC ic, i use this code, is there something wrong?
because i completely succeed to run the program in my Pi.



  
    int numberBytes = ADS1110_Buffer;
    int bytesRead = read(file, this->dataBuffer, numberBytes);
    if (bytesRead == -1){
        cout << "Failure to read Byte Stream in readFull()" << endl;
    }

davef
Tag_CPU_name: "ARM1176JZF-S"
Tag_CPU_arch: v6K

These indicate that at least your have cross-compiled it for ARM. I am not
familiar with the exact name and arch, so you have to look those up.

davef
Sorry, unless I actually tried it myself I can not be of anymore help.

I think for anyone to help they would need to see the whole program.

azihsan
Yes davef thanks a lot anyway. 
i will continue it again.