[Solved] Problem with encoders ? How to test?

Hello everyboby

Yesterday I update the my OS. (with the stable version)
I did it directly (I didn’t test my zynthian before, and i didn’t use it for 6 months).

I have a V2.0 version
So in the http://zynthian.local/ I change for a V2 Kit version in the menu.
but after reboot the encoders are down.

I burn once again the OS image on the SD card , I try another SD card,
I try to change wiring in the webconf parameters ; …
alway the same problem.

the touchscreen is OK (I can test MP3 audio for exemple)
But nothing with the rotates encoders and click.
I have open the box to check the connectors. they seems to be OK.
I think there is a problem on the mpc23017 card. But I’m not sure
Is there a way to test this card ?

But the problem is perharps elsewhere ???

Please can someone help ?

Stephane

i2cdetect -y 1 will tell you if you can actually communicate with the allinone card as a starting point…

Does the webconf come up and can you see the UI log?

I don’t know how to put the command line : i2cdetect -y 1

Here is the result of the UI log :

Restarting UI in debug mode
– Logs begin at Thu 2019-02-14 10:11:58 GMT. –
May 27 08:50:27 zynthian systemd[1]: Started Zynthian User Interface (DEBUG).
May 27 08:50:27 zynthian startx[1271]: X.Org X Server 1.20.4
May 27 08:50:27 zynthian startx[1271]: X Protocol Version 11, Revision 0
May 27 08:50:27 zynthian startx[1271]: Build Operating System: Linux 4.15.0-99-generic armv8l Raspbian
May 27 08:50:27 zynthian startx[1271]: Current Operating System: Linux zynthian 4.19.118-v7+ #1311 SMP Mon Apr 27 14:21:24 BST 2020 armv7l
May 27 08:50:27 zynthian startx[1271]: Kernel command line: coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 snd_bcm2835.enable_headphones=1 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
May 27 08:50:27 zynthian startx[1271]: Build Date: 07 July 2020 09:38:51PM
May 27 08:50:27 zynthian startx[1271]: xorg-server 2:1.20.4-1+rpt2 (https://www.debian.org/support)
May 27 08:50:27 zynthian startx[1271]: Current version of pixman: 0.36.0
May 27 08:50:27 zynthian startx[1271]: Before reporting problems, check http://wiki.x.org
May 27 08:50:27 zynthian startx[1271]: to make sure that you have the latest version.
May 27 08:50:27 zynthian startx[1271]: Markers: (–) probed, (**) from config file, (==) default setting,
May 27 08:50:27 zynthian startx[1271]: (++) from command line, (!!) notice, (II) informational,
May 27 08:50:27 zynthian startx[1271]: (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
May 27 08:50:27 zynthian startx[1271]: (==) Log file: “/var/log/Xorg.0.log”, Time: Wed May 27 08:50:27 2020
May 27 08:50:27 zynthian startx[1271]: (==) Using config directory: “/etc/X11/xorg.conf.d”
May 27 08:50:27 zynthian startx[1271]: (==) Using system config directory “/usr/share/X11/xorg.conf.d”
May 27 08:50:28 zynthian startx[1271]: INFO:zynthian_gui_config.: ZYNTHIAN-UI CONFIG …
May 27 08:50:28 zynthian startx[1271]: INFO:zynthian_gui_config.: Wiring Layout MCP23017_EXTRA
May 27 08:50:28 zynthian startx[1271]: DEBUG:zynthian_gui_config.: ZYNCODER A: [102, 105, 110, 113]
May 27 08:50:28 zynthian startx[1271]: DEBUG:zynthian_gui_config.: ZYNCODER B: [101, 104, 109, 112]
May 27 08:50:28 zynthian startx[1271]: DEBUG:zynthian_gui_config.: SWITCHES layout: [100, 103, 108, 111, 106, 107, 114, 115]
May 27 08:50:28 zynthian startx[1271]: DEBUG:zynthian_config.get_disabled_midi_in_ports: DISABLED_MIDI_IN = [’’]
May 27 08:50:28 zynthian startx[1271]: DEBUG:zynthian_config.get_enabled_midi_out_ports: ENABLED_MIDI_OUT = [‘ttymidi:MIDI_out’]
May 27 08:50:28 zynthian startx[1271]: DEBUG:zynthian_config.get_enabled_midi_fb_ports: ENABLED_MIDI_FB = [’’]
May 27 08:50:28 zynthian startx[1271]: DEBUG:zynthian_gui_config.set_midi_config: MMC Bank Change CCNum: 0
May 27 08:50:28 zynthian startx[1271]: DEBUG:zynthian_gui_config.set_midi_config: MMC Bank Change UP: None
May 27 08:50:28 zynthian startx[1271]: DEBUG:zynthian_gui_config.set_midi_config: MMC Bank Change DOWN: None
May 27 08:50:28 zynthian startx[1271]: DEBUG:zynthian_gui_config.set_midi_config: MMC Program Change UP: None
May 27 08:50:28 zynthian startx[1271]: DEBUG:zynthian_gui_config.set_midi_config: MMC Program Change DOWN: None
May 27 08:50:32 zynthian startx[1271]: INFO:zynthian_gui.: STARTING ZYNTHIAN-UI …
May 27 08:50:32 zynthian startx[1271]: INFO:zynthian_gui_keybinding.load: Loading key binding from keybinding.yaml
May 27 08:50:32 zynthian startx[1271]: DEBUG:zynthian_gui_keybinding.load: Loading default keyboard bindings.
May 27 08:50:32 zynthian startx[1271]: libjackpeak registering as ‘jackpeak’.
May 27 08:50:32 zynthian startx[1271]: libjackpeak created input ports
May 27 08:50:32 zynthian startx[1271]: INFO:zynthian_gui.zynswitches_init: SWITCHES INIT…
May 27 08:50:32 zynthian startx[1271]: INFO:zynthian_gui.zynswitches_init: SETUP ZYNSWITCH 0 => wpGPIO 100
May 27 08:50:32 zynthian startx[1271]: INFO:zynthian_gui.zynswitches_init: SETUP ZYNSWITCH 1 => wpGPIO 103
May 27 08:50:32 zynthian startx[1271]: INFO:zynthian_gui.zynswitches_init: SETUP ZYNSWITCH 2 => wpGPIO 108
May 27 08:50:32 zynthian startx[1271]: INFO:zynthian_gui.zynswitches_init: SETUP ZYNSWITCH 3 => wpGPIO 111
May 27 08:50:32 zynthian startx[1271]: INFO:zynthian_gui.zynswitches_init: SETUP ZYNSWITCH 4 => wpGPIO 106
May 27 08:50:32 zynthian startx[1271]: INFO:zynthian_gui.zynswitches_init: SETUP ZYNSWITCH 5 => wpGPIO 107
May 27 08:50:32 zynthian startx[1271]: INFO:zynthian_gui.zynswitches_init: SETUP ZYNSWITCH 6 => wpGPIO 114
May 27 08:50:32 zynthian startx[1271]: INFO:zynthian_gui.zynswitches_init: SETUP ZYNSWITCH 7 => wpGPIO 115
May 27 08:50:32 zynthian startx[1271]: INFO:zynthian_gui.zynswitches_midi_setup: MIDI SWITCHES SETUP…
May 27 08:50:32 zynthian startx[1271]: INFO:zynthian_gui.zynswitches_midi_setup: MIDI ZYNSWITCH 4: DISABLED!
May 27 08:50:32 zynthian startx[1271]: INFO:zynthian_gui.zynswitches_midi_setup: MIDI ZYNSWITCH 5: DISABLED!
May 27 08:50:32 zynthian startx[1271]: INFO:zynthian_gui.zynswitches_midi_setup: MIDI ZYNSWITCH 6: DISABLED!
May 27 08:50:32 zynthian startx[1271]: INFO:zynthian_gui.zynswitches_midi_setup: MIDI ZYNSWITCH 7: DISABLED!
May 27 08:50:32 zynthian startx[1271]: INFO:zynthian_engine.start: Starting Engine JackTransport
May 27 08:50:32 zynthian startx[1271]: DEBUG:zynthian_engine.start: Command: /usr/local/bin/jack_transport
May 27 08:50:33 zynthian startx[1271]: DEBUG:zynthian_engine_mixer.get_controllers_dict: MIXER CTRL LIST: [‘Digital Left’, ‘Digital Right’]
May 27 08:50:33 zynthian startx[1271]: DEBUG:zynthian_engine_mixer.get_mixer_zctrls: ADDING ZCTRL LEVEL: Digital_0 => 100
May 27 08:50:33 zynthian startx[1271]: DEBUG:zynthian_engine_mixer.get_mixer_zctrls: ADDING ZCTRL LEVEL: Digital_1 => 100
May 27 08:50:33 zynthian startx[1271]: DEBUG:zynthian_engine_mixer._send_controller_value: amixer -M -c sndrpihifiberry set ‘Digital’ ‘Playback’ 100%,100% unmute
May 27 08:50:33 zynthian startx[1271]: DEBUG:zynthian_engine_mixer._send_controller_value: amixer -M -c sndrpihifiberry set ‘Digital’ ‘Playback’ 100%,100% unmute
May 27 08:50:33 zynthian startx[1271]: INFO:zynthian_gui_admin.stop_rbpi_headphones: STOPPING RBPI HEADPHONES
May 27 08:50:34 zynthian startx[1271]: ERROR: PatternManager failed to open file for load /zynthian/zynthian-my-data/sequences/patterns.zynseq
May 27 08:50:34 zynthian startx[1271]: INFO:zynthian_gui.osc_init: ZYNTHIAN-UI OSC server running in port 1370
May 27 08:50:34 zynthian startx[1271]: INFO:zynthian_gui_admin.stop_midi_clock: STOPPING MIDI CLOCK
May 27 08:50:34 zynthian startx[1271]: INFO:zynthian_gui_admin.stop_rtpmidi: STOPPING RTP-MIDI
May 27 08:50:35 zynthian startx[1271]: WARNING:zynthian_autoconnect.cb_jack_xrun: Jack Audio XRUN!
May 27 08:50:35 zynthian startx[1271]: INFO:zynthian_gui_admin.stop_qmidinet: STOPPING QMIDINET
May 27 08:50:35 zynthian startx[1271]: INFO:zynthian_gui_admin.stop_touchosc2midi: STOPPING touchosc2midi
May 27 08:50:35 zynthian startx[1271]: WARNING:zynthian_autoconnect.cb_jack_xrun: Jack Audio XRUN!
May 27 08:50:36 zynthian startx[1271]: WARNING:zynthian_autoconnect.cb_jack_xrun: Jack Audio XRUN!
May 27 08:50:36 zynthian startx[1271]: INFO:zynthian_gui_admin.stop_aubionotes: STOPPING aubionotes
May 27 08:50:36 zynthian startx[1271]: WARNING:zynthian_autoconnect.cb_jack_xrun: Jack Audio XRUN!
May 27 08:50:36 zynthian startx[1271]: DEBUG:zynthian_gui_controller.config: ZCTRL ‘Main’: 0 (0 -> 9), None, None

Hi @stef_the_sims!

Have you configured the new SD image for working with your v2 kit? The latest SD imges are pre-configured for the latest hardware version,

Simply access the webconf and select your kit :wink:

BTW, i’m thinking on implementing a simple configuration screen that would be launched on the first boot.

Regards!

1 Like

Hi @jofemodo
Yes that is I tried to explain :
Yes I accessed to the webconf and select the V2 kit, but the encoders doesn’t work.

From the command Line. Either using ssh or within the webconf (there is a console wrapper in it) or any other remote Access method.

I success to install putty and I have an access to the zynthian.
The result is image

it’s OK now but I don’t understand.
Yesterday i tried to do an update vi the webconf but I can not acces to github.
Yesterday i tried to update throught the wifi of the box but I did’t access acces to github
Today I tried with another wifi access and I success to do an update software from the touchscreen.

And now encoders are OK.
:grinning:

So I have to know for a next time that the https://os.zynthian.org/zynthianos-last-stable.zip is perhaps not stable for me ! :slight_smile: .

but it’s not really easy to do some things without encoders ! :smile:

I have experienced Zynthian (and other devices) not renewing its DHCP lease which can result in an apparent loss of Internet connection. Restarting the Zynthian resolves this. When this was happening to me I found it occured about every 24 hours which I think was the lease time on my DHCP server. I changed some LAN configuration and don’t suffer from this now but I think there may be some oddity with the way that DHCP and other name resolution mechanisms.

Thanks for the information !
I had yet rebooted the zynthian many times and try many time an update.

But there is one thing i don’t understand. Why is it necessary to make an update to recover the configuration of the encoders? why can’t it be in the OS image?
There is something that I must not have done or understood well.

I’ve also found it’s a little indicative of a damaged SSD especially if your power goes on and off intermittently