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

IrScrutinizer: capturing, generating, analyzing, import, exp
Goto page Previous  1, 2, 3 ... 24, 25, 26, 27  Next
 
Post new topic   Reply to topic    JP1 Remotes Forum Index -> JP1 - Software
View previous topic :: View next topic  
Author Message
Slimline Salad Dressing



Joined: 29 Dec 2021
Posts: 12

                    
PostPosted: Wed Dec 29, 2021 1:51 pm    Post subject: Reply with quote

Hi all - hope someone is able to help me, I'm trying to get IRScrutinizer reading codes via an Arduino connected to an old Mac running Sierra.

I installed Arduino IDE and a capture script and can see Hex values in the output window when buttons are pressed on remotes, so I know the hardware is working.

I then installed IRScrutinizer, and following the IRScrutinizer guide to capturing, I go 'Sending hw > Girs Client' and then select the serial port: tty.wchusbserial1410, but when I press 'Open' I get error 'HarcHardwareException: Hardware not responding'.

I also can see a port labelled cu.wchusbserial1410 which I tried but that didn't work either. (I don't know what the difference is between the two?).

Anyone know what the problem is?
Back to top
View user's profile Send private message
Barf
Expert


Joined: 24 Oct 2008
Posts: 1402
Location: Munich, Germany

                    
PostPosted: Wed Dec 29, 2021 3:11 pm    Post subject: Reply with quote

Quote:

Hi all - hope someone is able to help me, I'm trying to get IRScrutinizer reading codes via an Arduino ...


this one? Including the debugging LEDs?

Quote:

I then installed IRScrutinizer, and following the IRScrutinizer guide to capturing, I go 'Sending hw > Girs Client' and then select the serial port: tty.wchusbserial1410, but when I press 'Open' I get error 'HarcHardwareException: Hardware not responding'.

Please turn on the option "verbose" (Options -> verbose). Then open as you described, and post the content of the Console window here. Also tell us when the LEDS go on, which, and when.

Quote:

I also can see a port labelled cu.wchusbserial1410 which I tried but that didn't work either. (I don't know what the difference is between the two?).


In Solaris, the tty* and the cu* devices differed in how the "modem control lines" (DTR, CTS,...?) was handeled. It was said that you should use the cu device for a dial-out modem, and the tty device for a dial in modem. To what extent this carries over to MacOS I have no idea. I have not noticed any difference.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Slimline Salad Dressing



Joined: 29 Dec 2021
Posts: 12

                    
PostPosted: Wed Dec 29, 2021 4:47 pm    Post subject: Reply with quote

Thanks - I have a non-brand Arduino Uno. There are LEDs but I'm not sure if it has debugging LEDs? (This is my first time using anything like an Arduino.)

I switched on Verbose mode in IRScrutinizer and the console printed:

LocalSerialPortBuffered.sendString: Sent '\r'.
LocalSerialPortBuffered.sendString: TIMEOUT
LocalSerialPortBuffered.sendString: Sent '\r'.
LocalSerialPortBuffered.sendString: TIMEOUT
LocalSerialPortBuffered.sendString: Sent '\r'.
LocalSerialPortBuffered.sendString: TIMEOUT

(Other than power) an LED labelled 'L' flashed 3 times rapidly, then once.
Back to top
View user's profile Send private message
Barf
Expert


Joined: 24 Oct 2008
Posts: 1402
Location: Munich, Germany

                    
PostPosted: Thu Dec 30, 2021 7:11 am    Post subject: Reply with quote

Hmm, so the serial communication is completely dead. I unfortunately do not have a very good debugging strategy here. On the only Mac I have access to (mac mini "early 2009" with MacOS 10.11.6, which is the latest supported on the hardware) it works fine. My knowledge of MacOS is limited... But since the Arduino IDE is working there should be some hope.

Please try Version 2.2.6 as well as the current development version to see if there is any difference.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Slimline Salad Dressing



Joined: 29 Dec 2021
Posts: 12

                    
PostPosted: Thu Dec 30, 2021 7:49 am    Post subject: Reply with quote

Thanks, I have similar spec to you, 2012 macbook running 10.12.6.

I tried both those versions but got the same results, with the current development version being much quicker and didn't lock the machine up for so long, but still the same error.

I could try booting into a couple of different OS versions, see if that changes anything?
Back to top
View user's profile Send private message
Barf
Expert


Joined: 24 Oct 2008
Posts: 1402
Location: Munich, Germany

                    
PostPosted: Thu Dec 30, 2021 2:58 pm    Post subject: Reply with quote

Right now I do not have anything to immediate recommend, but trying different OS version sounds reasonable. Let us know if you make any progress. Trying with a board with an FTDI-chip ("genuine Arduino") may be something to try, too.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Slimline Salad Dressing



Joined: 29 Dec 2021
Posts: 12

                    
PostPosted: Thu Dec 30, 2021 3:57 pm    Post subject: Reply with quote

