#avr Logs

Oct 06 2018

#avr Calendar

12:01 AM day__ is now known as day
04:35 AM nabil_ is now known as nabil
06:13 AM logithack: ive connected an avr programmer to my linux laptop, but i'm unable to mount it. its not listed anywhere in /dev/. dmesg recognised it though: http://termbin.com/wwh4 any ideas?
06:16 AM Thrashbarg: what were you looking for in /dev?
06:18 AM logithack: i was looking for the avr programmer, i was hoping it might be listed as sdb or something
06:19 AM Thrashbarg: why would it be a hard drive device? It's a programmer, not storage
06:19 AM Thrashbarg: you use avrdude to program the target device connected to the programmer
06:20 AM logithack: it it not possible to connect it via usb, mount it and pass it to a virtual machine so i can program it from there?
06:20 AM Thrashbarg: ah what VM software are you using?
06:20 AM logithack: virtualbox
06:21 AM Thrashbarg: okay you should be able to pass it through under the Devices -> USB menu
06:21 AM Thrashbarg: but you'll need to have permission to access USB
06:22 AM logithack: yes, thats correct. however, to be able to pass it to the vm, i need to see it in my host system, which i currently dont.
06:22 AM Thrashbarg: the kernel is detecting it so it'll be under /dev/bus/usb/something
06:23 AM Thrashbarg: use lsusb on the command line to list connected USB devices
06:24 AM Thrashbarg: it may end up being easier to write your object file to a shared folder and use avrdude on the host OS instead
06:24 AM Thrashbarg: not pretty though
06:25 AM logithack: ah, thanks! http://termbin.com/5caw so that would mean its connected on Bus 001 Device 005, corresponding to /dev/bus/usb/001/005 right?
06:25 AM Thrashbarg: yup
06:26 AM Thrashbarg: I wonder if it'll work on Wine lol
06:26 AM Thrashbarg: Seems you're going to try using Atmel Studio or something?
06:26 AM logithack: yeah, exactly
06:27 AM logithack: and i dont want to install windows on my machine as it will be an endless hassle
06:27 AM logithack: overwriting grub, etc.
06:27 AM Thrashbarg: don't know if Studio will work under Wine because it's a bug infestation
06:27 AM logithack: ive installed it in my windows 7 virtual box
06:27 AM Thrashbarg: yup
06:27 AM Thrashbarg: what distro of Linux?
06:28 AM logithack: now the only questions is how can i pass /dev/bus/usb/001/005 to my vm?
06:28 AM logithack: Linux Mint 19
06:29 AM Thrashbarg: ah I remember you need to add yourself to the vboxusers group
06:29 AM Thrashbarg: to get access to /dev/vboxusb
06:29 AM Thrashbarg: then the USB devices should pop up
06:30 AM Thrashbarg: yup that worked here
06:30 AM Thrashbarg: it's kinda irritating how that's not done automagically
06:31 AM Thrashbarg: you'll need to log out and back in again for the group to be added too
06:32 AM logithack: ahh yeah, i remember that, too
06:32 AM logithack: hang on
06:32 AM Thrashbarg: royal PITA
06:35 AM logithack: right ive added myself to vboxusers and re-logged in
06:36 AM logithack: still cant see it in virtualbox though
06:36 AM Thrashbarg: so you've launched the VM and gone to Devices -> USB?
06:38 AM logithack: yeah
06:38 AM logithack: it says No USB devices connected
06:38 AM Thrashbarg: uh okay... go to a terminal on Linux, type groups. Does it list vboxusers in that list?
06:39 AM logithack: yeh
06:40 AM logithack: and "groups ryan" also contains "vboxusers"
06:41 AM Thrashbarg: does plugging a USB stick into the drive show up in VirtualBox?
06:41 AM Thrashbarg: (just to make sure it can see anything)
06:46 AM Thrashbarg: ah you'll probably need to set the permissions of the USB device node
06:46 AM Thrashbarg: https://mightyohm.com/blog/2010/11/atmel-avrisp-mkii-working-in-virtualbox/
06:53 AM logithack: sorry, back now
06:53 AM logithack: got an usb device to test
06:55 AM logithack: nope, doesnt seem like virtualbox recognises it
06:55 AM logithack: it got auto-mounted in linux
06:55 AM logithack: neither when mounted, nor when unmounted did virtualbox recognise it
06:57 AM logithack: the link youve given me, does that apply for linux hosts - windows guests, too?
06:58 AM logithack: the system of the guy in the link is the other way round
07:02 AM Thrashbarg: you may also need to be in the plugdev and usb groups
07:06 AM logithack: groups: ryan adm cdrom sudo dip plugdev lpadmin sambashare vboxusers
07:06 AM logithack: i am in all of those
07:07 AM Thrashbarg: try usb?
07:08 AM logithack: what do you mean? there is no usb group
07:08 AM Thrashbarg: okay I'm on a different distro...
07:08 AM logithack: thats why
07:08 AM Thrashbarg: yup
07:08 AM logithack: good lord, this cant be so difficult
07:09 AM Thrashbarg: what's the contents of /dev/vboxusb/001
07:09 AM Thrashbarg: if it's empty then something's up
07:11 AM logithack: it says 003 004 005
07:11 AM Thrashbarg: is USB enabled in the VM?
07:11 AM Thrashbarg: 003 and 004 should be your keyboard and mouse, 005 is the ISP
07:13 AM logithack: https://imgur.com/a/w7bmq6c
07:13 AM Thrashbarg: well... by all accounts it should be in the USB menu
07:13 AM logithack: after i'd enabled that and booted the vm, it automatically installed usb 2 drivers
07:13 AM logithack: inside the vm
07:13 AM logithack: so should be working
07:13 AM Thrashbarg: right
07:14 AM Thrashbarg: so what does Devices -> USB look like now?
07:16 AM logithack: ive shut down the vm, unplugged the isp, booted the vm, as soon as it was up i plugged the isp back in. nothing.
07:16 AM logithack: dmesg registered it, its on 003/003 now
07:16 AM logithack: Devices --> USB still says no USB Devices connected
07:17 AM Thrashbarg: hmm something's up and we're missing it :/
07:18 AM logithack: very annoying
07:18 AM logithack: i guess my best bet is to install avr studio on our windows 7 office pc
07:20 AM logithack: i'd have no problem going with avrdude, but im doing work for studies and ive never dealt with microcontrollers before
07:20 AM logithack: so id rather stick with what they recommend
07:20 AM Thrashbarg: heh if you don't follow what they prescribe, you'll lose marks
07:21 AM Thrashbarg: (yes yes don't get me started about academia)
07:22 AM logithack: hehe, i guess i wouldnt, but since i'm not familiar with programming microcontrollers, id like to stick to what everoyne uses so i can get help if necessary
07:22 AM Thrashbarg: yup
07:22 AM logithack: if you come along with a completely different setup, theyll ask why didnt you choose the common setup
07:22 AM logithack: "your fault"
07:22 AM Thrashbarg: mm yea
07:23 AM logithack: anyway, thanks a lot for your help mate! been really great
07:23 AM Thrashbarg: no worries
07:23 AM Emil: logithack: consider joining #avrs
11:35 AM [1]MrMobius is now known as MrMobius
04:50 PM hetii: Hi :)
04:52 PM hetii: Maybe some of you have a knowladge about RFID tags and PN532 chip. As I use on everyday multiple RFID cards I wonder If its doable to combine all of them into one small single device based on PN532. But there is a planty of different rfid tags, so is it possible to emulate them or is it make no sense?
08:31 PM nabil_ is now known as nabil