#avr | Logs for 2016-09-12

Back
[01:02:46] <irseeyou> How do I read a 3 byte binary value with 1 byte of it floating point pointers?
[01:02:59] <irseeyou> *Any pointers?*
[01:15:41] <Casper> that ain't a standard number... you will have to handle it by hand probably
[01:23:18] <irseeyou> Casper: I'm trying to read a 19 bit number from a sensor which has some of the information stored as 2^-X e.g. float. So that wouldn't be a standard number? I know arduino has a string formatter that can handle it but I can't find anything on C
[01:24:28] <Casper> in C, you have 8/16/32/64 ....
[01:24:36] <Casper> there is no inbetween
[01:24:58] <Casper> which is annoying, because some 1 bits variables could be quite usefull, but you have to use some macro instead...
[01:27:20] <irseeyou> Casper: If it was for example a 16 bit how would i read that as a float? Maybe I should start there?
[01:27:40] <irseeyou> e.g. it's mixed it has both floating points and int so like 1234.5678
[01:29:28] <Casper> not sure about the most efficient way to deal with that
[01:38:48] <irseeyou> Casper: So I may be reading this wrong, but i figured i'd share. I'm looking at a library for the chip I just ordered, anyway they use a double, read all the registers into a variable and then shift it into the double which I guess handles the floating point issue.
[01:46:19] <Casper> a double is a float
[01:46:24] <irseeyou> yep
[01:47:21] <Casper> look like float and double are the same
[01:47:24] <Casper> both 32 bits<
[01:47:41] <irseeyou> Casper: a float is 4 bytes double is 8
[01:47:49] <irseeyou> 6 decimals for float, 15 for double
[01:49:50] <Casper> https://gcc.gnu.org/wiki/avr-gcc
[01:49:56] <Casper> 4 and 4
[01:50:44] <irseeyou> Casper: I was looking on the C documentation hence probably why that links shows a double as nonstandard
[01:51:11] <Casper> avr variable types are a bit weird here and there
[01:52:06] <irseeyou> Casper: Where can i find a binary representation of a float by chance? Like what place the sign is in what the 2^7 and 2^-7 place are in for example? e.g. like a registers view of it. Do you know of what I could call that?
[01:52:34] <Casper> no idea
[01:56:16] <sabor> irseeyou: https://en.wikipedia.org/wiki/Single-precision_floating-point_format
[01:56:29] <irseeyou> sabor: THANK YOU!!!!
[01:56:32] <irseeyou> <3
[01:56:49] <irseeyou> That is exactly what I was looking for.
[01:56:57] <sabor> you're welcome :)
[01:57:12] <irseeyou> You just made my day, seriously. Been trying to figure this out for hours.
[01:57:42] <sabor> heh
[02:01:52] <Thrashbarg> I didn't understand why a lot of old computer manuals had tables of powers of 2 for positive and negative powers until I understood floating point
[02:03:00] <irseeyou> Thrashbarg: This little table makes everything make sense now. In the library the author bit shifted the 3 bytes by 13 bits which makes perfect sense = 19 bit!
[02:04:57] <Thrashbarg> ah I see
[04:47:50] <amee2k> morning everyone!
[04:49:10] <amee2k> i'm trying to download atmel studio, but after a few minutes the connection gets reset (at a different point every time). i've got outgoing SSH connections that have been stable for hours, so i don't think it is a general network problem
[04:49:25] <amee2k> is there a mirror or something where i can download the installer from a different server?
[04:51:50] <_ami_> amee2k: there is no other way.
[04:52:23] <_ami_> you could try when your network got stable. check with your ISP.
[04:53:33] <amee2k> as i said, my uplink here is stable, and i used SSH to route the connection through a VPS at l3. same result.
[04:53:57] <amee2k> i can't figure out why the connection keeps popping
[04:55:45] <amee2k> pfsense's PPP log puts the last reconnect at over three days ago
[04:59:17] <amee2k> i also downloaded the openoffice installer (150MB) without issues
[05:02:50] <Jartza> amee2k: I had similar troubles few weeks ago, I guess atmel webservers are somehow bonkers
[05:03:01] <Jartza> sent them support request, haven't heard anything
[05:03:52] <amee2k> are there any other sides (like softpedia & co) that are mirroring a reasonably current full installer?
[05:04:00] <amee2k> (sites*)
[05:05:27] <Jartza> no idea
[05:05:34] <Jartza> I use atmel studio so rarely
[05:05:44] <Jartza> as it only works on windows anyway
[05:05:55] <_ami_> amee2k: use avr-gcc instead in meanwhile.
[05:05:58] <Jartza> and I don't really use windows, except in virtual machine if I have to
[05:08:09] <_ami_> Jartza: windows is for ppts :)
[05:08:28] <Emil> >Windows
[05:08:35] <Emil> >Needing it for programming avrs
[05:08:36] <Emil> Wat
[05:09:28] <_ami_> amee2k: if you are a windows fan, then you could use winavr. but its really too old.
[05:09:32] <amee2k> _ami_: thats what i'm doing for years, but i'm looking for the studio specifically to evaluate qtouch for a project
[05:09:47] <_ami_> aha, then cool :)
[05:10:11] <amee2k> so its kind of a holdup that there is a download fuckup right now
[05:10:14] <_ami_> write an email to atmel support regarding that. Atleast they should be notified.
[05:10:42] <_ami_> although they never reply.
[05:13:14] <amee2k> these days, thats what support usually does... sadly.
[05:13:59] <^Richard> get a download resumer to workaround the issue amee2k?
[05:20:06] <DKordic> amee2k: Try with [[http://www.gnu.org/software/wget/][wget]]. There should even be a Windoze binary somewhere. If server supports it it should resume after net splits.
[05:22:40] <amee2k> i have linux and already tried both wget (the download server needs funny cookies or it'll just return a redirect) and resuming downloads (server seems to ignore partial requests)
[05:24:10] <DKordic> IMHO Atmel software is no better than Arduino :) . Don't bother.
[05:24:44] <Lambda_Aurigae> atmel studio is definitely bigger and more bloated.
[05:25:17] <DKordic> It is diagnozed with Windoze :p .
[05:25:40] <DKordic> s/with/as/
[05:25:46] <amee2k> from what i can see, qtouch seems to be icky to use outside of studio. and i only need it for one MCU (front panel IO helper that senses a bunch of touch buttons and runs a small state machine for control sequencing)
[05:26:25] <amee2k> so i'd like to at least try use "the official way" for trying it
[05:27:11] <amee2k> its a casemod project, so i'm kinda stuck with an existing front panel design that i don't want to change substantially
[06:04:47] <amee2k> why does the studio installer warn about potential issues with intel Q965/963 video drivers? shouldn't that be an extremely common chipset? o.o
[06:07:18] <Lambda_Aurigae> it's a microsoft product..
[06:07:52] <Lambda_Aurigae> hell, that thing SHOULD work on an old trident ISA card...not like it needs to do 3D transformations or anything.
[06:09:34] <amee2k> it warns specifically about that intel video driver. doesn't seem to have anything to do with microsoft (unless MS bought Atmel recently)
[06:12:21] <^Richard> do you have visual studio running on your PC already? if so, you'll probably be fine
[06:17:12] <amee2k> no, it is a fresh w7 home premium install
[06:17:46] <amee2k> its an old hp dc7700 that i use as workshop computer
[06:19:39] <^Richard> well sure, atmel studio is free so give it a try anyway
[06:19:44] <^Richard> worst case it doesn't work
[06:20:14] <amee2k> well, it'd be kinda cool if it did work ;)
[06:20:26] <amee2k> even if i'm only going to use it for qtouch based stuff
[06:20:58] <^Richard> i'd say there's a good chance it'll be fine
[06:21:22] <amee2k> i don't terribly care if it is a little slow, as long as it is stable
[06:23:41] <amee2k> the install went through and asked for a reboot (which i let it do). when it came back up, the installer popped up again offering me to do a "repair" or an "uninstall"
[06:23:45] <amee2k> is this normal?
[06:29:31] <Lambda_Aurigae> atmel studio is microsoft visual studio.
[06:30:03] <amee2k> modded out of its ass, lol
[06:30:06] <Lambda_Aurigae> yup.
[06:30:10] <Lambda_Aurigae> as for normal, no clue.
[06:30:12] <Lambda_Aurigae> it won't run on wine
[06:30:18] <Lambda_Aurigae> and I don't run windows.
[06:32:04] <amee2k> i can't find any trace of it in the start menu, so seems like something during the install didn't work o.o
[06:32:59] <amee2k> should i do the repair, or rather uninstall and reinstall?
[06:34:21] <Lambda_Aurigae> repair should be faster
[06:34:37] <Lambda_Aurigae> worst case, you have to reformat the harddrive and hire an exorcist.
[06:37:13] <amee2k> i'm looking for working, not for fast ;)
[06:37:46] <Tom_itx> i'd start over
[06:38:08] <amee2k> so uninstall-reinstall? or with a new windows install?
[06:38:13] <Tom_itx> with a new fresh outta the bag hdd
[06:38:29] <Tom_itx> the previous one has been corrupted with windows already
[06:38:38] <amee2k> ...
[06:38:51] <Tom_itx> just reinstall studio if you must
[06:39:05] <Lambda_Aurigae> amee2k, it all depends on what went wrong....but, you should only need to reinstall studio.
[06:39:15] <amee2k> why is it so difficult to bag all the windows wanabe-hate for a few hours? o.o
[06:39:26] <Tom_itx> i'm somewhat messin with ya here but reinstall studio
[06:39:40] <Tom_itx> i can hate on linux too :D
[06:40:01] <Lambda_Aurigae> I hate microsoft,,,windows hate just flows along with it.
[06:40:09] <amee2k> the windows install is less than two days old. its just windows, and then do "check for updates" until it doesn't find any more. then install studio with the "full" installer (SHA1 matches the one on the website)
[06:40:38] <Tom_itx> by the time it's done doing updates, it owns your pc
[06:41:05] <Lambda_Aurigae> I did a test with windows xp once. 3 identical computers. 3 copies of the same installer. no internet connection.
[06:41:14] <Lambda_Aurigae> did all 3 installs exactly the same at the same time.
[06:41:23] <Lambda_Aurigae> they had different numbers of files on the harddrives when done.
[06:41:58] <Lambda_Aurigae> biggest variance was 35 files.
[06:42:28] <Tom_itx> i've been working on an old dos app lately and it's been so nice...
[06:43:07] <Tom_itx> especially on modern hardware
[06:43:31] <Lambda_Aurigae> Tom_itx, hehe...I've run dos 6.22 and wfw 3.11 on a p-4.
[06:43:45] <Lambda_Aurigae> major memory limitations
[06:43:50] <Lambda_Aurigae> but it was fast.
[06:44:05] <Tom_itx> i've got dos 622 on a ssd with blistering fast compiles
[06:44:26] <Lambda_Aurigae> I might even still have borland C++ somewhere.
[06:44:32] <Tom_itx> same
[06:44:32] <Lambda_Aurigae> from the dos days.
[06:46:00] <Lambda_Aurigae> I used it back in the day to write a program for parsing and working with nielson ratings..
[06:46:22] <Lambda_Aurigae> it was for a company that made and sold commercials and booked commercial time on local tv stations.
[06:46:56] <Lambda_Aurigae> cost of a 30 second commercial varied depending on time of day and show it was airing on...all according to the nielson ratings.
[07:28:38] <pwillard> Honestly, even though we got faster PC's, we still seem to be slower than the DOS622 days.
[07:30:08] <Thrashbarg> Wirth's Law
[07:30:28] <Thrashbarg> also there's a limit to how fast a human can enter data into a computer
[07:33:51] <pwillard> I remember being good at doing one thing at a time... IE; Turbo C++ or Turbo Pascal.
[07:37:35] <Snert> Return() To DOS! Watch DOSman flub up his typing! Watch DOSman edit himem.sys!
[07:38:13] <Thrashbarg> Snert: what? haha
[07:38:34] <Snert> lol :) Coming to an 8088 near you!
[07:38:39] <Thrashbarg> hehe
[07:39:06] <Tom_itx> still better than saving to casette
[07:39:24] <Thrashbarg> or paper tape
[07:39:55] <Tom_itx> think what the tree huggers would say about that now
[07:41:05] <Thrashbarg> my aunt worked at a bank in the 80's in the typing pool. She bought a box of chad to my parents wedding and threw it over everyone
[07:41:11] <Thrashbarg> like confetti
[07:41:13] <pwillard> Original terminals were actually line printers with keyboards added.
[07:41:15] <Thrashbarg> though it made a hell of a mess
[07:41:35] <Thrashbarg> original terminals were repurposed teletypes :P
[07:42:02] <Tom_itx> well enjoy the walk down memory lane... i'm headin out to work
[07:42:07] <Thrashbarg> k
[07:43:31] <pwillard> hehe http://www.woffordwitch.com/images/LA30.jpg
[07:44:09] <Snert> oh lord.
[07:44:37] <Snert> Am so glad I got to just miss that era.
[07:46:30] <pwillard> I recall having to set up some DECservers at one point (a form of terminal server) and all I had was a LA120. It was unnerving as all typo's are saved for all to see.
[07:49:12] <Thrashbarg> when typis\si\os were corrected like that
[07:49:44] <pwillard> yup
[07:49:53] <Snert> The Time Before Copy/Paste
[07:50:11] <pwillard> Try copying and pasting with paper
[07:50:26] <Thrashbarg> scissors and glue
[07:50:28] <Thrashbarg> literal copy paste
[07:50:36] <pwillard> there was no concept of buffer other than the line you were on
[07:50:36] <Thrashbarg> Xerox machine too :P
[07:51:03] <Thrashbarg> yeah
[07:51:10] <pwillard> VT52 was like nirvanna
[07:51:36] <Thrashbarg> heh ESC = <space> <space>
[07:52:06] <Thrashbarg> wait that was ADM-3A :P
[07:54:18] <Thrashbarg> I've got an Intel SDK-85 here which has an optional current loop interface on it. The manual says "if you're lucky enough" to own a CRT terminal you'll need to modify it to work with RS-232
[09:21:08] <_ami_> omg, they have accepted my patch in linux kernel upstream! :)
[12:42:14] <DKordic> _ami_: Congratulations! What kind of patch?
[12:47:18] <cehteh> welcome to the club of immortals :D
[13:39:31] <Jartza> I wish I had some patches I could upstream :(
[13:39:46] <Jartza> but I've always worked for stupid projects where the drivers were kept proprietary