Is the FTDI-chip for the USB socket on a real Arduino? If so, I think my 'non-genuine' Arduino is the problem as (from what I've read) they tend to use CH340 chips instead, which old versions of Mac OS (like me with 10.12.6) don't natively have drivers for.

I had to manually install CH340 drivers to get the Arduino IDE seeing my Uno connected to the USB port. I assumed going forward all other software would now also be able to see the fake Arduino but I guess not?
Back to top
View user's profile Send private message
Slimline Salad Dressing



Joined: 29 Dec 2021
Posts: 12

                    
PostPosted: Thu Dec 30, 2021 4:48 pm    Post subject: Reply with quote

Hmmm... so I've just tried using a completely different machine (Desktop PC) with Ubuntu 18.04, and I'm getting the same experience, same error message.

I didn't have to install drivers this time, in Arduino IDE I could see the port ttyUSB0 straight away, I just had to add my username to the permissions group for the serial port. After a reboot, in IRScrutinizer I could now see the port name, but still get the timeout error?

So maybe it's not the driver or the OS, but the CH340 chip itself IRScrutinizer is having a problem with?
Back to top
View user's profile Send private message
Barf
Expert


Joined: 24 Oct 2008
Posts: 1402
Location: Munich, Germany

                    
PostPosted: Fri Dec 31, 2021 5:19 am    Post subject: Reply with quote

I have used a lot of different Arduinos with CH340 chips, so it definitely works, possibly after installing a driver.

Quote:
Hmmm... so I've just tried using a completely different machine (Desktop PC) with Ubuntu 18.04, and I'm getting the same experience, same error message.


That is good news! Please install the generic distribution of the current development version and do the following and post the result: (The code fragments are stuff you type into the terminal.)

0. Open a terminal window and unplug the arduino.
1. Plug it in.
2.
Code:
dmesg | tail

3.
Code:
ls -l /dev/tty????

4.
Code:
groups

5.
Code:
irscrutinizer

6. Try to open the Arduino in IrScrutinizer as before.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Slimline Salad Dressing



Joined: 29 Dec 2021
Posts: 12

                    
PostPosted: Fri Dec 31, 2021 8:03 am    Post subject: Reply with quote

Cool! When you say install, can I run IRS from the AppImage or do you mean some other 'proper' install?

Because I tried with AppImage (after I typed the code below) and got the same error.

Here's what the Terminal returned for each of those lines:

dmesg | tail
[16782.872517] usb 1-1.1: ch341-uart converter now attached to ttyUSB1
[17093.321754] usb 1-1.1: USB disconnect, device number 11
[17093.321992] ch341-uart ttyUSB1: ch341-uart converter now disconnected from ttyUSB1
[17093.322037] ch341 1-1.1:1.0: device disconnected
[17096.871564] usb 1-1.1: new full-speed USB device number 12 using ehci-pci
[17096.980853] usb 1-1.1: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.54
[17096.980857] usb 1-1.1: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[17096.980859] usb 1-1.1: Product: USB2.0-Serial
[17096.981278] ch341 1-1.1:1.0: ch341-uart converter detected
[17096.982273] usb 1-1.1: ch341-uart converter now attached to ttyUSB1

ls -l /dev/tty???
crw-rw---- 1 root dialout 4, 74 Dec 30 21:37 /dev/ttyS10
crw-rw---- 1 root dialout 4, 75 Dec 30 21:37 /dev/ttyS11
crw-rw---- 1 root dialout 4, 76 Dec 30 21:37 /dev/ttyS12
crw-rw---- 1 root dialout 4, 77 Dec 30 21:37 /dev/ttyS13
crw-rw---- 1 root dialout 4, 78 Dec 30 21:37 /dev/ttyS14
crw-rw---- 1 root dialout 4, 79 Dec 30 21:37 /dev/ttyS15
crw-rw---- 1 root dialout 4, 80 Dec 30 21:37 /dev/ttyS16
crw-rw---- 1 root dialout 4, 81 Dec 30 21:37 /dev/ttyS17
crw-rw---- 1 root dialout 4, 82 Dec 30 21:37 /dev/ttyS18
crw-rw---- 1 root dialout 4, 83 Dec 30 21:37 /dev/ttyS19
crw-rw---- 1 root dialout 4, 84 Dec 30 21:37 /dev/ttyS20
crw-rw---- 1 root dialout 4, 85 Dec 30 21:37 /dev/ttyS21
crw-rw---- 1 root dialout 4, 86 Dec 30 21:37 /dev/ttyS22
crw-rw---- 1 root dialout 4, 87 Dec 30 21:37 /dev/ttyS23
crw-rw---- 1 root dialout 4, 88 Dec 30 21:37 /dev/ttyS24
crw-rw---- 1 root dialout 4, 89 Dec 30 21:37 /dev/ttyS25
crw-rw---- 1 root dialout 4, 90 Dec 30 21:37 /dev/ttyS26
crw-rw---- 1 root dialout 4, 91 Dec 30 21:37 /dev/ttyS27
crw-rw---- 1 root dialout 4, 92 Dec 30 21:37 /dev/ttyS28
crw-rw---- 1 root dialout 4, 93 Dec 30 21:37 /dev/ttyS29
crw-rw---- 1 root dialout 4, 94 Dec 30 21:37 /dev/ttyS30
crw-rw---- 1 root dialout 4, 95 Dec 30 21:37 /dev/ttyS31

groups
myusername adm dialout cdrom sudo dip plugdev lpadmin sambashare

irscrutinizer
irscrutinizer: command not found
Back to top
View user's profile Send private message
Barf
Expert


Joined: 24 Oct 2008
Posts: 1402
Location: Munich, Germany

                    
PostPosted: Fri Dec 31, 2021 8:55 am    Post subject: Reply with quote

Quote:
Cool! When you say install, can I run IRS from the AppImage or do you mean some other 'proper' install?


Preferably the generic binary distribution using these instructions. Then call
Code:
irscrutinizer
again.


Quote:
ls -l /dev/tty???
crw-rw---- 1 root dialout 4, 74 Dec 30 21:37 /dev/ttyS10
crw-rw---- 1 root dialout 4, 75 Dec 30 21:37 /dev/ttyS11
...

There was actually four question marks Wink

The dmsg output looks good.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Slimline Salad Dressing



Joined: 29 Dec 2021
Posts: 12

                    
PostPosted: Fri Dec 31, 2021 11:19 am    Post subject: Reply with quote

Barf wrote:
Preferably the generic binary distribution using these instructions.


OK - have tried installing but am stuck... I've unpacked into /usr/local/share/irscrutinizer but when I run irscrutinizer.sh I get this error:

Error: Could not find or load main class org.harctoolbox.guicomponents.irscrutinizer.sh
Caused by: java.lang.ClassNotFoundException: org.harctoolbox.guicomponents.irscrutinizer.sh

(I'm not used to command line so might be a schoolboy error from me?)
Back to top
View user's profile Send private message
Barf
Expert


Joined: 24 Oct 2008
Posts: 1402
Location: Munich, Germany

                    
PostPosted: Fri Dec 31, 2021 11:28 am    Post subject: Reply with quote

You must run it using the name "irscrutinizer", for example through a link with the name "irscrutinizer" (as created by the setup-irscruutinizer.sh script or manually by (e.g.)

Code:
 ln -s /usr/local/share/irscrutinizer/irscrutinizer.sh /usr/local/bin/irscrutinizer
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Slimline Salad Dressing



Joined: 29 Dec 2021
Posts: 12

                    
PostPosted: Fri Dec 31, 2021 11:54 am    Post subject: Reply with quote

Sweet - thank you!

OK it is installed and running. Smile I went back and retyped those 4 lines:

dmesg | tail
[28786.596688] usb 1-1.2: USB disconnect, device number 14
[30699.678570] usb 1-1.1: USB disconnect, device number 12
[30699.678795] ch341-uart ttyUSB1: ch341-uart converter now disconnected from ttyUSB1
[30699.678817] ch341 1-1.1:1.0: device disconnected
[30702.974154] usb 1-1.1: new full-speed USB device number 15 using ehci-pci
[30703.083179] usb 1-1.1: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.54
[30703.083180] usb 1-1.1: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[30703.083181] usb 1-1.1: Product: USB2.0-Serial
[30703.083466] ch341 1-1.1:1.0: ch341-uart converter detected
[30703.084361] usb 1-1.1: ch341-uart converter now attached to ttyUSB0

ls -l /dev/tty????
crw-rw---- 1 root dialout 188, 0 Dec 31 16:46 /dev/ttyUSB0

groups
myusername adm dialout cdrom sudo dip plugdev lpadmin sambashare

irscrutinizer
Dec 31, 2021 4:47:43 PM org.harctoolbox.harchardware.beacon.AmxBeaconListener listenWait
INFO: listening to beacon...
Dec 31, 2021 4:47:43 PM org.harctoolbox.harchardware.beacon.AmxBeaconListener listenWait
INFO: listening...



I'm still getting the timeout error in IRS, and a new popup with 'HarcHardwareException: Hardware not responding'
Back to top
View user's profile Send private message
Barf
Expert


Joined: 24 Oct 2008
Posts: 1402
Location: Munich, Germany

                    
PostPosted: Fri Dec 31, 2021 12:26 pm    Post subject: Reply with quote

I assume port name and baud rate are OK.

Then there is almost nothing left than a hardware error or erroneous firmware on the Arduino.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic       JP1 Remotes Forum Index -> JP1 - Software All times are GMT - 5 Hours
Goto page Previous  1, 2, 3 ... 24, 25, 26, 27  Next
Page 25 of 27

 
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