Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 01:52 06 May 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Problem with OrangePI+Micromite Plus

Author Message
sagt3k

Guru

Joined: 01/02/2015
Location: Italy
Posts: 313
Posted: 11:45am 29 Mar 2017
Copy link to clipboard 
Print this post

Hi to everybody
I have a strange problem. I have a board OrangePI-Lite with Linux Armbian.
I do not have problems to connect microUSB modules as CP2102, that the system recognizes as ttyUSB0, but when I plug a micromite Plus 64 pin, the system recognizes as ttyACM0 that is normal but with minicom I can't connect.
dmesg return:

[ 2925.677053] ehci_irq: highspeed device connect
[ 2925.820047] ehci_irq: highspeed device disconnect
[ 2925.820077] ohci_irq: fullspeed or lowspeed device connect
[ 2926.240098] usb 7-1: new full-speed USB device number 10 using sunxi-ohci
[ 2926.493293] cdc_acm 7-1:1.0: ttyACM0: USB ACM device


and lsusb return:

Bus 007 Device 010: ID 04d8:fd52 Microchip Technology, Inc.


minicom setting:

| A - Serial Device : /dev/ttyACM0 |
| B - Lockfile Location : /var/lock |
| C - Callin Program : |
| D - Callout Program : |
| E - Bps/Par/Bits : 115200 8N1 |
| F - Hardware Flow Control : No |
| G - Software Flow Control : No


While with my PC + Linux Debian I connect micromite Plus and works all perfectly.

Could anyone give me some useful information to connect micromite plus with orangepi ?
Thanks
sagt3k
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 3663
Posted: 12:02pm 29 Mar 2017
Copy link to clipboard 
Print this post

What command line & what happens when you try with minicom?

JohnEdited by JohnS 2017-03-30
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 5914
Posted: 06:53pm 29 Mar 2017
Copy link to clipboard 
Print this post

I think that minicom thinks the micromite is a modem and is expecting some modem stye responses.
You might be able to tell minicom that it is a plain serial port or you might be able to create a symbolic link to a tty device to fool minicom.

Please don't ask me how to do any of the above.

Jim
VK7JH
MMedit   MMBasic Help
 
sagt3k

Guru

Joined: 01/02/2015
Location: Italy
Posts: 313
Posted: 08:12am 30 Mar 2017
Copy link to clipboard 
Print this post

Hi TassyJim
I do not think minicom does not work. In fact I tried on a Raspberry and working properly.
Dmesg on Raspberry:

[ 88.896470] usb 1-1.4: Product: Micromite Plus
[ 88.896476] usb 1-1.4: Manufacturer: Silicon Chip
[ 88.910402] cdc_acm 1-1.4:1.0: ttyACM0: USB ACM device
[ 88.911673] usbcore: registered new interface driver cdc_acm
[ 88.911682] cdc_acm: USB Abstract Control Model driver for USB modems and ISD N adapters


at this point I think that armbian not be completely compatible, maybe the CDC driver on kernel is not optimized.
If someone tests on these boards let me know
Thanks
sagt3k
 
Quazee137

Guru

Joined: 07/08/2016
Location: United States
Posts: 523
Posted: 11:40am 13 Jun 2017
Copy link to clipboard 
Print this post

Hope this helps.

minicom --color=on ttyACM0

just to see if you get to ttyACM0

if I try

minicom --color=on ttyACM1 or any thing other than 0

minicom: cannot open /dev/tty8: Permission denied

I get the error because ttyACM1 is not there.

this works too

minicom --color=on -b 38400 ttyACM0

but if I try other bauds it does not open a terminal.

My Mite is set to 38400





 
sagt3k

Guru

Joined: 01/02/2015
Location: Italy
Posts: 313
Posted: 08:56am 14 Jun 2017
Copy link to clipboard 
Print this post

Hi Quazee137

Thanks but but it doesn't work
root@orangepilite:/dev# minicom --color=on -b 38400 /dev/ttyACM0
minicom: cannot open /dev/modem: No such file or directory
root@orangepilite:/dev# minicom --color=on -b 38400 ttyACM0
minicom: cannot open /dev/modem: No such file or directory
root@orangepilite:/dev#

Sagt3k
 
Quazee137

Guru

Joined: 07/08/2016
Location: United States
Posts: 523
Posted: 12:39pm 14 Jun 2017
Copy link to clipboard 
Print this post

for testing minicom try

minicom --color=on -b 38400 /dev/ttyUSBx

with USB serial and rx-tx shorted for feed back.

dumb typewriter mode.

here is my little comm's test bash


#!/bin/bash
echo "------- USB's ---------"
ls /dev/ttyUSB*
echo
echo "------- ACM's ---------"

ls /dev/ttyACM*

echo
echo "------- lsusb ---------"

read $key

lsusb

echo "press key to exit"
read $key
exit



and this launches my army of Mites for testing


#!/bin/bash
if [ -e "/dev/ttyUSB0" ] ; then gnome-terminal -t USB0, -e "minicom --color=on ttyUSB0" ;fi
if [ -e "/dev/ttyUSB1" ] ; then gnome-terminal -t USB1, -e "minicom --color=on ttyUSB1" ;fi
if [ -e "/dev/ttyUSB2" ] ; then gnome-terminal -t USB2, -e "minicom --color=on ttyUSB2" ;fi
if [ -e "/dev/ttyUSB3" ] ; then gnome-terminal -t USB3, -e "minicom --color=on ttyUSB3" ;fi
if [ -e "/dev/ttyUSB4" ] ; then gnome-terminal -t USB4, -e "minicom --color=on ttyUSB4" ;fi
if [ -e "/dev/ttyUSB5" ] ; then gnome-terminal -t USB5, -e "minicom --color=on ttyUSB5" ;fi

if [ -e "/dev/ttyACM0" ] ; then gnome-terminal -t ACM0, -e "minicom --color=on ttyACM0" ;fi
if [ -e "/dev/ttyACM1" ] ; then gnome-terminal -t ACM1, -e "minicom --color=on ttyACM1" ;fi

# x-tile g 2 3


#play /home/papa/Sounds/BeatPlucker.ogg
#read $key

# testing code commented out
# ls -la /dev/tty*



Luck Quazee137

Just info

more info


May help looking at this

Edited by Quazee137 2017-06-16
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024