DocScrutinizer05 changed the topic of #qi-hardware to: 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 and http://irclog.whitequark.org/qi-hardware
wej_ has quit [Ping timeout: 265 seconds]
wej has joined #qi-hardware
atommann has joined #qi-hardware
<nicksydney> http://anonabox.com/home.html .. thoughts ?
<whitequark> it's ... misrepresented at best
<whitequark> there is a reason tor browser bundle exists. if you send all your usual cookies through tor, you are immediately identifying yourself
<whitequark> in a way, it makes things worse by giving you a false sense of security
<wpwrak> eintopf: there are no known cases of ebola in argentina so far, and i'd be a rather unlikely candidate for becoming the first one ;-)
mth_ has joined #qi-hardware
<wpwrak> but it's the long columbus day weekend in the americas. well, columbus day for those of european heritage, "day of cultural diversity" (or such) for those who trace back their origin to natives
uwe_ has joined #qi-hardware
kanzure_ has joined #qi-hardware
mithro_ has joined #qi-hardware
luke-jr_ has joined #qi-hardware
panda|z has joined #qi-hardware
uwe__ has quit [*.net *.split]
mithro has quit [*.net *.split]
jluis has quit [*.net *.split]
Luke-Jr has quit [*.net *.split]
whitequark has quit [*.net *.split]
unclouded has quit [*.net *.split]
kanzure has quit [*.net *.split]
mth has quit [*.net *.split]
panda| has quit [*.net *.split]
mithro_ is now known as mithro
luke-jr_ is now known as Luke-Jr
jluis has joined #qi-hardware
whitequark has joined #qi-hardware
unclouded has joined #qi-hardware
wolfspraul has quit [Ping timeout: 250 seconds]
nicksydney has quit [*.net *.split]
dos1 has quit [*.net *.split]
qi-bot has quit [*.net *.split]
Coyo has quit [Ping timeout: 260 seconds]
Coyo has joined #qi-hardware
nicksydney has joined #qi-hardware
qi-bot has joined #qi-hardware
dos1 has joined #qi-hardware
fmeerkoetter has joined #qi-hardware
fmeerkoetter has quit [Ping timeout: 250 seconds]
wolfspraul has joined #qi-hardware
fmeerkoetter has joined #qi-hardware
fmeerkoetter has quit [Ping timeout: 250 seconds]
fmeerkoetter has joined #qi-hardware
fmeerkoetter has quit [Ping timeout: 250 seconds]
fmeerkoetter has joined #qi-hardware
SyntaxTerror has joined #qi-hardware
SyntaxTerror has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wej has quit [Read error: Connection reset by peer]
wej has joined #qi-hardware
valhalla has quit [Ping timeout: 240 seconds]
valhalla has joined #qi-hardware
atommann has quit [Ping timeout: 245 seconds]
<eintopf> wpwrak: happy columbus day!
SyntaxTerror has joined #qi-hardware
<SyntaxTerror> anyone around?
<DocScrutinizer05> about my quick and dirty approach to talk to PPSU (/dev/ttyUSB0): it has a downside of creating "-rw-r--r-- 1 root root 5 Oct 14 13:12 /dev/ttyUSB0" when the PPSU is not properly enumerated ;-)
<DocScrutinizer05> wondered why stuff suddenly fails, after I disconnected (and disassembled) the PPSU. Then I noticed this:
<DocScrutinizer05> saturn:~ # ll /dev/ttyUSB*
<DocScrutinizer05> -rw-r--r-- 1 root root 5 Oct 14 13:12 /dev/ttyUSB0
<DocScrutinizer05> crw-rw---- 1 root dialout 188, 1 Oct 14 13:12 /dev/ttyUSB1
<wpwrak> surprisingly, there doesn't even seem to be a redirect in bash that gives you write access without also implying O_CREAT. maybe i just didn't find it, or you have to use zsh or such ;-))
SyntaxTerror has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<DocScrutinizer05> wpwrak: might be related to permissions of parent dir. But maybe you can help me out how to check *programmaticaly* in shell script if a file is a character special device file?
<wpwrak> you can use "test". (man test / help test)
<DocScrutinizer05> ooh, and about create vs write: it's about >> and some parameter
<DocScrutinizer05> aaah test, that's been it, thanks
<wpwrak> but ... this still has a race condition: if the USB device disappears between test and >... access, you still get a new file
<DocScrutinizer05> sure
<wpwrak> and yes, you can prevent creation with permissions
<wpwrak> a bit fragile, though. but as a just-for-joerg-at-home solution, why not.
<DocScrutinizer05> parameter = noclobber
<wpwrak> noclobber should still create it if it doesn't exist
<DocScrutinizer05> err, I'm pretty sure it's meant to fail when file does exist, for >. and to fail when file does not exist, for >>
<DocScrutinizer05> at least I'm sure I've read this somewhere
<DocScrutinizer05> -C
<DocScrutinizer05> If set, bash does not overwrite an existing file with the >, >&, and <> redirection operators. This may be overridden when creating output files by using the redirection operator >| instead of >.
<DocScrutinizer05> isn't what I recal it been
<DocScrutinizer05> it's missing the >> aspect
<wpwrak> maybe write a C program that opens argv[1] without O_CREAT, then forks your shell script with the fd number as first arg ? then you can do your stuff in shell with a properly set up fd
<wpwrak> well, or exec the shell. no fork needed if you want to optimize
<wpwrak> (C) or any other real language. plenty of choices ;)
<DocScrutinizer05> meh
<DocScrutinizer05> I'm hardly motivated at all to check for type and existence of ttyUSB0
mth_ is now known as mth
atommann has joined #qi-hardware
<wpwrak> all you want is get rid of the O_CREAT. well, you could also write a wrapper library that removes O_CREAT from calls that open something in /dev. that way, you don't need to change your application
fmeerkoetter has quit [Quit: Konversation terminated!]
SyntaxTerror has joined #qi-hardware
<eintopf> wrapper library for systemcalls, I always search something like that to link other code to it
<eintopf> for example, unstable closed source software and some watchdog which restarts the unstable software
<wpwrak> LD_PRELOAD is your friend :)
<eintopf> wpwrak: yea, I know this, but for systemcalls? I want the normal behaviour
<eintopf> so only some call open_wrapper, afterwards then it should call open(2)
<eintopf> from libc
<eintopf> wpwrak: this should possible? It's like torsocks
<eintopf> torsocks is wrapper for socket, send, recv etc...
<eintopf> to make everything via tor, otherwise you need always applications with SOCKSv5 proxy support
<wpwrak> sure. there ought to be some tutorials on the net. it used to be "deep wizardry", but now it's pretty well-established hackery
<eintopf> and very important also wrapper for gethostbyname(2)
<eintopf> mhh
<eintopf> okay
<eintopf> gethostbyname isn't a systemcall, yea
<eintopf> that's something else, because readout also /etc/resolv.conf
<eintopf> I think :/
<eintopf> wpwrak: okay, maybe when I have time I will create a library where people could add easily code for that
<eintopf> libhack
<wpwrak> LD_PRELOAD is not limited to syscalls
<eintopf> yep
<eintopf> I know, at my university I compiled a second rootfs in $HOME/local
<eintopf> because the pool environment is stupid
<eintopf> they install libs and not dev debian packets
<eintopf> and also, there was no autoconf and automake
<eintopf> and then I make a:
<eintopf> export LD_LIBRARY_PATH="$HOME/local/lib:$LD_LIBRARY_PATH"
<eintopf> also for PKG_CONFIG_PATH
<eintopf> and everything else
<eintopf> my co-students want's always to know I can install new software on university pc's...
<eintopf> but I told their "You don't wanna know that"
<eintopf> because after system upgrade... I can recompile everything
<eintopf> but I laugh always, because no autotools are installed
<eintopf> I think the most people do java eclipse programming ;)
<eintopf> so they don't need autotools (Oh yea I remember you name it autocrap)
<eintopf> wpwrak: fvwm uses autocrap :P
<eintopf> everything uses autocrap
<eintopf> but the most weird buildsystem is the gcc buildsystem, never understand it
<DocScrutinizer05> ((<wpwrak> all you want is get rid of the O_CREAT)) I hardly could care
<DocScrutinizer05> I first check if ttyUSB is of right type, then I open it for *reading* which will fail if the file doesn't exist
<DocScrutinizer05> ( cat /dev/ttyUSB& )
<DocScrutinizer05> only then I'll open it for writing
<DocScrutinizer05> what annoys me much more is root permissions needed
<DocScrutinizer05> though prolly I should add user to dialout group
arhuaco has quit [Remote host closed the connection]
<DocScrutinizer05> actually I probably should do a find /sys -path '*cp210x*ttyUSB*'
<DocScrutinizer05> the damn thing doesn't give away any hint that it's a PSU
<DocScrutinizer05> they simply added the USB<->RS232 on a separate PCB. Standard, in no way customized. And powered by USB even when PSU is unpowered
<DocScrutinizer05> that's why I never noticed before about the funny side effects of creating ttyUSB0 by my own script
<DocScrutinizer05> the device file only vanishes when unplugging USB
<DocScrutinizer05> you actually need to tell system: "I'm going to plug in a PPSU, please consider next cp210x showing up on USB as Voltcraft PPS-161005!"
<DocScrutinizer05> s/161/16/
<qi-bot> DocScrutinizer05 meant: "you actually need to tell system: "I'm going to plug in a PPSU, please consider next cp210x showing up on USB as Voltcraft PPS-16005!""
<DocScrutinizer05> how would I rename a /dev/ttyUSB to some other more specific name?
arhuaco has joined #qi-hardware
<DocScrutinizer05> a symlink won't help since it doesn't notice when the ttyUSB vanishes
<mth> udev rule?
<DocScrutinizer05> prolly, yep. But I dunno how to rename in such rule
<DocScrutinizer05> wait, udev creates the device, to start with, right?
<mth> yes
<DocScrutinizer05> also it's a tad nasty for a udev rule to go "interactive", i.e. wait answer (or check previously given command) of user, to declare next cp210x as PPSU
<mth> udev does have a SYMLINK option, I presume it also cleans up the link at unplug then
<DocScrutinizer05> ummm, makes sense
<DocScrutinizer05> o/
SyntaxTerror has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<kyak> in case someone missed the global notice: http://bit.ly/1z78rgQ
<kyak> very interesting is how this shit got into their servers in the first place
wej_ has joined #qi-hardware
wej has quit [Ping timeout: 265 seconds]
SyntaxTerror has joined #qi-hardware
<SyntaxTerror> Still looking to chat to someone about putting together a Tizen dev board for us with a specific screen & capacitive touch input size. Get in touch if you know someone, we have budget!
<SyntaxTerror> DM or email me at: anthony@make-us-proud.com
<arhuaco> kyak: That's what I was looking for. No mention of it.
sulky has joined #qi-hardware
kanzure_ is now known as kanzure
viric has quit [Ping timeout: 250 seconds]
FDCX_ has joined #qi-hardware
FDCX has quit [Ping timeout: 260 seconds]
viric has joined #qi-hardware
wej_ has quit [Ping timeout: 250 seconds]
wej has joined #qi-hardware
atommann has quit [Ping timeout: 240 seconds]
arhuaco has quit [Ping timeout: 245 seconds]
arhuaco has joined #qi-hardware
<astr> SyntaxTerror, custom boards are easy with eoma-68, the the hard expencive bit the soc is taken care of so you can make a simple & cheep custom board with the lcd and touch driver and power supply on it that fits around the screen size you want and the eoma-68 card see rhombus-tech.net browse the sitemap and add your self to the mailing list and ask on there. while the website needs updating the project is moving forward
<astr> and any money(orders) would help speed things up
<astr> I belive some work has already been done with tizen on the a20 card
<SyntaxTerror> @astr: thanks for the info! That looks like a neat bit of kit
<astr> SyntaxTerror, crowdfunding is planing around nov~
<DocScrutinizer05> arhuaco: [2014-10-14 Tue 19:02:40] <DocScrutinizer05> http://bit.ly/1z78rgQ is there any info available to mere mortals yet on how this crap crept in? [2014-10-14 Tue 19:02:55] <mist> No more information is available
SyntaxTerror has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
astr has quit [Remote host closed the connection]
astr has joined #qi-hardware
wej has quit [Read error: Connection reset by peer]
wej has joined #qi-hardware
astr has quit [Ping timeout: 240 seconds]
astr has joined #qi-hardware
wej has quit [Read error: Connection reset by peer]
wej has joined #qi-hardware
SyntaxTerror has joined #qi-hardware
wolfspraul has quit [Ping timeout: 255 seconds]
wej_ has joined #qi-hardware
wej has quit [Ping timeout: 265 seconds]
<arhuaco> DocScrutinizer05: In the last comment they say they do not know. Weird...
methril has joined #qi-hardware
methril has quit [Ping timeout: 260 seconds]
methril has joined #qi-hardware
wej has joined #qi-hardware
wej_ has quit [Ping timeout: 250 seconds]
SyntaxTerror has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
methril has quit [Ping timeout: 272 seconds]