<tux7> new online community www.blitzpost.com (email, blog, chat, photos..)
<qi-bot> [commit] Werner Almesberger: KiCad dislikes dots in file names: renamed u.fl-receptacle to u-fl-receptacle http://qi-hw.com/p/ben-wpan/7c2542e
<qi-bot> [commit] Werner Almesberger: ants/: Passive board for antenna testing. http://qi-hw.com/p/ben-wpan/424ddce
<qi-bot> [commit] Werner Almesberger: CAM process for the antenna test boards. http://qi-hw.com/p/ben-wpan/3f28b92
<qi-bot> [commit] Werner Almesberger: ants/ants.brd: add exclusion zone around ground pad on top layer http://qi-hw.com/p/ben-wpan/e58985d
<qi-bot> [commit] Werner Almesberger: modules/usb_a_plug_smt.fpd: enlarge signal pads by 0.2 mm http://qi-hw.com/p/ben-wpan/f8ff8bb
<qi-bot> [commit] Werner Almesberger: cntr/: version 3 with simplified input circuit. http://qi-hw.com/p/ben-wpan/b7eb4b9
<qi-bot> [commit] Werner Almesberger: Updated cntr.sch for BOM processing. Fixed omission in atrf.sub http://qi-hw.com/p/ben-wpan/f2ab3cf
<qi-bot> [commit] kyak: NAND DATA Partition offset and reflash_ben.sh fixed according to 512 http://qi-hw.com/p/openwrt-xburst/14ac577
<xiangfu> kyak: thanks for fixed "Partition offset"
<bartbes> so did anybody have a working method of making a ben talk to an arduino without hardmodding either?
<wpwrak> bartbes: does the arduino have usb ?
<bartbes> usb client
<wpwrak> bartbes: then you could use a pc as a relay. ben sends stuff to relay program on the pc, pc sends stuff to the arduino, and vice versa
<bartbes> but that's not what I want..
<bartbes> I'm more interested in serial comms between the two
<bartbes> iirc there's ttl on it
<wpwrak> bartbes: alright, if this fits your definition of "not hardmodding", you could make a uSD-shaped pcb that plugs into the ben's uSD slot and that connects on the arduino on the other side. then define your own serial protocol over it.
<bartbes> oh yes, because I have the tools to do that..
<bartbes> anyway, there was some dude who was working with it
<bartbes> but who..
<wpwrak> bartbes: if the arduino isn't 3.3 V compatible, you'd need some level adaptation. probably not more than some resistors.
<wpwrak> bartbes: you mean Ornotermes ?
<wpwrak> bartbes: (tools) tools to make a PCB in general or to cut one in that shape ?
<bartbes> both
<wpwrak> hmm. your choices seem to be very limited :) does the arduino have wifi ?
<bartbes> no
<bartbes> I just remember some guy hooking it up to the serial outputs on the nn
<wpwrak> but isn't that "hardmodding" ?
<bartbes> not if those were the ones beneath the battery
<wpwrak> like, opening it, soldering wires into it.
<wpwrak> okay. then it should be quite feasible. you just have to determine if the arduino is 3.3 V-friendly.
<bartbes> it's 5V, I guess
<wpwrak> the you'll need a voltage divider arduino->ben. add some 100 Ohm series resistor in the other direction too, as protection.
<kyak> mirko: the problems you experience with gcc-mips appear when you build on 64bit host?
<mirko> kyak: yep
<kyak> hm, okay.. need to find 64bit to see what's going on
<mirko> kyak: as our buildhosts are 64bit i had mark it as broken for now
<mirko> didn't have time to investigate - was sth. like sizeof failed or so
<kyak> the problem is known
<kyak> i'll contact wolfspraul for an account on build host
<kyak> then i would be able to investigate
<mirko> kyak: if wolfgang agrees but has no time to do so yet, i could create you one as well
<mirko> jfi
<kyak> ok, thanks
<kristianpaul> bartbes: beneath battery is not recommended
<kristianpaul> bartbes: i think tuxbrain said is alaso 3v3 compatible...
<kristianpaul> but not sure
<kristianpaul> just try feed it with 3v3 and see how it goes
<wpwrak> kristianpaul: hmm, what's this burnt smell ? :)
<steve|m> or how my grandfather used to say: "the smell of radio" :)
<kristianpaul> wpwrak: :p
<kristianpaul> ok lests wai tusbrain and tell us his experiences
<kristianpaul> or dig on the list i'm sure he said something about ti
<qi-bot> [commit] bartbes: Updated nlove Makefile to point to newer revision http://qi-hw.com/p/openwrt-packages/7e2ca97
<bartbes> oh heh, that explains the hilight :P
<rafa> is Ron in this channel?
<rafa> I can not believe his questions.. and maybe he is just kidding
<rafa> no idea
<kristianpaul> how i can do a nanosecond delay...
<rafa> kristianpaul: man nanosleep?
<wpwrak> kristianpaul: man nanosleep :)
<kristianpaul> ahh
<kristianpaul> soryy !
<rafa> haha
<rafa> werner is smart :D
<kristianpaul> ah as simple as islep
<kristianpaul> uslepp*
<kristianpaul> usleep*
<wpwrak> rafa: let's see how it takes him to find out what these functions really do :-)
<wpwrak> rafa: (wiki) well, the front page could be a bit less yahoo and a bit more google :)
<kristianpaul> ". The suspension time may be longer than requested because the argument value is rounded up to an integer multiple of the sleep resolution or because of the scheduling of other activity by the system" Waht??
<kristianpaul> i may better follow  the RTC
<wpwrak> rafa: he's quick :)
<wpwrak> kristianpaul: inside the kernel, you have udelay and such, which don't sleep but busy-loop
<rafa> wpwrak: (wiki): yeah.. but it does not give him reasons to ask stupid questions :)
<kristianpaul> yeah sorry i should g00gl3d before
<wpwrak> rafa: i find his way of asking questions quite interesting. he asks as if he would ask on behalf of others, like a reporter.
<rafa> kristianpaul: are you replying about "stupid questions"?.. I was talking about that "Ron"
<kristianpaul> rafa: ah yes about that :p
<kristianpaul> i just feel that  i shoudl supposed that if i  was using usleep there was a nanosleep as well
<kristianpaul> ok rafa
<kristianpaul> wpwrak: Linux deprecates the usleep( ) function, replacing it with nanosleep( ), which pro-
<kristianpaul> vides nanosecond resolution, and a smarter interface:
<kristianpaul> according to Linux System programing book
<wpwrak> kristianpaul: what are you trying to do ? send a pulse of a precise width ?
<kristianpaul> wpwrak: yeap
<kristianpaul> well more o less precise
<wpwrak> kristianpaul: how precise ? ;-)
<wpwrak> i.e., what are the upper and lower bounds ?
<kristianpaul> min 10ns
<kristianpaul> max...  well there is no max value in the datasheet...
<wpwrak> perfect :)
<wpwrak> this is running on the ben ?
<kristianpaul> Xbusrt right
<wpwrak> then you probably don't need any delay. just set and immediately clear. you'll get something like a 200 ns pulse.
<wpwrak> (if in doubt, check with a scope :)
<kristianpaul> arggg !
<kristianpaul> i DONT hace a scope fot measure that yet :(
<kristianpaul> i'm working on that too :-)
<wpwrak> good :) you need a decent scope for this sort of work. or a lot of patience and extreme luck ;-)
<kristianpaul> i realized that some weeks ago
<kristianpaul> 200ns pulse?? is linux soo slow???
<kristianpaul> wpwrak: whats the min pulse you got and luckylly measured?
<kristianpaul> ha
<wpwrak> linux has very little to do with this :) remember that i get ~2 Mbps when i do one-way "SPI".
<wpwrak> ah, let's see ...
<kristianpaul> if iw was supposing to measure a max of 12ns clock delay is inposible using the Xburst IO then?
<kristianpaul> yeah i saw the mail
<kristianpaul> anf the graphs ..
<kristianpaul> and*
<kristianpaul> wpwrak: you meant is hardware fault?
<wpwrak> what exactly do you want to measure ? the duration of a pulse ? whether a pulse has happened ?
<wpwrak> yup, hardware isn't so fast
<wpwrak> 190-200 ns per cycle. so the pulse is about 100 ns
<wpwrak> gcc unrolls the loop a little (2x), but there's no difference in the signal. so the speed is determined by the bus, not the core. (as expected)
<kristianpaul> measure <- the duration of a pulse
<wpwrak> will there be many pulses or just one ?
<kristianpaul> many
<kristianpaul> is a clock
<kristianpaul> data is synced with clock and SYNC sinal
<kristianpaul> signal
<wpwrak> naw, i think there's no way to do this with just the cpu. it's too fast.
<wpwrak> 10 ns is actually even difficult for many scopes.
<kristianpaul> well my second option is just follwo the SYNC pulse
<kristianpaul> an catch the 3 bits data
<kristianpaul> s/3/4
<wpwrak> kristianpaul: but what are you trying to do anyway ? it's not your GPS stuff. that one is much much slower.
<kristianpaul> SYNC pulse is 2.048 M/s
<kristianpaul> wpwrak: in part the question was related to GPS
<kristianpaul> stuff
<wpwrak> which chip is it again ? 4162 ?
<kristianpaul> yup
<kristianpaul> clock signal is 8.192 MHz btw
<kristianpaul> wait a min
<kristianpaul> yes i was reading the Logic Timing Characteristics
<kristianpaul> and units are ns
<kristianpaul> wpwrak: in full datasheet is page 16
<wpwrak> oh, but why do you care about this parameter ? just sample on the rising edge, not falling edge+tDEL
<kristianpaul> hmm
<wpwrak> of course, you're probably still too slow to catch data going at 8 MHz. let's see ....
<kristianpaul> sure
<wpwrak> yup. 10 Mreads in 2.75 s. that's about 3.6 Mreads/s. peak may be a bit higher. i didn't raise the priority or such. let's say, maybe 4 Mreads/s
<wpwrak> but that's what you have an FPGA for ;-)
<wpwrak> or CPLD)
<kristianpaul> yeah sure
<kristianpaul> but i'm trying to use what we already have and more coming
<kristianpaul> this little computer called nanonote :p
<kristianpaul> then if is really inposible move to FPGA stuff
<kristianpaul> as you with wpan
<wpwrak> don't you have a SIE ?
<kristianpaul> i do
<kristianpaul> is on righ now actually
<kristianpaul> actually i'm trying to read ADC using C code not C++ wich i dont uderstand :-/
<kristianpaul> on Jlime :D
<wpwrak> so there's the solution :) the ben can't do this without extra hardware. so you can develop first with the SIE and then make some optimized hardware
<kristianpaul> well yes
<kristianpaul> but Wolfagang insist in look the single Ben first
<kristianpaul> SIE was second
<kristianpaul> i dont want conclude tha the Ben is not capable of
<kristianpaul> yet
<kristianpaul> i need do more test
<kristianpaul> ah sure i cant meaure clock
<kristianpaul> and by then data...
<kristianpaul> just a SYNC pulse :-|
<kristianpaul> i just tought, okay, i can wait for SYNC then capture the data in the spected time
<kristianpaul> and verify timing later..
<viric> kristianpaul: what do you try to do btw?
<kristianpaul> but not make sense because i cant follow rise edge at 8Mhz..
<kristianpaul> viric: hello
<viric> hello. Sorry for coming late :)
<viric> I was just curious
<kristianpaul> sure
<wpwrak> kristianpaul: you could perhaps add a flip-flop to toggle on each SYNC. the use this as nSS for SPI.
<wpwrak> that way, we will receive at least some data
<wpwrak> but what a mess :) better to use a SIE. make things work at all first, then optimize the implementation
<kristianpaul> viric: can you read this i'm not RTMF guy, just want see what people tought about reading it http://en.qi-hardware.com/wiki/GPS_Free_Stack
<kristianpaul> wpwrak: mess <- indeed
<viric> ah gps
<wpwrak> (SIE) that is, if you're comfortable with programming your FPGAs. you've done that before, haven't you ?
<kristianpaul> wpwrak: and thats the aquistion step, i'm taling about do 20 FFT at the same time on Ben hardware ;-)
<kristianpaul> or simulation on the go in order to do signal tracking
<wpwrak> (fft) yes, yes, there are some very interesting problems in all this ;-)
<viric> kristianpaul: I think I understood what you deal with
<kristianpaul> viric: :)
<viric> for the fft, I bet the simd instructions will help
<kristianpaul> yeap !
<kristianpaul> not in toolchain yet btw..
<kristianpaul> just soem asm examples at dingux wiki so far..
<wpwrak> real men program in assembler :)
<kristianpaul> or mplayr code.
<kristianpaul> wpwrak: yes !
<wpwrak> (or hex code :)
<kristianpaul> well not
<kristianpaul> but asm is really usefull
<viric> but the problem is that the gnu assembler does not know those instrsuctions still
<viric> so you will have to either go hex, or use the awk parser
<kristianpaul> simd is under NDA or soemthign for Ingenic doc i think
<kristianpaul> or ir ead in the qi mail list, i wasnt suscribed in that time
<viric> but the dingo wiki has the instructions listed
<kristianpaul> yep
<kristianpaul> well but talkign back about IO i'm about to tell Wolfgang, Ben is not capable of...
<wpwrak> the really tough guys write their code like this: ((void (*)()) "code")()
<kristianpaul> ha
<wpwrak> (ben not capable) yup. needs at least a bit of a CPLD to help. you probably also want to rearrange the bits, for easier calculation.
<kristianpaul> yes
<kristianpaul> thats other part of the hisytory
<kristianpaul> well for now no CPLD but i can model the hardware on SIE
<wpwrak> perfect. you can then generate test patterns with the cpu and verify that your fpga does what it's supposed to do.
<kristianpaul> yp
<kristianpaul> yup*
<kristianpaul> viric: i'm not aware of use or utility of this awk parser?
<kristianpaul> well i know a bit of awk
<kristianpaul> but what you inted with it?
<kristianpaul> intend*
<viric> I think the toolchain from ingenic provides an awk script that catches the simd instructions, and codes them to hex
<kristianpaul> oh
<viric> I have not used it... but I heard about it here.
<viric> So they did not modify gas to accept their simd instructions, but made this awk script instead
<kristianpaul> i would like to see an example
<viric> Isn't their mplayer written this way?
<kristianpaul> hmm rafa  know more about it
<kristianpaul> i jusre remenvber i found once a public pdf about simd and they said, ok this is C next we will use asm}
<kristianpaul> for simd
<viric> And you will also need floating point calculations for the gps
<viric> I imagine
<kristianpaul> yeap
<viric> floating point fft may be overkill
<kristianpaul> indeed
<kristianpaul> this is hardware jobs
<viric> What fpga has the SIE?
<kristianpaul> even my 1Ghz got slow soing some gps fftp tasks
<kristianpaul> viric: xilixn 500K
<viric> spartan3e?
<kristianpaul> i think
<kristianpaul> let me check
<viric> Those have quite enough multipliers, but not floating point multipliers I think
<viric> yes, spartan3e
<viric> btw
<viric> what determined the dimensions of the nanonote?
<viric> Design related to the keyboard/screen?
<viric> or more about how to fit all what is inside
<viric> ?
<kristianpaul> mechincal design well
<kristianpaul> i think this nanonote was an already made device in china market
<viric> Ahh
<kristianpaul> i think
<kristianpaul> but i'm not Wolfgang :p
<viric> ok :)
<kristianpaul> and then qi start doing reverse eng to it
<viric> I'll go eat something. Thank you and good luck for this gps job
<kristianpaul> and get allowed to
<rafa> viric: it was a dictionary before qi
<kristianpaul> i saw a doc about it
<viric> ahh ok
<kristianpaul> yup
<kristianpaul> digital dictionary
<kristianpaul> :p
<kristianpaul> in color !
<rafa> haha :)
<viric> well, open software also started copying. :)
<viric> why not open hardware.
<kristianpaul> yes
<kristianpaul> but the mechanical part is not well open, besides the scans from wpwrak
<rafa> kristianpaul: (dictionary in color) and now we are trying to play PSx games there :D
<kristianpaul> rafa: :D
<kristianpaul> but gps will break it or burn it  :p
<kristianpaul> rafa: you know how simd code is included in mplayer?
<kristianpaul> but latelly you still using mplayer from ingenic?
<rafa> kristianpaul: I have not idea
<kristianpaul> lol
<kristianpaul> ok
<kristianpaul> i hope you have some..
<rafa> kristianpaul: I have a theora player ready for resellers/qi ;)
<kristianpaul> ohh
<rafa> kristianpaul: well, almost ready
<kristianpaul> it uses simd?
<kristianpaul> cause theoura is high cpu demanding?
<kristianpaul> ahh i remenber you find out how really compress at the limit
<rafa> kristianpaul: the libtheora player example on sdl using fb is okey so far.
<kristianpaul> :D
<rafa> kristianpaul: my previous problems on tests were the libtheora player example with sdl using x11, no fb
<rafa> then I realized that we can tell sdl to use fb directly
<kristianpaul> rafa: talking about fb i remenber now you said Xfbdev is part of X11 right
<kristianpaul> but X11 are are a bunch of sofware not just the xserver, right?
<kristianpaul> ubt sdl using fb directly is like ignore Xfbdev?
<kristianpaul> or it can ben on top of it?
<rafa> kristianpaul: you can run x11.. but before to run a sdl application you can set "export SDL_VIDEODRIVER=fbcon"
<rafa> so the sdl app will use fb
<rafa> no x11.
<rafa> and you would be still running x11
<kristianpaul> and no conflict?
<rafa> well, maybe you can not get x11 desktop easily until sdl app exists
<rafa> but for a player that is okey
<kristianpaul> of course
<kristianpaul> ahh that the lovely part of this "just one thing at the time" devices
<kristianpaul> ignoting multitasking for not multimedia apps
<kristianpaul> ignoring*
<kristianpaul> OT but i could resist sahre this link http://topex.ucsd.edu/gmtsar/
<kristianpaul> now we can sleep in calm in case we needed a radar at home , jsut in case ;-)
<qi-bot> [commit] Werner Almesberger: ants.brd: add guide lines for placement of bottom adhesive http://qi-hw.com/p/ben-wpan/53f2fc7
<qi-bot> [commit] Werner Almesberger: ants.brd: added ground fill exclusion zone under connector (again ?) http://qi-hw.com/p/ben-wpan/10b4b51
<qi-bot> [commit] Werner Almesberger: Firmware support for CNTR version 3. http://qi-hw.com/p/ben-wpan/190e8f0
<qi-bot> [commit] Werner Almesberger: Minor CNTR layout cleanup. http://qi-hw.com/p/ben-wpan/4c90530
<kristianpaul> wpwrak: ok this timing you said thta max recomended i/o rate of 2.4Mpbs is valid for SPI, but what about GPIO
<kristianpaul> ?
<kristianpaul> or SPI is uspposed to faster than gpio?
<kristianpaul> ahh you are working SPI port as gpio !!
<kristianpaul> got my answer :)
<wpwrak> yup
<kristianpaul> and SPI as SPI it self?
<wpwrak> oh wait. no ,the other way around. i was doing an SPI imitation doing bit-banging.
<kristianpaul> i noticed that in Jz4720_ds 3.9.2 SPI Module Timing is empty...
<wpwrak> yeah, the documentation isn't particularly satisfying. you can find some hints - such as max speeds - in the features overview, though.
<daren226> hi goodnight
<daren226> can anyone help me with my pc
<daren226> i need help plz.
<kristianpaul> finally good a good decent LTP DB25 cable
<kristianpaul> s/good/got
<kristianpaul> nah my desk is a mess icant find the cpld :/
<kristianpaul> wee
<kristianpaul> '1': Programming completed successfully.
<kristianpaul> :D
<kristianpaul> now, what can i do with  a 64 Macrocell CPLD..
<kristianpaul> besides a tris stae buffer implementation..
<kristianpaul> a flip flop ;-D
<aisa> Is anyone here that is familiar with our mediawiki installation?
<kristianpaul> why?
<aisa> Sorry, dur.
<kristianpaul> aisa: wiki it self now http://en.qi-hardware.com/wiki/Server_Setup#MediaWiki
<kristianpaul> s/now/know
<aisa> On the recent changes page, we have an atom feed.
<aisa> that includes full diff history.
<aisa> I don't know if this is provided by a plugin or whether it is because we're running mediawiki 1.17.
<aisa> I was reviewing the Server_Setup page,
<aisa> but I'm guessing fidelio doesn't host our mediawiki,
<aisa> as the document is not matching the filesystem on fidelio.
<kristianpaul> no fidelio dont
<kristianpaul> is other srver i forgot name now
<kristianpaul> turandot.qi-hardware.com
<kristianpaul> i think...
<aisa> kristianpaul: thank you, I wrote to the mailing list.
<wpwrak> oh, brilliant. silabs have chips with 32 kB and 64 kB of flash, and they both return the same ID. very convenient for flash programmers :-(
<kristianpaul> juan64bits: oyu  here !!
<kristianpaul> I have tons of question
<kristianpaul> in spanish :)
<juan64bits> tell me
<juan64bits> listo
<kristianpaul> ok estoy haciendo en C los que tenias en C++ para hablarle al ADC
<kristianpaul> entonces
<kristianpaul> pasos a seguir.
<kristianpaul> primero poner 0x08 en el CLKDIV?
<kristianpaul> mejor dicho
<kristianpaul> antes de eso
<kristianpaul> mirando ADCw.cpp
<kristianpaul> no entiendo ADCw::adcConfig
<kristianpaul> menos ADCw::adcCheckBufferFull
<kristianpaul> yo entiendo o creoo enteneder
<kristianpaul> que la deia es verificar si el comando de escritura fue exitoso leyendo el CMD_start
<kristianpaul> deberia ser 0 luego de dejarlo en uno??
<kristianpaul> o...
<juan64bits> exacto... y el adcConfig lo que hace es escribir los 4 bytes de configuración
<kristianpaul> pero que order
<kristianpaul> ?
<juan64bits> oerder?
<kristianpaul> reloj va primero en 00??
<kristianpaul> orden***
<juan64bits> si.... clkdiv, size_l, size_h y cmd
<kristianpaul> y al final es que miro entonces el CMD-Start a ver si ya cambio de 1 a 0??
<kristianpaul> y estos pasos tengo que hacerlos siempre para cualquir cosita?
<kristianpaul> digamos cuando quiera leer el ADC, no podria no mas cambiar cmd y ya?
<kristianpaul> o..
<juan64bits> no, pues sólo para la lectura
<kristianpaul> quien es solo lectura?
<juan64bits> bitssi, pero la configuración que escogí inicialmente fue de
<juan64bits> 8 bits
<kristianpaul> ah??
<juan64bits> y como escribo y leo enteros entonces el procesador siempre me lee paquetes de a 4 bytes
<kristianpaul> a ver
<kristianpaul> ahhh
<kristianpaul> toca mandar el "paqueton" junto ??
<juan64bits> si sólo escribo CMD entonces los otros lo escribe con ceros jejeje
<kristianpaul> hmm por eso los + en el config
<kristianpaul> claor ""
<juan64bits> aja
<kristianpaul> pero..
<kristianpaul> conr razon..
<juan64bits> eso se puede mejorar usando sólo chars
<kristianpaul> orque no uso enteros sin signo?
<kristianpaul> ah bueno char pues es 8 bits
<juan64bits> aja, en los ejemplos básico de acceso usamos el unsigned char
<juan64bits> pero esto nos servia para mostrar que se podía hacer cosas como lo de la lectura de 4 bytes
<kristianpaul> ahh claro entonces ya se por que usas el  &0x20000000 en cechkbuffer pues lees los 4 bytes d euna
<kristianpaul> checkbuffer es para esperar el cmd_start cierto?
<juan64bits> si
<kristianpaul> estaba voletando y volteando y se me paso el tipo de dato...
<kristianpaul> jeje