-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Capturing/Recognizing USB ports #3
Comments
Interesting. With the ecmlink cabled plugged into the pi, can you run the following command and paste the output here?
|
Sorry running raspbian OS so lsub returns command not found...
…On Sat, May 23, 2020 at 2:26 PM Ashley ***@***.***> wrote:
Interesting. With the ecmlink cabled plugged into the pi, can you run the
following command and paste the output here?
lsusb -v | grep -E '\<(Bus|iProduct|bDeviceClass|bDeviceProtocol)'
2>/dev/null
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#3 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AARIXAWE447DD7M3YX7IOVLRTAWO3ANCNFSM4NISOX7Q>
.
|
sudo apt-get update sudo apt-get install usbutils That should install it via: https://discourse.osmc.tv/t/lsusb-command-not-found-solved/7731/8 |
===============================================================
Bus 001 Device 007: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS
802.11n WLAN Adapter
bDeviceClass 0
bDeviceProtocol 0
(Bus Powered)
bDeviceClass 0
bDeviceProtocol 0
(Bus Powered)
Bus 001 Device 006: ID 0416:c168 Winbond Electronics Corp.
bDeviceClass 0
bDeviceProtocol 0
(Bus Powered)
(Bus Powered)
Bus 001 Device 005: ID 0403:6001 Future Technology Devices International,
Ltd FT232 Serial (UART) IC
bDeviceClass 0
bDeviceProtocol 0
(Bus Powered)
(Bus Powered)
Bus 001 Device 004: ID 046d:c31c Logitech, Inc. Keyboard K120
bDeviceClass 0
bDeviceProtocol 0
(Bus Powered)
(Bus Powered)
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514
Fast Ethernet Adapter
bDeviceClass 255 Vendor Specific Class
bDeviceProtocol 1
bDeviceClass 255 Vendor Specific Class
bDeviceProtocol 1
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub
bDeviceClass 9 Hub
bDeviceProtocol 2 TT per port
bDeviceClass 9 Hub
bDeviceProtocol 0 Full speed (or root) hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
bDeviceClass 9 Hub
bDeviceProtocol 1 Single TT
==============================================================================
Thanks
…On Sat, May 23, 2020 at 5:24 PM Ashley ***@***.***> wrote:
sudo apt-get update sudo apt-get install usbutils
That should install it
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#3 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AARIXAVMG3IH2LVPZMNHVELRTBLLBANCNFSM4NISOX7Q>
.
|
Found some more info at these URLs: Will continue to investigate...looks like there needs to be a driver for DMSLink USB to talk to Raspbian OS? |
I agree, it looks like it might be a driver issue might also be a cable issue (maybe), here is the output from my CentOS7 laptop:
vs your
The bus and device numbers only specify what USB port its attached to; so that is okay to be different. They are both recognized as serial devices (232/uart), that is also good. I don't see a product id for you though. What version of Pi are you running? (?2/3/4?). |
On my Pi 3, this is what i get for a brand new, never used cable and also one that I know is crap:
Hopefully, that means we can rule out the cable, because those things are expensive. You can get the OS and hardware version by running After that, we can dig a little deeper. |
Okay I will get on that today. A quick google of the chipset driver:
https://www.ftdichip.com/FTDrivers.htm
wondering if this linux driver is not installed on the raspberry pi. I'm
certain my cable is good as I also use a thinkpad to do DSMLink and its
been fine. I unplug the laptop and plug in the raspberry pi and boot it up
and everything loads, but then it never sees the USB device.
wish my linux skills were better, but I'm learning still. If I can figure
out how to install that FTDI driver into raspberry pi it might then know
what to do with the USB device.
I'll also post my results here later today.
…On Wed, May 27, 2020 at 6:59 AM Ashley ***@***.***> wrote:
On my Pi 3, this is what i get for a brand new, never used cable and also
one that I know is crap:
Bus 001 Device 006: ID 0403:6001 Future Technology Devices International, Ltd FT232 Serial (UART) IC
bDeviceClass 0
bDeviceProtocol 0
iProduct 2 ECMLink adapter
(Bus Powered)
(Bus Powered)
Bus 001 Device 005: ID 0403:6001 Future Technology Devices International, Ltd FT232 Serial (UART) IC
bDeviceClass 0
bDeviceProtocol 0
iProduct 2 ECMLink adapter
(Bus Powered)
(Bus Powered)
Hopefully, that means we can rule out the cable, because those things are
expensive. You can get the OS and hardware version by running cat
/etc/os-release | grep PRETTY; awk '/^Revision/ {sub("^1000", "", $3);
print $3}' /proc/cpuinfo and copying the results here (via
https://elinux.org/RPi_HardwareHistory)
After that, we can dig a little deeper.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#3 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AARIXAVKFP6ZLWS2K26K5LDRTUFCZANCNFSM4NISOX7Q>
.
|
Cool deal. I thought I had the driver included in the set up script.... it could be that it failed for some reason. Hard to say with what we have so far. I'll be on the look out for your post. Hopefully we get to close this with you learning something :) |
One more URL, this looks very promising. Someone else was attempting to
use the same chipset with the raspberry pi and provided instructions (I
think) on how to install and use the FTDI drivers.
http://df3xc.github.io/FTDI-dot-net-usb-relais/
…On Wed, May 27, 2020 at 7:12 AM David White ***@***.***> wrote:
Okay I will get on that today. A quick google of the chipset driver:
https://www.ftdichip.com/FTDrivers.htm
wondering if this linux driver is not installed on the raspberry pi. I'm
certain my cable is good as I also use a thinkpad to do DSMLink and its
been fine. I unplug the laptop and plug in the raspberry pi and boot it up
and everything loads, but then it never sees the USB device.
wish my linux skills were better, but I'm learning still. If I can figure
out how to install that FTDI driver into raspberry pi it might then know
what to do with the USB device.
I'll also post my results here later today.
On Wed, May 27, 2020 at 6:59 AM Ashley ***@***.***> wrote:
> On my Pi 3, this is what i get for a brand new, never used cable and also
> one that I know is crap:
>
> Bus 001 Device 006: ID 0403:6001 Future Technology Devices International, Ltd FT232 Serial (UART) IC
> bDeviceClass 0
> bDeviceProtocol 0
> iProduct 2 ECMLink adapter
> (Bus Powered)
> (Bus Powered)
> Bus 001 Device 005: ID 0403:6001 Future Technology Devices International, Ltd FT232 Serial (UART) IC
> bDeviceClass 0
> bDeviceProtocol 0
> iProduct 2 ECMLink adapter
> (Bus Powered)
> (Bus Powered)
>
>
> Hopefully, that means we can rule out the cable, because those things are
> expensive. You can get the OS and hardware version by running cat
> /etc/os-release | grep PRETTY; awk '/^Revision/ {sub("^1000", "", $3);
> print $3}' /proc/cpuinfo and copying the results here (via
> https://elinux.org/RPi_HardwareHistory)
>
> After that, we can dig a little deeper.
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#3 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AARIXAVKFP6ZLWS2K26K5LDRTUFCZANCNFSM4NISOX7Q>
> .
>
|
Okay, I found the solution (at least for me). The above URL was a bust as their instructions are out of date...(linux is only worthwhile if you dont value your time...). So the driver is NOT the issue... this document I had sitting on my desktop this year has a piece that I think is missing from your script? In there i went over it to see if there was something that I could try that perhaps wasn't in your setup. There are some additional programs that detail auto booting into ECMLink so you dont have to manually choose the program, also I did notice some permission issues when ECMLink tried to record data...but I was able to get live feed working. I had to enter in this command, which already is supported by the software you install (I think). This has to be run every time the program launches (or at least every time the pi is turned on... I have also hosted the entire document as well off my google drive: So, using your script and some bits from the document, you can get this to autoload and run automatically ECMLink on a Raspberry pi2 (which is what I'm using). Believe 3 is the same..however Raspberry pi4 has a different CPU and is probably less of a problem to use as I think it can run standard debian at that point... |
Ah, okay, so some feedback based on my expectations vs what I think yours are: My implementation does not provide an auto-logging nor auto-launch feature - and i didn't realize that is what you were looking for. The way I have this set up is a bit different. On the spi bus, I have a pwm module with 2 basic LED's attached. Basically, the red led blinks if the ECMLink process is not found, the green light remains off. Once the link process is found, the red light turns solid, and the green light blinks until 'f12' is pushed. onve that 'f12' is pushed, both lights are solid = indicating that link is running and is recording. Now, this is headless-friendly, meaning that no keyboard is required. The f12 and link-luanching happens via one of two push buttons on the gpio pins. This allows for a very small install of 2 indicators and buttons, of user's choice, in user's location, to launch, log, and get a visual of status at the track with out having to navigate through a UI and also have some visual feedback that something is working. for some one who has this on a daily driver, they may not want to log every time the key is on - and this compliments that mentality. The 'f12', handled by gpio, does have the setserial command, because that was a concern. I'm still concerned as to why your cable doesn't show ECMLink in the product, but it could be that you just dont have the same version of cable that I do. Now, I haven't tested this on my pi2, though i will be doing so this weekend. I have run link on it in the past. I do know it works, but the results are much better on the 3 and i highly recommend that. I don't have a version 4 yet - so i can only say it should perform just as well or better than the 3.... but may also require some tweaking as i think the cpu arch is slightly different. when I get one, i may have to put in an arch/hardware type detection 'thing' into the script to accommodate it. I want to keep this open until I test on my pi2. |
Interesting,
Yeah my intstall is not headless. I purchased one of those 7" touchscreens
and wanted to dash mount the display.
I also will be buying a DC power HAT for the pi so that it
shutdown gracefully and boots upon ignition of the car.
The goal then is to boot and load into and automatically display "live"
mode on ECMLink. Beyond that, the user can use the touch screen.
Though, the buttons on ECMLink are NOT very useful for this as they are
almost too small for touch on a 7" display..but one problem at a time.
If your script is intended to drive some LEDs and a Button some
documentation would be neat...as that would be a nice secondary option to
mount on a dash to log on/off with status light ...
I'm also very interested in figuring out how to switch mappings using a
button (My old Eagle TSi had a "power mode on/off" button). The ultimate
goal would be to have a Meth vs Non Meth mapping in ECMlink and switch to
prevent over heating. But any ability to switch maps on the fly would be
pretty impressive (and potentially dangerous lol).
I'm going to have to go and buy a switch and some LEDs now.
…On Fri, May 29, 2020 at 3:34 AM Ashley ***@***.***> wrote:
Ah, okay, so some feedback based on my expectations vs what I think yours
are:
My implementation does not provide an auto-logging nor auto-launch feature
- and i didn't realize that is what you were looking for.
The way I have this set up is a bit different. On the spi bus, I have a
pwm module with 2 basic LED's attached. Basically, the red led blinks if
the ECMLink process is not found, the green light remains off. Once the
link process is found, the red light turns solid, and the green light
blinks until 'f12' is pushed. onve that 'f12' is pushed, both lights are
solid = indicating that link is running and is recording. Now, this is
headless-friendly, meaning that no keyboard is required. The f12 and
link-luanching happens via one of two push buttons on the gpio pins.
This allows for a very small install of 2 indicators and buttons, of
user's choice, in user's location, to launch, log, and get a visual of
status at the track with out having to navigate through a UI and also have
some visual feedback that something is working. for some one who has this
on a daily driver, they may not want to log every time the key is on - and
this compliments that mentality.
The 'f12', handled by gpio, does have the setserial command, because that
was a concern. I'm still concerned as to why your cable doesn't show
ECMLink in the product, but it could be that you just dont have the same
version of cable that I do.
Now, I haven't tested this on my pi2, though i will be doing so this
weekend. I have run link on it in the past. I do know it works, but the
results are much better on the 3 and i highly recommend that. I don't have
a version 4 yet - so i can only say it should perform just as well or
better than the 3.... but may also require some tweaking as i think the cpu
arch is slightly different. when I get one, i may have to put in an
arch/hardware type detection 'thing' into the script to accommodate it.
I want to keep this open until I test on my pi2.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#3 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AARIXATJNP23RT2YAOKLJE3RT56R7ANCNFSM4NISOX7Q>
.
|
Switching mappings is something i've considered, but I'm not sure is going to be possible. It should be super easy to take the setup i have and apply it to a touch screen - so that you can see whats on the screen but not have to fiddle with touch area. Not to mention, if you're wearing gloves, itll be that much harder. I'll try to do a video of this, so you can see it in action. |
Greetings, I got your script working and ECMLink boots up and runs, it however cannot seem to recognize any USB traffic so I'm unable to capture.
However, if I just plug the USB into a windows laptop it works instantly.
Any suggestions as to how to set the linux version to pick up on USB ports?
The text was updated successfully, but these errors were encountered: