AustNet AustNet Archive Project — IRC Logs
« All channels | Contribute a log »

// #eevblog — 2019-04-01

1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016
00:54:00 <EEVBlog> New EEVBlog Tweet: RT @igorstep: Hey, @eevblog https://t.co/9GMnwoGtsC
03:26:49 Join: Guest|88783 ([email protected]) to #EEVblog
03:27:33 <Guest|88783> hii, I need advice with my job
03:28:50 <Guest|88783> just a quick background, i have been working embedded software engineer for two years now
03:29:10 <Guest|88783> but because its a small company, i cant see much career progression
03:29:50 <Guest|88783> I was offered to buy some shares from the company
03:29:53 <Guest|88783> last year
03:30:12 <Guest|88783> and i took the option as well, however at the time i thought there might be more progression
03:30:22 <Guest|88783> with salary
03:31:25 <Guest|88783> few weeks ago i asked the boss for a salary rise, his answer was at the moment the company is not making enough money therefore he cant afford
03:31:42 <Guest|88783> increase my salary
03:33:00 <Guest|88783> now its been one year and a half since i haven't had any salary rise, this is the beginning of my career, i should see the maximum progression
03:34:40 <T3sl4> if your capability is more than what they're paying, start looking for a new job
03:37:29 <Guest|88783> I have learnt a lot, I am still learning a lot more, At the beginning I was mostly doing microcontrollers and circuits, I have good experience with PIC, TI , rtos. Then I started learning about mobile app development
03:37:39 <Guest|88783> I learnt a bit of android, and swift
03:37:48 <Guest|88783> developed an app to talk over ble to devices
03:37:49 <T3sl4> nice
03:38:24 <Guest|88783> now I have been learning about aws cloud services, and client-server communication
03:38:28 <Guest|88783> there is no one to help
03:38:39 <Guest|88783> I just learn everything from youtube at work
03:38:47 <Guest|88783> so I am still learning a lot
03:39:16 <Guest|88783> thats why i am not sure whether i should leave
03:41:16 <Guest|88783> my background was more electronics, but i am starting to make a shift to programming
03:41:25 <Guest|88783> i find it much easier
03:53:58 Quit: Guest|88783 ([email protected]) Quit: http://www.kiwiirc.com/ - A hand crafted IRC client
04:29:29 Join: randohinn ([email protected]) to #EEVblog
04:29:31 <randohinn> o/
04:29:42 <randohinn> I have a quick ATMEL C related Question
04:30:19 <randohinn> https://pastebin.com/E5RuPMUz see this
04:30:31 <randohinn> See how I'm sotring bits in the long data
04:31:01 <randohinn> When I do ltoa in the loop, is there any way at all to get back the leading 0-s aswell, should there be any?
05:01:47 Join: Bluenote ([email protected]) to #EEVblog
06:36:08 <T3sl4> should? no, ltoa simply doesn't do that and isn't supposed to
06:36:26 Quit: kuon ([email protected]) Connection closed
06:42:36 <T3sl4> randohinn: you either have to patch up the output by padding it with zeroes, or using a different function, like sprintf, or a different method like shifting bits and converting them to chars
06:43:50 <randohinn> Okay, will try
06:48:59 <randohinn> sprintf won't do that though :/
06:51:24 <randohinn> the long is literally 0101010101... sprintf will convert that to anything else, but not give out the string of 0's and ones
06:56:51 <T3sl4> then just do it like uhhh
06:57:21 <T3sl4> for (i = 0; i < sizeof(buffer); i++) { buffer[i] = '0'; }
06:59:00 <T3sl4> actually, skip that, might as well in place
06:59:15 <T3sl4> for (i = sizeof(buffer); i; i--) { buffer[i] = '0' + (data & 0x01); data >>= 1; }
07:00:07 <T3sl4> oh, sizeof(buffer) - 2, since buffer[sizeof(buffer) - 1] = 0 to null terminate the string
07:00:21 <T3sl4> and buffer size declared as you have it
07:00:42 <T3sl4> a tip, you should avoid using generic types: long, int, char, etc., because they aren't fixed length across platforms
07:02:09 <T3sl4> you can look up what they are for a particular toolchain (i.e. avr-gcc on atmega something or other?) but it may be better to #include <inttypes.h> and use uint8_t instead of char, uint32_t instead of long int, etc.
07:03:08 <T3sl4> randohinn: also, there's no guarantee that the interrupt won't fire while data is being read, it's not being accessed atomically
07:03:33 <T3sl4> if that's assurred from how the pins are driven externally, ehhh, whatever, but in general
07:06:09 <randohinn> T3sl4, that for loop with -2 results in... https://imgur.com/a/SFnPhB0
07:06:37 <randohinn> While the actual data I'm reading is 26bits
07:08:17 <T3sl4> do you want them left to right as the column numbers suggest? or isnormal english order
07:09:38 <randohinn> data is MSB first
07:09:51 <T3sl4> ok
07:09:56 <randohinn> 26bit wiegand
07:10:05 <T3sl4> i guess it missed the buffer[0] position or something then
07:11:47 <randohinn> :/
07:13:33 <T3sl4> right, it'll terminate on i=0 instead of executing on i=0 and terminating
07:13:51 <T3sl4> gotta do i = (...) - 1, and use buffer[i-1] inside loop
07:14:05 <T3sl4> don't forget to set buffer[sizeof-1] = 0
07:16:45 <randohinn> Okay
07:16:53 <randohinn> I get output 000000111110001001101100100110 -30bits
07:17:04 Join: Guest|39896 ([email protected]) to #EEVblog
07:17:22 <randohinn> with buffer[sizeof(buffer)-1] = 0;
07:17:22 <randohinn> for (uint8_t i = (sizeof(buffer)-2)-1; i; i--) {
07:17:22 <randohinn> buffer[i-1] = '0' + (data & 0x01); data >>= 1;
07:17:22 <randohinn> }
07:17:46 <T3sl4> use -1 instead of -2
07:18:06 Quit: Guest|39896 ([email protected]) Quit: http://www.kiwiirc.com/ - A hand crafted IRC client
07:18:20 <randohinn> oh, that way
07:19:48 <randohinn> buffer[sizeof(buffer)-1] = 0;
07:19:49 <randohinn> for (uint8_t i = (sizeof(buffer)-2)-1; i; i--) {
07:19:49 <randohinn> buffer[i-1] = '0' + (data & 0x01); data >>= 1;
07:19:49 <randohinn> }
07:19:50 <randohinn> 32bits
07:19:55 <randohinn> of output
07:20:18 <T3sl4> for (uint8_t i = (sizeof(buffer)-1); i; i--) {
07:21:42 <randohinn> buffer[sizeof(buffer)-1] = 0;
07:21:43 <randohinn> for (uint8_t i = (sizeof(buffer)-1); i; i--) {
07:21:43 <randohinn> buffer[i-1] = '0' + (data & 0x01); data >>= 1;
07:21:43 <randohinn> }
07:21:47 <randohinn> same result :D
07:27:26 <randohinn> weird and wonderful :P
07:29:00 <T3sl4> woo!
07:29:00 <randohinn> T3sl4, data should look like this: https://imgur.com/a/4Wvj6i8
07:29:46 <randohinn> What your loop seems to do is slap 8 0's to the beginning
07:30:21 <randohinn> Maybe my ISR is also to blame?
07:30:41 <T3sl4> out of 26 bits?
07:30:53 <T3sl4> are the top 2 bits supposed to be zero?
07:31:07 <T3sl4> then that's correct
07:31:33 <randohinn> yeah, they are
07:31:53 <T3sl4> did you want only the 26/34 bits, not sizeof(data)?
07:32:07 <randohinn> I'd like 26 bits, yeah
07:32:22 <T3sl4> oh
07:32:55 <T3sl4> do i = 26 then
07:33:02 <T3sl4> or 27 or 25, whichever it is
07:33:41 <T3sl4> at this point, preferably with a #define WEIGAND_SHORT_BITS 26 and a #define WIEGAND_LONG_BITS 34 or something like that
07:34:15 <randohinn> there we go, that is perfect
07:34:25 <randohinn> T3sl4, my 34bit reading is wonky anyways...
07:34:27 <T3sl4> so you can assert 8*sizeof(long int) > WIEGAND_LONG_BITS to be sure it's large enough to hold the data, and use that to set buffer size and loop length
07:34:45 <T3sl4> aren't you missing two bits on that, anyway?
07:35:01 <randohinn> where?
07:35:04 <randohinn> on 34?
07:35:09 <T3sl4> what's a long int?
07:35:24 <randohinn> might be, so far I've only gotten like 24bits out of that aswell :D
07:37:30 <randohinn> T3sl4, at least 32bits
07:37:47 <T3sl4> so it's not enough
07:38:22 <randohinn> unsigned should fit?
07:38:30 <T3sl4> sign is 1 bit
07:38:49 * Ampera throws muffins at T3sl4
07:38:54 <T3sl4> also, signed means 31 useful bits plus one sign
07:38:58 <T3sl4> Ampera: \o/
07:39:01 <randohinn> longlong
07:39:49 <randohinn> 34 bits of nonsense...
07:39:51 <randohinn> 1000000000111110001001101100100111
07:40:11 <randohinn> I can detect my facility id...
07:40:29 <randohinn> nevermind
07:40:31 <randohinn> not nonsense
07:40:33 * T3sl4 writes this down
07:40:39 <randohinn> it was nonsense before
07:40:54 <randohinn> longlong made it make sense
07:41:51 <randohinn> awesome, I have a working wiegand to usb firmware :P
07:42:00 <T3sl4> \o/
07:42:12 * T3sl4 needles Ampera with Wiegand wires
07:42:26 * Ampera needles and pinsuh's T3sl4
07:42:42 <randohinn> wiegand is silly
07:43:43 <T3sl4> it's a neat idea, honestly
07:44:06 <T3sl4> and just as good as low frequency RFID cards, which are also plaintext formatted
07:44:19 <randohinn> And I just started getting garbage
07:44:22 <randohinn> 111:?;%]=gm?|?l{??<11>????>?z???~???
07:45:39 <randohinn> at the end
07:46:01 <T3sl4> was buffer not initialized with zeroes?
07:47:44 <randohinn> yup that was it
07:50:19 <randohinn> Trying out JLPCB for the boards to move from perf to pcb :P
07:52:01 <randohinn> PART leave for today
07:52:16 Quit: randohinn ([email protected]) Quit: Leaving
07:53:55 Join: XiaomiBetter ([email protected]) to #EEVblog
07:54:41 Quit: XiaomiBetter ([email protected]) Quit: http://www.kiwiirc.com/ - A hand crafted IRC client
08:08:10 <Halcyon> Morning all :)
08:10:58 <Ampera> Halcyon, I have a new TV and BluRay player with YPbPr out
08:11:05 <Ampera> my dad found it free at the side of the road
08:12:09 <Halcyon> YAY!
08:12:11 <Halcyon> Oh nice
08:12:12 <Halcyon> :)
08:18:50 * T3sl4 hugs Halcyon
08:39:46 <Halcyon> Aww cuddles :D
08:39:50 <Halcyon> I'm officially old today
08:40:29 <T3sl4> and now you're even older
08:40:52 <Halcyon> Yup :)
09:07:43 <coppice> we all get older and more temporalmental
09:09:35 <Ampera> coppice, sounds like it's time to get better jokes
09:42:10 <coppice> these jokes are robust, field proven, and came with extensive warranty cover
09:56:50 <DHess_US> What do you mean I cannot use hydrochloric acid to clean scale out of the dishwasher? Show me where it says I can't!
10:26:50 <EEVBlog> New EEVBlog Tweet: Installing the Phone System of the World Trade Center (Bonus Edition) - ... https://t.co/Izh2WGNPch
10:32:53 <EEVBlog> New EEVBlog Tweet: RT @Chris_Gammell: Sometimes I speed up editing @TheAmpHour to save a little bit of time... https://t.co/Rtqtjcub8F
11:52:30 <EEVBlog> New EEVBlog Tweet: Red goes faster https://t.co/IZvilEBDYs
12:06:36 <EEVBlog> New EEVBlog Tweet: RT @TheAmpHour: This week @eevblog and @Chris_Gammell discuss logic analyzers, layout practice, CPLDs and how heat can stack up inside a de…
12:08:37 <EEVBlog> New EEVBlog Tweet: RT @CanberraDSN: The survey works begin! 📡📏🌏 It has been determined, due to continental drift and Australia moving north at 7 centimetres…
12:10:38 <EEVBlog> New EEVBlog Tweet: Guess what that tab thingo is on the right side and you win THE INTERNET https://t.co/rW110rm6Ay
12:22:56 <T3sl4> so i picked up tim tams ("chewy caramel" type)
12:25:13 <coppice> "so i picked up tim tams" sounds like a nasty infection problem
12:26:52 <T3sl4> apparently everyone in australia has it
12:30:56 <Halcyon> I just got back from the shops too T3sl4
12:30:59 <Halcyon> And bought Tim Tams
12:35:37 * T3sl4 has a few with a coffee
12:37:48 <Halcyon> Apparently some people like to bite the ends off and suck their beverage through it. Never tried it, can't vouch for how well it works.
12:38:06 <Halcyon> I'd imagine it probably only works with the original kind where the filling isn't so dense.
12:42:27 <T3sl4> yeah
12:46:31 * Ampera gives Halcyon good vibrations
12:48:32 <Halcyon> Oooer :)
12:48:38 <Halcyon> It's that what you call your sex toy?
12:49:01 <Ampera> https://www.youtube.com/watch?v=FmobY-dAfjE
12:49:15 <Halcyon> Ahh the Beach Boys
12:49:16 <Halcyon> Very nice
12:49:26 <Halcyon> Although that video is blocked because we're not 'merica
13:03:01 * T3sl4 theremins at Ampera
13:06:07 * steve30 hugs Halcyon
13:06:59 <DHess_US> The block video which have too much freedom. Too much freedom causes cancer.
13:12:00 <Halcyon> Hi Steve :)
13:12:05 <Halcyon> It's my birthday today
13:12:29 <steve30> Happy birthday :)
13:12:38 * steve30 gives Halcyon a celebratory kiss
13:13:11 <Halcyon> With tongue? :P
13:14:07 <EEVBlog> New EEVBlog Tweet: The new super efficient lab organisation, not a square centimeter wasted. Implementing new parkour technique for shooting videos. https://t.co/mkYTjyCT8L
14:53:52 <EEVBlog> New EEVBlog Tweet: Hey @TeamYouTube The new Beta Creator Studio video list does not have the little HD symbol next to the video any more. How are we supposed to know at a glance when videos have finished processing?
15:02:56 <EEVBlog> New EEVBlog Tweet: NEW Video on EEVblog2! Parkour Based Lab Organisation https://t.co/1LUyytYUlv
16:10:17 <Halcyon> Hey Ampera, thanks for the card, I've increased my backup speed to 30MB/sec :)
16:10:37 <Halcyon> I think I'm hitting the limit of what I can do with LTO2 with encryption enabled
16:11:05 <Halcyon> Although I need to find a Windows 2008 Server licence key. I'm using an eval. one at the moment
19:27:37 <damian> LTO2, woahhh
19:27:48 <damian> 2008, or 2008 R2
19:28:03 <damian> wow that was a few hours ago
19:28:05 <damian> Halcyon!
19:47:44 <Halcyon> Hey damian :)
19:47:46 <Halcyon> Long time
19:47:49 <seaner> damo
19:47:52 <seaner> Halcyon
19:47:53 <seaner> sup
19:48:13 <Halcyon> Just finished dinner, having a wine, the usual.
19:48:31 <Halcyon> 2008 Standard. Unless you have an ISO and key for R2 :P
19:48:52 <Halcyon> I only have Standard and 2008 SBS (which is shit)
20:04:30 * DogWomble boings
20:04:53 <Halcyon> Hah
20:12:45 <K> hello
20:17:36 <Halcyon> Hello K
20:18:14 <K> yes.
20:19:03 <Halcyon> That is all
20:46:53 Quit: Bluenote ([email protected]) Quit: Leaving
21:38:47 <EEVBlog> New EEVBlog Tweet: RT @sinddyealy: ABC Library Ultimo - all that is left of what was once an acclaimed national collection of Australian stories, music and hi…
21:41:48 <EEVBlog> New EEVBlog Tweet: RT @pickover: All the bearings are moving in a straight line. https://t.co/EFaQsyjW3h https://t.co/Z8otKCf1I9
21:46:59 <damian> Halcyon, you didn't get my messages in private?!
21:47:07 <damian> tell me what version of Windows you want a key for :P
21:47:12 <damian> anything from 2003 to 2019
21:47:12 <Halcyon> I did not
21:47:22 <Halcyon> Server 2008 Standard
21:47:56 <Halcyon> I have quite the collection myself, we might need to do some trading :P
21:49:45 Quit: ServalSpots ([email protected]) Ping timeout: 121 seconds
21:52:17 <damian> quite the collection! why are you stuck on 2008 then!
21:53:15 <Halcyon> It's to run an old tape drive and BackupExec 2010
21:53:23 Join: ServalSpots ([email protected]) to #EEVblog
21:53:23 Mode: (by ChanOP) +o ServalSpots
21:53:37 <damian> BUE2010 still runs on newer OS's
21:53:45 <Halcyon> You wouldn't think it would be so hard to find modern software that supports tape spanning and encryption, but it's near impossible.
21:53:50 <damian> and i assume because it injects the drivers, it shouldn't have any issues iwth older tape drives on newer OS's
21:54:21 <damian> i don't know how new it'll go, but i run BUE2010 on 2008R2
21:54:23 <Halcyon> The next version of Windows I have is Server 2012 Datacenter
21:54:26 <Halcyon> I have nothing in between
21:54:35 <damian> well now you do!
21:54:35 <damian> :P
21:54:44 <damian> unless you're still not getting my private messages, you ignorant bastard
21:55:00 <Halcyon> No, they aren't coming through for some strange resion
21:55:03 <Halcyon> reason
21:55:08 <Halcyon> I even sent you a private *poke*
21:55:18 <Halcyon> Email ?
21:55:29 <damian> oh
21:55:34 <damian> i wasn't identified to NickOP yet
21:55:38 <Halcyon> Ahh
21:55:39 <Halcyon> :)
21:55:43 <damian> apparently if you go away for a month it unid's you!
21:55:53 <Halcyon> Rude