![]() |
Forum Index : Microcontroller and PC projects : Linux Mint
![]() ![]() |
|||||
Author | Message | ||||
robert.rozee Guru ![]() Joined: 31/12/2012 Location: New ZealandPosts: 2442 |
the quickest and absolutely simplest solution is an E-28: https://www.rictech.nz/products/20/MicroMite-Explore-28-module just plug it in via USB and it will work, under mint it should show up as /dev/ttyACM0 cheers, rob :-) |
||||
panky![]() Guru ![]() Joined: 02/10/2012 Location: AustraliaPosts: 1114 |
@Joe Some of the older members (like myself) just want something to play with and learn programming etc. Playing with a Micromite is much akin to a TRS80 or like from the '70's. Others get a kick out of "building" where they take a bare chip, design a board for it with suitable interfaces then solder components and program the PIC32 chip. Others again like to use the Micromite as the basis for a project - Weather Station, Solar Controller, Home Watering System controller, Garage Door Controller, and so on - whatever you can dream up. Most of us here on the Backshed have a little of all of the above in us. In my case as well as just keeping the old grey cells working, I had a need for a Caravan Battery System Monitor to keep track of the charge and discharge of my caravan Battery/Solar system. Silicon Chip has had numerous articles over the past few years on Micromite based projects - if you have access to a library, you might like to see if they have some back issues to read. All in all, it's a fantastic little device allowing you to program it in the Basic language (very readable, intuitive and plain language like in it's structure) with a large number of interface options to connect to outside devices. Regards, Doug. ... almost all of the Maximites, the MicromMites, the MM Extremes, the ArmMites, the PicoMite and loving it! |
||||
palcal![]() Guru ![]() Joined: 12/10/2011 Location: AustraliaPosts: 1993 |
@Panky I am using the same user name, surely it can't be this difficult to connect to Putty. Others have done so why not me. Paul. Edit. I am going to reinstall Linux, sometimes weird things happen like not shutting down properly and not starting properly. Maybe there is a problem with the ISO file. I have ordered a Linux Mint disc just waiting for it to arrive. Paul. "It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all" |
||||
joebog1 Senior Member ![]() Joined: 07/11/2015 Location: AustraliaPosts: 114 |
Robert.rozee, I detect a SERIOUS flaw in your suggestion!! PLEASE NOTE: DRIVER UPDATE: Driver files are now available for this module for use under Windows XP, Windows 7 or Windows 8. You must have SP3 installed on your XP machine. Unzip the files, and run the driver installation tool exe file. You can download the ZIP file from our Downloads page. This driver will not work with versions of Windows earlier then XP. Both 32-bit and 64-bit XP drivers are included. This driver may also be used with Windows 7 and Windows 8. Windows 10 has native support for this USB chip, so no drivers are needed for Windows 10 machines. Linux users should not need any driver, as Linux should see this module as a USB-serial adaptor, and locate it under /dev. Usually shows up as /dev/ttyACM0 then you can talk to it using Minicom It even sez NOT available for Linux!!! .exe files are verboten under Linux In fact without some really UBER over rides of permissions, they WONT work ( thank god) I DO NOT HAVE any windows, OTHER than those in the car or built into the house!!! Joe |
||||
Boppa Guru ![]() Joined: 08/11/2016 Location: AustraliaPosts: 814 |
The answer is in the bit you quoted! "Linux users should not need any driver, as Linux should see this module as a USB-serial adaptor, and locate it under /dev. Usually shows up as /dev/ttyACM0 then you can talk to it using Minicom" eta, I'm still trying to use a 28MM to run a gate and garage door controller (currently you have to get out and open the two swing gates manually, then drive in, close the gates then open the garage door and go into that- rather than adding another two remotes to the keychain, I am trying to use the mite to control everything from either a remote, or from a cellphone via wireless) |
||||
panky![]() Guru ![]() Joined: 02/10/2012 Location: AustraliaPosts: 1114 |
@joe With the very greatest respect and absolutely no offence intended, written communication can easily be misconstrued. From you previous comments, it sounds like you are a dedicated Linux user so you input/advice would clearly be of great help - I applaud this however I did not see any responses that pertained to the problems in this thread. I usually use Win 7 Pro as I have have had many years of experience with it. I am also now trying to improve my Linux familiarity and in particular using Mint as a platform to do all my Micromite interfacing. It is fun/frustrating/challenging☺☺☺😥😥😥☺☺☺ One of the very great benefits of the Backshed is that there are many members willing to offer whatever level of expertise they have to constructively assist others. Re Linux, there is definately a need for a comprehensive guide to integrating Linux and the Micromite and the other programs that support it - with my limited knowledge (and dependant upon the time She Who Must Be Obeyed will allow me ☺☺☺ ) I have started preparing a detailed guide with examples, screen shots etc. I hope you decide to pursue learning about the Micrmite family - I am sure you will become totally hooked and enjoy the trip! I for one will be only too happy to lend my experience to help you. As an introduction, I recommend you download Geoff Graham's excellent primer that you can get from here - it is a great starter. Enjoy and Regards, Doug. ... almost all of the Maximites, the MicromMites, the MM Extremes, the ArmMites, the PicoMite and loving it! |
||||
Quazee137![]() Guru ![]() Joined: 07/08/2016 Location: United StatesPosts: 593 |
@panky here is two tty rules files to add to /etc/udev/rules.d/ change the "qz137" to the users group /etc/udev/rules.d/ttyUSB.rules KERNEL==”ttyUSB[0]” SYMLINK+=”%k” GROUP=”qz137” MODE=”0666” KERNEL==”ttyUSB[1]” SYMLINK+=”%k” GROUP=”qz137” MODE=”0666” KERNEL==”ttyUSB[2]” SYMLINK+=”%k” GROUP=”qz137” MODE=”0666” KERNEL==”ttyUSB[3]” SYMLINK+=”%k” GROUP=”qz137” MODE=”0666” KERNEL==”ttyUSB[4]” SYMLINK+=”%k” GROUP=”qz137” MODE=”0666” KERNEL==”ttyUSB[5]” SYMLINK+=”%k” GROUP=”qz137” MODE=”0666” /etc/udev/rules.d/ttyACM.rules KERNEL==”ttyACM[0]” SYMLINK+=”%k” GROUP=”qz137” MODE=”0666” KERNEL==”ttyACM[1]” SYMLINK+=”%k” GROUP=”qz137” MODE=”0666” KERNEL==”ttyACM[2]” SYMLINK+=”%k” GROUP=”qz137” MODE=”0666” KERNEL==”ttyACM[3]” SYMLINK+=”%k” GROUP=”qz137” MODE=”0666” KERNEL==”ttyACM[4]” SYMLINK+=”%k” GROUP=”qz137” MODE=”0666” KERNEL==”ttyACM[5]” SYMLINK+=”%k” GROUP=”qz137” MODE=”0666" Note that this will give any device connected to ttyUSB and ttyACM socket read/write permissions. If you need only specific device to get read/write permissions you must also check idVendor and idProduct. You can find those by running lsusb command twice, once without your device connected and once when it is connected, then observe the additional line in the output. There you will see something like Bus 003 Device 005: ID ffff:0005. In this case idVendor = ffff and idProduct = 0005. Yours will be different. Then you modify the rules file to: for USB ACTION=="add", KERNEL=="ttyUSB[0-9]*", ATTRS{idVendor}=="ffff", ATTRS{idProduct}=="0005", MODE="0666" for ACM ACTION=="add", KERNEL=="ttyACM[0-9]*", ATTRS{idVendor}=="ffff", ATTRS{idProduct}=="0005", MODE="0666" |
||||
JohnS Guru ![]() Joined: 18/11/2011 Location: United KingdomPosts: 4044 |
I suggest that to use Linux as a new Linux user: first avoid MMEdit - because (apparently) it needs WINE. I don't mean there's anything wrong with MMEdit per se, but needing WINE is a complication to avoid until you can talk reliably to a 'mite (maximite/micromite) without it. After that, do hand-to-hand combat with MMEdit (and thus WINE). In case putty needs WINE or is awkward to configure: use some other program!! Many exist. You can normally plug a USB-serial device in and it "just works". Normally no need to go hunting for device drivers or the like (unlike Windows). John |
||||
panky![]() Guru ![]() Joined: 02/10/2012 Location: AustraliaPosts: 1114 |
@ Paul When you open up the Users and Groups window, you need to click on the user (assuming this will be just you) before the details for that user come up in the right hand pane. You can then click on the list of groups to open up a drop down list of groups you can join - select dialout as previously described. @Quazee137 Very interesting using udev - you have me delving into the guts of Mint - far deeper than I ever thought possible or desireable ![]() ![]() ![]() Could you explain the differences/advantages/disadvantages between just having the current user become a member of dialout which gives access to the tty ports versus using udev to take ownership of the specific ttyUSB and ttyACM ports with the GROUP statement in the udev rule? Also, with your rules suggestion, would it be OK to do the following KERNEL==”ttyUSB[0-5]” SYMLINK+=”%k” GROUP=”qz137” MODE=”0666” rather than 6 seperate rules entries for ttyUSB (and the same for ttyACM)? Would it be possible or desireable to create a group mmusers, assign the ttyUSB and ttyACM devices using the udev rules you suggested? Then you could make any user a member of mmusers group and get access? ...or is this making things more complex or convoluted than they need to be? Cheers, Doug ... almost all of the Maximites, the MicromMites, the MM Extremes, the ArmMites, the PicoMite and loving it! |
||||
Quazee137![]() Guru ![]() Joined: 07/08/2016 Location: United StatesPosts: 593 |
@panky yes this is better KERNEL==”ttyUSB[0]” SYMLINK+=”%k” GROUP=”qz137” MODE=”0666” KERNEL==”ttyACM[0-9]*” SYMLINK+=”%k” GROUP=”qz137” MODE=”0666” when I was setting up this system a few years back my granddaughter was learning and not wanting to slow her down I made things as clear as I could. Not using anything to cryptic hence the multiple entries. and GROUP="" can be any group so creating a micromite group would do. then adding user to micromite the use of GROUP was at first a security thing but I have seen over at Askubuntu there was this sudoedit /etc/udev/rules.d/50-myusb.rules add this at end KERNEL=="ttyUSB[0-9]*",MODE="0666" KERNEL=="ttyACM[0-9]*",MODE="0666 which I think is about the same as adding user to dialout I am always learning and looking for sources here one I found recently guides I was looking back at some things I did. Not remembering where I got the info from. I started looking so I can post here and help. "Enjoy, Have FUN" my minecraft slogan ![]() Quazee137 |
||||
palcal![]() Guru ![]() Joined: 12/10/2011 Location: AustraliaPosts: 1993 |
@Panky Got PM will text. OK got the users and groups window working, I am not in the dialout group and it won't let me join. So i searched the net and used this command paul@paul-975X7AB ~ $ usermod -a -G dialout paul and got this result. usermod: Permission denied. usermod: cannot lock /etc/passwd; try again later. Paul. "It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all" |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6283 |
Try with sudo and make sure that the users and groups window isn't open while you are doing it. sudo usermod -a -G dialout paul Jim VK7JH MMedit |
||||
palcal![]() Guru ![]() Joined: 12/10/2011 Location: AustraliaPosts: 1993 |
Thanks Jim, tried that before but tried again paul@paul-975X7AB ~ $ sudo usermod -a -G dialout paul [sudo] password for paul: paul@paul-975X7AB ~ $ check users and groups and still not there, so I had another go at adding it in the users and groups window and it worked. It now shows that I am in the dialout group. FINALLY. So now to try Putty. Paul. Edit. Putty slill says CAN'T OPEN SERIAL PORT. Paul. "It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all" |
||||
palcal![]() Guru ![]() Joined: 12/10/2011 Location: AustraliaPosts: 1993 |
Getting somewhere finally, I did a restart and putty now opens, but the cursor is not blinking and it is unresponsive. Paul. "It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all" |
||||
palcal![]() Guru ![]() Joined: 12/10/2011 Location: AustraliaPosts: 1993 |
FINALLY!!! I tried another Mite on the serial port and it is working OK. Now that wasn't very hard was it. I have no idea why I have had so much trouble. Now for MMEdit I should have that sorted by Christmas. Paul. "It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all" |
||||
palcal![]() Guru ![]() Joined: 12/10/2011 Location: AustraliaPosts: 1993 |
Well after all that I still had in the back of my mind that there could have been a problem with my ISO file and the subsequent install. My Linux Mint disc arrived today from the US so I reinstalled Linux. This time everything went like clockwork, so to all the shedders that I inconvenienced I am sorry, I hope someone learnt something I sure have. The main thing I learned is to VERIFY THE ISO. I got half way through it and could not get a couple of commands to work so installed anyway. I am more than happy with Linux and Grogster if you are listening, go for it. I have not connected to MMEdit yet, I'll give you all a rest before I start that. Thanks everyone A very happy shedder. "It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all" |
||||
palcal![]() Guru ![]() Joined: 12/10/2011 Location: AustraliaPosts: 1993 |
Just got MMEdit talking, too easy, worked first time. Paul. "It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all" |
||||
![]() ![]() |
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |