xr_usb_serial_common Ubuntu 16.04

Post Reply
prfiredragon
Posts: 6
Joined: Mon Feb 10, 2020 8:38 pm
languages_spoken: Spanish
ODROIDs: C2
Has thanked: 0
Been thanked: 0
Contact:

xr_usb_serial_common Ubuntu 16.04

Unread post by prfiredragon » Mon Feb 10, 2020 11:51 pm

Hi. I am trying to install xr_usb_serial_common for communicate with a tracer 10420an using RS485 modbus. I followed the instruccions, i compiled the kernel with the usbserial and cdc-acm as modules to be able to unload and load. But no luck.

When i run insmos ./ xr_usb_serial_common.ko it said that the device is busy.

Anyone knows what other module conflict or how to install xr_usb_serial_common on ubuntu on odroid C2?

Thansk for all.

User avatar
odroid
Site Admin
Posts: 33398
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 409 times
Been thanked: 464 times
Contact:

Re: xr_usb_serial_common Ubuntu 16.04

Unread post by odroid » Tue Feb 11, 2020 9:32 am

Do you run Kernel 3.16? or 3.14?
Try 3.16 with this Ubuntu 18.04.3 image since we don't support 16.04 anymore.
https://wiki.odroid.com/odroid-c2/os_images/ubuntu/v3.1

prfiredragon
Posts: 6
Joined: Mon Feb 10, 2020 8:38 pm
languages_spoken: Spanish
ODROIDs: C2
Has thanked: 0
Been thanked: 0
Contact:

Re: xr_usb_serial_common Ubuntu 16.04

Unread post by prfiredragon » Tue Feb 11, 2020 9:43 am

3.14. ok, I am going to try 3.16 on ubuntu 1.04.3. thanks

prfiredragon
Posts: 6
Joined: Mon Feb 10, 2020 8:38 pm
languages_spoken: Spanish
ODROIDs: C2
Has thanked: 0
Been thanked: 0
Contact:

Re: xr_usb_serial_common Ubuntu 16.04

Unread post by prfiredragon » Tue Feb 11, 2020 1:10 pm

same error and the USB wireless network adapter doesn't work in this version. the driver doesn't compile.

User avatar
odroid
Site Admin
Posts: 33398
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 409 times
Been thanked: 464 times
Contact:

Re: xr_usb_serial_common Ubuntu 16.04

Unread post by odroid » Tue Feb 11, 2020 2:56 pm

How did you compile the driver?
Which WiFi module do you have?

prfiredragon
Posts: 6
Joined: Mon Feb 10, 2020 8:38 pm
languages_spoken: Spanish
ODROIDs: C2
Has thanked: 0
Been thanked: 0
Contact:

Re: xr_usb_serial_common Ubuntu 16.04

Unread post by prfiredragon » Tue Feb 11, 2020 7:45 pm

rtl8192eu

I change this two settings in Makefile
CONFIG_PLATFORM_I386_PC = n
CONFIG_PLATFORM_ARM_AARCH64 = y

Then
sudo dkms add .
sudo dkms install rtl8192eu/1.0

And don’t compile. For testing i use make
I get an error on rtw_ap.c error
Using auth_len

User avatar
odroid
Site Admin
Posts: 33398
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 409 times
Been thanked: 464 times
Contact:

Re: xr_usb_serial_common Ubuntu 16.04

Unread post by odroid » Wed Feb 12, 2020 10:49 am

I could build RTL8821CU driver with dkms.
viewtopic.php?f=177&t=34769

Can you post a full log when you run 'make'?

prfiredragon
Posts: 6
Joined: Mon Feb 10, 2020 8:38 pm
languages_spoken: Spanish
ODROIDs: C2
Has thanked: 0
Been thanked: 0
Contact:

Re: xr_usb_serial_common Ubuntu 16.04

Unread post by prfiredragon » Wed Feb 12, 2020 12:48 pm

for the wireless driver i am using

Code: Select all

git clone https://github.com/Mange/rtl8192eu-linux-driver
but I make this changes to the Makefile and now is working

Code: Select all

133c133,134
< CONFIG_PLATFORM_I386_PC = y
---
> CONFIG_PLATFORM_I386_PC = n
> CONFIG_PLATFORM_ARM_AARCH64 = y
1305a1307
> EXTRA_CFLAGS += -DCONFIG_IOCTL_CFG80211 -DRTW_USE_CFG80211_STA_EVENT
Now with xr_usb_serial_common

Code: Select all

sudo insmod ./xr_usb_serial_common.ko 
insmod: ERROR: could not insert module ./xr_usb_serial_common.ko: Device or resource busy

User avatar
odroid
Site Admin
Posts: 33398
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 409 times
Been thanked: 464 times
Contact:

Re: xr_usb_serial_common Ubuntu 16.04

Unread post by odroid » Wed Feb 12, 2020 4:12 pm

Try the following steps to check other device driver was already loaded or not.
<1> Remove the USB device and reboot.
<2> Check "lsmod" output.
<3> Plug the USB device and check "lsmod" output.

If there is a new driver (automatically loaded one), add the module into the blacklist file /etc/modprobe.d/blacklist-odroid.conf.
And reboot your C2 and load your own driver module manually.

prfiredragon
Posts: 6
Joined: Mon Feb 10, 2020 8:38 pm
languages_spoken: Spanish
ODROIDs: C2
Has thanked: 0
Been thanked: 0
Contact:

Re: xr_usb_serial_common Ubuntu 16.04

Unread post by prfiredragon » Mon Feb 17, 2020 11:14 am

the only difference is the usbserial module. I try to blacklist it anyway but the problem persists. Another thing that I notice is that when I connect the USB to SR485 the other port loses connection on the controller. That doesn't happen on windows.

I am going to stop trying to use the USB to RS485. I am going to try to make a uart to RS485.


Thanks for all the help.

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 5 guests