Topic for #qi-hardware is now Copyleft hardware - http://qi-hardware.com | hardware hackers join here to discuss Ben NanoNote, atben / atusb 802.15.4 wireless, and other community driven hw projects | public logging at http://en.qi-hardware.com/irclogs
whitequa1k has joined #qi-hardware
whitequark has quit [Ping timeout: 264 seconds]
cladamw has joined #qi-hardware
xiangfu has joined #qi-hardware
rejon has quit [Ping timeout: 245 seconds]
<Ayla> do you know how can I grep the output of a program, if that program writes on a single line?
<Ayla> it writes a progression, and everytime I gain 1%, the line is deleted an rewritten
<wpwrak> tr \015 \012 ? (or whatever the program uses to delete the line)
<wpwrak> note that you still may have problems with stdout buffering
<wpwrak> (and the exact command syntax would be tr '\015' '\012' for the bourne shell)
<Ayla> wow!
<Ayla> thank you!
<wpwrak> was a pleasure :)
<Ayla> yes, I have problems with stdout buffering :(
<wpwrak> that's hard to fix
<Ayla> (I'm trying to add a progression bar to wodim using zenity)
<wpwrak> you could try running it under script -f then tail -t | tr ...
<wpwrak> whatever wodim and zenity are ;-)
<DocScrutinizer05> zenity is great
<DocScrutinizer05> (cmdline gfx toolkit)
<DocScrutinizer05> the progress bar is a itsy bit tricky to handle though
<cladamw> wpwrak, Would it be better to generate *.mod under kicad-lib\modules or localproject\modules ?
Openfree` has quit [Remote host closed the connection]
Openfree` has joined #qi-hardware
<DocScrutinizer05> (ben USB inrush) no, an inductor is definitely not the solution
<DocScrutinizer05> you'll want a switch with current limiter and/or softstart. I.E. a mosfet
<Ayla> new question:
<Ayla> is there a command to add/multiply numbers from command line?
<DocScrutinizer05> yes
<DocScrutinizer05> $(( ))
<DocScrutinizer05> echo $(( 3 * 5 + 8 ))
<DocScrutinizer05> inside braces you don't need $ to expand env vars
<DocScrutinizer05> three=3; five=5; echo $(( three * five ))
<DocScrutinizer05> possibly a bashism though, dunno
<DocScrutinizer05> nope, seems to work on messybox as well
<DocScrutinizer05> also: echo $(( 0x20 )) -> 32
<Ayla> can I do something like this:
<Ayla> echo '$(( 2 + 2 ))' | echo
<Ayla> I have a command that returns the '$(( 2 + 2 ))' string
<DocScrutinizer05> echo | echo doesn't make sense
<Ayla> well, that's an example here
<Ayla> I have a sed command that returns two numbers, on which I'd like to make a percentage
<DocScrutinizer05> and you don't want to execute the result of 2+2 as a command
<DocScrutinizer05> something like echo $(( $(date +%s) / 1000 )) ?
<DocScrutinizer05> echo $(( $(date +%s) % 60 ))
<pabs3> whitequa1k: sounds like slashdot material
<pabs3> whitequa1k: I guess the osmocom folks would be very interested in your findings, SGSII is a pretty common smartphone
<Ayla> heheh
<Ayla> I found it
<Ayla> echo "expr 2 \* 3" | bash
<Ayla> I can return "expr 2 \* 3" on my sed command, and bash will execute the call
wej has quit [Ping timeout: 248 seconds]
<DocScrutinizer05> eval "expr 2 \* 3"
<DocScrutinizer05> though I don't get it why you need to pass thru the "expr" from anywhere inside sed
<cladamw> interesting i got "hole (line 63) not completely inside pad "3" (line 67)" when run fped on http://projects.qi-hardware.com/index.php/p/kicad-libs/source/tree/master/modules/dcjack.fpd
wej has joined #qi-hardware
<DocScrutinizer05> echo $(( $(sed 's/.*/2 * 7/;q' /dev/urandom) ))
<Ayla> $WODIM dev=$BURNER speed=$SPEED -v -dummy -pad -xa -eject $TMP_IMAGE2 \
<Ayla> | stdbuf -o0 tr '\015' '\012' \
<Ayla> | stdbuf -o0 grep 'written' \
<Ayla> | stdbuf -o0 sed -u 's/^Track\ [0-9]\+: \+\([0-9]\+\) of \+\([0-9]\+\).*$/expr \1 \\\* 100 \/ \2/' \
<Ayla> | bash | zenity --progress --auto-close --title="$WTITLE" --text="Burning second data session..."
<Ayla> now it works ;)
gdm has joined #qi-hardware
xiangfu has quit [Ping timeout: 260 seconds]
<qi-bot> [commit] Adam Wang: dcjack.fpd: fixed "hole (line 63) not completely inside pad "3" (line 67)" (master) http://qi-hw.com/p/kicad-libs/667f6c9
Ayla has quit [Quit: dodo]
xiangfu has joined #qi-hardware
xiangfu has quit [Ping timeout: 265 seconds]
cladamw has quit [Quit: Ex-Chat]
cladamw has joined #qi-hardware
compcube has quit [Quit: Leaving]
xiangfu has joined #qi-hardware
rejon has joined #qi-hardware
cladamw has quit [Quit: Ex-Chat]
<qi-bot> [commit] Xiangfu: config.full_system include kmod-ipv6 (master) http://qi-hw.com/p/openwrt-packages/009fea8
rejon has quit [Ping timeout: 255 seconds]
cladamw has joined #qi-hardware
rejon has joined #qi-hardware
<cladamw> wpwrak, i sometimes got "Deleted stale lock file 'home/adam/pcbnew-adam' when opening Pcbnew, what could cause it ?
cladamw has quit [Quit: Ex-Chat]
cladamw has joined #qi-hardware
cladamw has quit [Quit: Ex-Chat]
emeb has joined #qi-hardware
rejon has quit [Ping timeout: 252 seconds]
rejon has joined #qi-hardware
Textmode has quit [Quit: Ex-Chat]
jekhor has joined #qi-hardware
<qi-bot> [commit] Xiangfu: urjtag: disable python bindings (master) http://qi-hw.com/p/openwrt-packages/ee4c2af
emeb has quit [Quit: Leaving.]
cladamw has joined #qi-hardware
jekhor has quit [Ping timeout: 276 seconds]
jekhor has joined #qi-hardware
<wpwrak> cladamw: you get that when you didn't quit pcbnew "cleanly" before
<wpwrak> normally, this is no cause for concern
<cladamw> wpwrak, okay.
<cladamw> wpwrak, and I see threre's no list match in CvPcb for labsw. Why? but I saw Xue did. ... ?
rejon has quit [Ping timeout: 244 seconds]
rejon has joined #qi-hardware
<wpwrak> list match ? there's labsw.cmp, so the footprints are defined
<cladamw> mmm .... i should have said why labsw didn't have *.net ?
<wpwrak> oh, because you can generate .net from the other files
<cladamw> what files are they ?
<cladamw> so does this mean you edited directly labsw.cmp by yourself ? not by CvPcb itself ?
<wpwrak> the inputs are .pro, *.sch, and .cmp. you just start eeschema and make the netlist. then cvpcb should show everything correctly
<wpwrak> well, except if there were incompatible changes in kicad-libs. that may have happened
<wpwrak> i created .cmp using cvpcb. made the netlist, then started cvpcn and associated the footprints
<cladamw> so two directions can be work ? one from Eeschema to generate Netlist then using CvPcb to generate .cmp
<cladamw> and another way is from .cmp then generate .net(like yours)
<wpwrak> eeschema uses the information from .cmp when generating .net. yes
<wpwrak> and cvpcb updates the .net file
<wpwrak> grmbl. to get about 1 kB of optimized SHA-1 code, there are 130+ MB of bzr to download ... (for AVR, avrcryptolib)
<cladamw> wpwrak, okay. I need to give a try. :-)
jekhor has quit [Ping timeout: 256 seconds]
Jay7 has quit [Read error: Connection reset by peer]
kristoffer has joined #qi-hardware
jluis has quit [Ping timeout: 252 seconds]
jluis has joined #qi-hardware
jluis has quit [Ping timeout: 246 seconds]
dandon has quit [Quit: .]
<qi-bot> [commit] Adam Wang: Makefile: added necessary fpd filename to generate mod file (master) http://qi-hw.com/p/kicad-libs/dd2c1a9
lekernel_ has joined #qi-hardware
lekernel has quit [Ping timeout: 246 seconds]
lekernel_ is now known as lekernel
jivs_ has joined #qi-hardware
<wpwrak> nice. 202 footprints in 16 .mod files :)
<wpwrak> err, 46 .mod files
<qi-bot> [commit] Adam Wang: ledsmd.fpd: fixed polarized marker (master) http://qi-hw.com/p/kicad-libs/7be9efc
<cladamw> wpwrak, i'm working on linking components/footprints for m1.cmp , meanwhile checking if the footprint have clear mistakes, then just found one. :(
<cladamw> and the 'make' can auto check a fpd changed, It's good. just make.
rejon has quit [Ping timeout: 265 seconds]
phirsch has quit [Ping timeout: 252 seconds]
phirsch has joined #qi-hardware
wej has quit [Ping timeout: 272 seconds]
wej has joined #qi-hardware
cladamw has quit [Quit: Ex-Chat]
<whitequa1k> pabs3: thanks
Ayla has joined #qi-hardware
lekernel has quit [Remote host closed the connection]
Ayla has quit [Ping timeout: 246 seconds]
Ayla has joined #qi-hardware
wej has quit [Ping timeout: 248 seconds]
cladamw has joined #qi-hardware
wej has joined #qi-hardware
<qi-bot> [commit] Xiangfu: urjtag: compile fine with disable inb outb (master) http://qi-hw.com/p/openwrt-packages/67ac56b
<wpwrak> cladamw: lemme port the PDF generator for footprints, so that we can have a catalog, too
<cladamw> wpwrak, alright, sounds good. that way can be good to search.
<cladamw> wpwrak, when i am doing 'match' work , it's a boring work to match since my brand memory doesn't good enough to recall. So I still open Fped to see their shapes. :(:-)
<wpwrak> yeah, we need better names
<wpwrak> if you go beyond thing like 0603 or QFN32, it gets difficult very quickly
<wpwrak> it would also make sense to have list of all the parts we know, with recommended footprint and recommended symbol
<wpwrak> e.g., YAGEO R123XYZ456 R 0603
<wpwrak> then we could feed this data in to kicad, to make things a little easier
DocScrutinizer has quit [Ping timeout: 244 seconds]
DocScrutinizer05 has quit [Ping timeout: 240 seconds]
DocScrutinizer05 has joined #qi-hardware
DocScrutinizer has joined #qi-hardware
<cladamw> yes, btw, since I had have wiki page with package, it's okay, but it's better to edit such data filled in sch's field. :-)
<wpwrak> the more thing you don't have to look up manually, the better :)
<cladamw> oh ~ yeah!
jekhor has joined #qi-hardware
cladamw has quit [Quit: Ex-Chat]
antgreen has joined #qi-hardware
dandon has joined #qi-hardware
<qi-bot> [commit] Xiangfu: urjtag : replace inb/outb with some simple define (master) http://qi-hw.com/p/openwrt-packages/927287f
xiangfu has quit [Ping timeout: 246 seconds]
xsb has joined #qi-hardware
jekhor has quit [Ping timeout: 252 seconds]
rejon has joined #qi-hardware
larsc has quit [Ping timeout: 240 seconds]
xsb has quit [Ping timeout: 246 seconds]
jekhor has joined #qi-hardware
xsb has joined #qi-hardware
wej has quit [Ping timeout: 272 seconds]
xsb has left #qi-hardware ["Leaving"]
jluis_ has joined #qi-hardware
antgreen has quit [Ping timeout: 245 seconds]
jluis_ has quit [Client Quit]
jluis_ has joined #qi-hardware
wej has joined #qi-hardware
jekhor has quit [Ping timeout: 276 seconds]
jluis_ has quit [Quit: Me'n vaig]
jluis_ has joined #qi-hardware
jluis_ is now known as jluis
jekhor has joined #qi-hardware
emeb has joined #qi-hardware
<qi-bot> [commit] Xiangfu: urjtag: fix the liburjtag.so.* path (master) http://qi-hw.com/p/openwrt-packages/f2a7a0d
xiangfu has joined #qi-hardware
wej has quit [Ping timeout: 248 seconds]
<qi-bot> [commit] Xiangfu: xburst-tools, urjtag : add MAINTAINER (master) http://qi-hw.com/p/openwrt-packages/5fcb64c
wej has joined #qi-hardware
emeb has quit [Ping timeout: 276 seconds]
B_Lizzard has joined #qi-hardware
xiangfu has quit [Quit: Leaving]
jivs_ has quit [Quit: Leaving]
wej has quit [Ping timeout: 272 seconds]
wej has joined #qi-hardware
<whitequa1k> DocScrutinizer: extra fun
<whitequa1k> the boot sequence of that xgold626 is as follows: bootrom -> psi -> ebl -> flash
<whitequa1k> theoretically, it should use a flash rom (because the fw relocates itself to ram)
<whitequa1k> samsung placed ram instead of the "flash rom" chip
<whitequa1k> each time the phone starts, BP is "flashed"
<whitequa1k> even more funny.
<whitequa1k> neither psi nor ebl nor anything else in the chip checks integrity of anything
<whitequa1k> after modifying a model name in the hex editor it still boots and works (makes calls)
<whitequa1k> i want a datasheet for that chip.
<whitequa1k> Samsung policy on tivoizing anything is best described as follows (real code):
<whitequa1k> if(VerifyImage() != 0) returnError();
<whitequa1k> int VerifyImage(void) { return 0; }.
<pabs3> lol
<whitequa1k> I'm not really sure if it is good or bad
<whitequa1k> on the one hand, they don't prevent _me_ from doing anything with that
<whitequa1k> on the other one, they don't prevent anyone from doing anything with _my_ phone
<roh> hihi
jekhor has quit [Ping timeout: 246 seconds]
Jay7 has joined #qi-hardware
<DocScrutinizer51> whitequa1k: seems your module has a STE chip :-D
<DocScrutinizer51> and yes, Samsung might not do much tivoizing
<DocScrutinizer51> SG advanced and SGS2 seem to have STE too
occam has joined #qi-hardware
_whitelogger has joined #qi-hardware