JP1 Remotes Forum Index JP1 Remotes


FAQFAQ SearchSearch 7 days of topics7 Days MemberlistMemberlist UsergroupsUsergroups RegisterRegister
ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in

SOLVED: Ubuntu Linux - Remote not found with serial

 
Post new topic   Reply to topic    JP1 Remotes Forum Index -> JP1 - Software
View previous topic :: View next topic  
Author Message
rpm1200



Joined: 11 Nov 2007
Posts: 18

                    
PostPosted: Fri Feb 19, 2021 12:11 pm    Post subject: SOLVED: Ubuntu Linux - Remote not found with serial Reply with quote

Hey all,

I was pulling my hair out about this so I thought it might be helpful to post what happened on my Ubuntu system. I have Ubuntu 20.04.2 LTS with both Java 11 and Java 8 installed. I was trying to use RMIR v2.12.8 to download from a remote using a serial (not USB) interface I built for JP1.X. Under Remote, Interface, JP1.X Serial the only options were Auto-detect and Other. I got the same results trying Auto-detect or by entering /dev/ttyS0 (which is the serial port I was trying to use) in Other. The interface read and wrote successfully to the same remote using the same laptop/serial port when I booted to Windows 10 and ran RMIR there.

I found that Java 11 was set as the default Java version in Ubuntu. To correct that, I ran the following:
Code:
sudo update-alternatives --config java

and selected Java 8 from the list. But I found that the setting change did not help - RMIR still did not detect the remote.

Simple solution - after I rebooted and tried RMIR again, I found that under Remote, Interface, JP1.X Serial there were options for /dev/ttyS0 through /dev/ttyS9 in addition to Auto-detect and Other. I left Auto-detect selected, then I was able to upload/download to/from the remote successfully.

Just wanted to post this in case it can help someone else out; if you have multiple Java versions on Linux, there is no need to uninstall versions other than 8. Instead, use update-alternatives to select Java 8 and then reboot.
Back to top
View user's profile Send private message
mathdon
Expert


Joined: 22 Jul 2008
Posts: 4515
Location: Cambridge, UK

                    
PostPosted: Sat Feb 20, 2021 7:30 am    Post subject: Reply with quote

Do I understand from this that RMIR v2.12.8 does not work with Java 11 on Linux, at least for your system and interface? That to me is unexpected. Is it possible for you to post the rmaster.err file from a failed attempt to download your remote with Java 11? I would like to understand why this is happening.
_________________
Graham
Back to top
View user's profile Send private message
The Robman
Site Owner


Joined: 01 Aug 2003
Posts: 21210
Location: Chicago, IL

                    
PostPosted: Sat Feb 20, 2021 9:05 am    Post subject: Reply with quote

He's posting his solution, so he's explaining how he got RMIR v2.12.8 to work. The main fix being to do this:
Code:
sudo update-alternatives --config java

but then the really important part is, you need to reboot in order for it to take effect.
_________________
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
Back to top
View user's profile Send private message Visit poster's website
mathdon
Expert


Joined: 22 Jul 2008
Posts: 4515
Location: Cambridge, UK

                    
PostPosted: Sat Feb 20, 2021 9:47 am    Post subject: Reply with quote

Rob, as rpm1200 finished with "Instead, use update-alternatives to select Java 8 and then reboot", I presume he is saying that he got RMIR v2.12.8 to work with Java 8. I am asking about it with Java 11.
_________________
Graham
Back to top
View user's profile Send private message
The Robman
Site Owner


Joined: 01 Aug 2003
Posts: 21210
Location: Chicago, IL

                    
PostPosted: Sat Feb 20, 2021 9:53 am    Post subject: Reply with quote

Ah, I see what you mean.
_________________
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
Back to top
View user's profile Send private message Visit poster's website
rpm1200



Joined: 11 Nov 2007
Posts: 18

                    
PostPosted: Tue Feb 23, 2021 9:09 pm    Post subject: Reply with quote

As of 2018, only Java 8 was supported for Linux per this thread: http://www.hifi-remote.com/forums/viewtopic.php?t=101290

It's possible that limitation is not present anymore and it might work fine with Java 11 now. If that's the case, I don't mean to cause any confusion. I just wanted to share the steps that got RMIR working for me on Linux.
Back to top
View user's profile Send private message
mathdon
Expert


Joined: 22 Jul 2008
Posts: 4515
Location: Cambridge, UK

                    
PostPosted: Wed Feb 24, 2021 4:55 am    Post subject: Reply with quote

rpm1200 wrote:
As of 2018, only Java 8 was supported for Linux per this thread: http://www.hifi-remote.com/forums/viewtopic.php?t=101290

You didn't read to the end of that thread. Its last post, still from 2018, says
Quote:
All is working well now with java 10 and upload and download. All the problem was not knowing which port was which. Removed the added serial card so that won't happen again. Thanks to all.
A special thanks to yaworski for the java 10 fix.

The latest Java is Java 15 and RMIR has been tested with that, too, and works correctly.
_________________
Graham
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic       JP1 Remotes Forum Index -> JP1 - Software All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

Powered by phpBB © 2001, 2005 phpBB Group
Top 7 Advantages of Playing Online Slots The Evolution of Remote Control