![]() |
Forum Index : Microcontroller and PC projects : MicroMite with Linux ........
Author | Message | ||||
hitsware Guru ![]() Joined: 23/11/2012 Location: United StatesPosts: 535 |
....... I got my new MicroMite hooked up very neatly and properly (as sure as I can be) Suggested (from manual) Sparkfun usb to serial unit. Sparkfun 3.3V supply. Approved by Geoffg tantalum cap. Chips from CircuitGizmo My PC works (and has worked) fine with both a CircuitGizmo ColorMaximite and a DuinoMite Mega for quite some time. I use Slitaz Linux with Minicom as terminal. I set baud to 38400 8N1 as prescribed I cannot access the MicroMite.(cannot open /dev/ttyACM0: no such file or directory) Linux sees the device since (lsusb) changes upon plugging in or unplugging the usb. If I reset the chip I get led flickers on the serial unit so there is some hookup but obviously not enough ![]() Any insights or ideas ???????? |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6223 |
Are you sure that the USB-TTL device appears as ttyACM0 ? I would expect it to be ttyUSB0 The problem is with the USB-TTL adapter, not the micromite, unless you are drawing too much current from the adapter - something which I doubt! check for the device with: dmesg | grep tty before and after inserting the adapter. Jim VK7JH MMedit |
||||
hitsware Guru ![]() Joined: 23/11/2012 Location: United StatesPosts: 535 |
Thank You as usual ! > Are you sure that the USB-TTL device appears as ttyACM0 ? > I would expect it to be ttyUSB0 I tried USB0 earlier with no change. I went back to ACM0(since it works with DuinoMite and MaxiMite) > The problem is with the USB-TTL adapter, not the micromite > check for the device with: dmesg | grep tty I think the problem is Slitaz. I booted with Slax and got better results. The 'grep' with Slitaz shows no hookup, but Slax does show ttyUSB0 FTDI etc. Still doesn't boot the chip, but a step further ![]() |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6223 |
"Have you ever wondered why some USB devices used /dev/ttyUSB0 (or 1, or n) and others/dev/ttyACM0 (or 1, or n) when they are plugged into the host computer, while they seem to be acting as UART devices (RS-232-like) over USB in both cases? Have you wondered why example USB firmwares for microcontrollers always end up with names such as /dev/ttyACM0 and never as /dev/ttyUSB0?" Good answer here In brief, ACM thinks it's a Modem, USB thinks it's a USB-serial port. Different brand manufacturers choose which one to look like. Jim VK7JH MMedit |
||||
halldave![]() Senior Member ![]() Joined: 04/05/2014 Location: AustraliaPosts: 121 |
I use the tty adapter on a Mac OSX mine shows up under /dev/tty.usbserial-A9Y1X37J in order to get it to work I use screen /dev/tty.usbserial-A9Y1X37J 38400 BN1 btw: I am using the Dontronics one and have installed the driver from www.ftdichip.com/Drivers/VCP.htm One thing to note, sometimes you need to play with the previous version as some of the cheap ebay ones aren't up to spec when the say they are David |
||||
hitsware Guru ![]() Joined: 23/11/2012 Location: United StatesPosts: 535 |
Is there a standalone adaptor that would let the MicroMite emulate the DuinoMite and ColorMaximite. Slitaz works fine with those and evedently the Linux drivers are in the kernal and beyond my paygrade. (I guess I need other than ftdi ?) I'd like to keep Slitaz. |
||||
JohnS Guru ![]() Joined: 18/11/2011 Location: United KingdomPosts: 4004 |
If the USB-serial thing provides true RS232 instead of "TTL" then worry, but assuming not: You should be able to unplug the board from the USB-serial adapter and all should work e.g. if you connect Rx to Tx. Connecting any of the boards makes no difference to Linux (or OS X or even Windoze). You should get the same device name (/dev/tty... or COM5: or whatever) regardless of whether any board is connected. You obviously need to connect Rx, Tx, Gnd correctly and have the board set for 3V3 if it is the kind that can also do 5V. Do not connect its power line unless you know what you're doing! Voltage (3V3 etc) or swapped Rx/Tx would be my places to look. (The only extra "adapter" possible or meaningful is 3 wires to connect Rx, Tx & Gnd.) If the above don't work then I think you need to troubleshoot the micromite board. John |
||||
hitsware Guru ![]() Joined: 23/11/2012 Location: United StatesPosts: 535 |
@ JohnS Thank You..... Slax recognizes the adaptor at least, while my present HD installed distro (Slitaz) does not. So I first need to find a new distro (or fix Slitaz). That's a major shortcoming of Linux, is the not quite universal usability as Windows. |
||||
hitsware Guru ![]() Joined: 23/11/2012 Location: United StatesPosts: 535 |
OK ....... Pulled the MicroMite chip out of the breadboard ..... Shorted Rx to Tx on the adaptor Minicom acknowledges the adaptor ( port USB0 ) but doesn't echo keyboard input.....????? |
||||
robert.rozee Guru ![]() Joined: 31/12/2012 Location: New ZealandPosts: 2405 |
any chance you can post a close-up photo of the usb to serial adaptor that sparkfun sent you? and/or tell us the exact part number written on top of the chip? rob :-) |
||||
hitsware Guru ![]() Joined: 23/11/2012 Location: United StatesPosts: 535 |
rob, this is the unit: https://cdn.sparkfun.com//assets/parts/4/6/8/00718-02.jpg but chip number is: 1410-C G0490711 FT232RL |
||||
atmega8![]() Guru ![]() Joined: 19/11/2013 Location: GermanyPosts: 723 |
If you Bridge RX with TX on the RS232 connections of the Adaptor, then The Micromite IS definitaly not the Problem!! Also the RS232 Settings are not your Problem. There MUST be a local Echo with this Setup. You connect to the wrong device, or your Adaptor IS ready to throw it out of The next Window;-) Tail -f / var/log/ messages and then plug in and out so you can see live what IS happening. lsusb will help in further troubleshooting. Google helps. |
||||
atmega8![]() Guru ![]() Joined: 19/11/2013 Location: GermanyPosts: 723 |
dmsg | grep FTDI Shows The Device. echo "Micromite Test" >/dev/ttyUSB0 cat /dev/ttyUSB0 Output must then show "Micromite Test" |
||||
hitsware Guru ![]() Joined: 23/11/2012 Location: United StatesPosts: 535 |
|
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6223 |
From what I could see, Slitaz is a minimal install and you need to add the 'driver' for FTDI. I did find some references on how to do it but my Linux knowledge is not great and nonexistent for Slitaz. Perhaps the Slitaz forums will make more sense to you. Jim VK7JH MMedit |
||||
JohnS Guru ![]() Joined: 18/11/2011 Location: United KingdomPosts: 4004 |
That'll do nicely for programming PIC32 chips via ICSP (see that very long thread!) with my home-brew programmer :) It'll work fine with Linux if you don't choose a Linux variant that's minimal. If you choose a tiny one you get the equivalent of DOS (almost) or WinXP missing all the drivers. That's WHY people who know what they're doing MIGHT choose a minimal Linux - they want fast, small, etc and control over what is/isn't present. You do not appear to match that situation. It's the rough equivalent of making a car from a body shell, engine from different car, gearbox another, dash yet another and so on. Possible but a challenge and you know who to blame if it doesn't quite work. John |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |