Author Topic: pfm3 : usb midi not working in 0.99b?  (Read 14781 times)

lokki

  • Sr. Member
  • ****
  • Posts: 383
    • View Profile
pfm3 : usb midi not working in 0.99b?
« on: December 09, 2020, 02:02:07 PM »
i can't see my preenfm3 via usb-midi connection in 0.99b could that be?
« Last Edit: January 16, 2021, 01:04:13 PM by Xavier »

lokki

  • Sr. Member
  • ****
  • Posts: 383
    • View Profile
Re: usb midi not working in 0.99b?
« Reply #1 on: December 09, 2020, 02:10:13 PM »
hmm, the preenfm3 does not show up as midi device...

but i can update/downgrade the firmware just fine, so that means communication is working fine. i am sure this was working before.

i tried 0.91, 0_97 and 0_99 and they all don't show up on my mac. will investigate further...


lokki

  • Sr. Member
  • ****
  • Posts: 383
    • View Profile
Re: usb midi not working in 0.99b?
« Reply #2 on: December 09, 2020, 02:18:27 PM »
ok,
Code: [Select]
ioreg -p IOUSB -l -w 0
gives me:

Code: [Select]
    +-o preenfm3@14200000  <class AppleUSBDevice, id 0x10000ce78, registered, matched, active, busy 0 (7 ms), retain 31>
        {
          "sessionID" = 427533152208158
          "iManufacturer" = 1
          "bNumConfigurations" = 1
          "idProduct" = 22336
          "bcdDevice" = 256
          "Bus Power Available" = 250
          "USB Address" = 14
          "bMaxPacketSize0" = 64
          "iProduct" = 2
          "iSerialNumber" = 0
          "bDeviceClass" = 0
          "Built-In" = No
          "locationID" = 337641472
          "bDeviceSubClass" = 0
          "bcdUSB" = 272
          "USB Product Name" = "preenfm3"
          "PortNum" = 2
          "non-removable" = "no"
          "IOCFPlugInTypes" = {"9dc7b780-9ec0-11d4-a54f-000a27052861"="IOUSBFamily.kext/Contents/PlugIns/IOUSBLib.bundle"}
          "bDeviceProtocol" = 0
          "IOUserClientClass" = "IOUSBDeviceUserClientV2"
          "IOPowerManagement" = {"DevicePowerState"=0,"CurrentPowerState"=4,"CapabilityFlags"=32768,"MaxPowerState"=4,"DriverPowerState"=4}
          "kUSBCurrentConfiguration" = 1
          "Device Speed" = 1
          "USB Vendor Name" = "Xavier Hosxe"
          "idVendor" = 1155
          "IOGeneralInterest" = "IOCommand is not serializable"
          "IOClassNameOverride" = "IOUSBDevice"
        }

and yes i have Usb Midi enabled in the config menu (In/Out)

Xavier

  • Administrator
  • Hero Member
  • *
  • Posts: 2259
    • View Profile
Re: usb midi not working in 0.99b?
« Reply #3 on: December 09, 2020, 09:29:02 PM »

Will take a look at that on my mac.

lokki

  • Sr. Member
  • ****
  • Posts: 383
    • View Profile
Re: usb midi not working in 0.99b?
« Reply #4 on: December 09, 2020, 09:36:58 PM »
don't actually! after a reboot to linux (dual boot system) it started working again, also on osx. so it seems to be an osx oddity...

lokki

  • Sr. Member
  • ****
  • Posts: 383
    • View Profile
Re: usb midi not working in 0.99b?
« Reply #5 on: December 09, 2020, 10:35:09 PM »
argh...it just happened again. OSX is not recognising the preenfm3 anymore.

lokki

  • Sr. Member
  • ****
  • Posts: 383
    • View Profile
Re: usb midi not working in 0.99b?
« Reply #6 on: December 09, 2020, 10:39:20 PM »
i suspect it is my macbook air actually. i had an issue with a preenfm2 and a garbled display that was only present on the air. i guess the usb ports just don't deliver enough "juice"...

how much power does the preenfm3 need?

lokki

  • Sr. Member
  • ****
  • Posts: 383
    • View Profile
Re: usb midi not working in 0.99b?
« Reply #7 on: December 10, 2020, 10:16:24 AM »
Xavier, would it be possible for you to reimplement the screen dimming feature? this would allow me to run the preenfm3 from my air. and honestly I liked the backlight a bit dimmer then full brightness...

lokki

  • Sr. Member
  • ****
  • Posts: 383
    • View Profile
Re: usb midi not working in 0.99b?
« Reply #8 on: December 14, 2020, 01:20:17 PM »
ok, so...

it seems this is not related to my macbook air after all. i cannot get my preenfm3 to be seen on any other computer as well!
so usb-midi is broken for me.

symptoms:

preenfm3 turns on normally
osx does not see the preenfm3 as midi device, it is not even recognised as usb device via:
Code: [Select]
ioreg -p IOUSB -l -w 0 in terminal.

putting it into DFU mode (with jumper set) it is recognised by
Code: [Select]
ioreg -p IOUSB -l -w 0 and i can flash firmware.

i guess communication is working so it is not a hardware issue, right?

anything i can try? i know this was working before, so it seems really strange.

Xavier

  • Administrator
  • Hero Member
  • *
  • Posts: 2259
    • View Profile
Re: usb midi not working in 0.99b?
« Reply #9 on: December 14, 2020, 02:14:50 PM »
I can see the preenfm3 on my macbook (Big Sur / Was working in previous catalina 10.15).

I tested the pfm2 editor (when can mainly work with pfm3).
I verified it's visible in ableton live 10.
And also in MacOs>Utilities>Audio Midi Setup> Midi Studio.

So I don't know what i can do here.
What application did you try ?


I forgot to reply to some questions :
how much power does the preenfm3 need?

300mA.

Xavier, would it be possible for you to reimplement the screen dimming feature? this would allow me to run the preenfm3 from my air. and honestly I liked the backlight a bit dimmer then full brightness...

I tried to remove all what could lead to electornic noise.
I may put it back when i'm sure it does not decrease TFT stability.
(Lowering the brightness requires sending a PWM message to the TFT led at 100Khz)
« Last Edit: December 14, 2020, 02:17:55 PM by Xavier »

lokki

  • Sr. Member
  • ****
  • Posts: 383
    • View Profile
Re: usb midi not working in 0.99b?
« Reply #10 on: December 14, 2020, 02:29:26 PM »
ok thanks.

is there any difference in USB communication between the DFU mode and regular synth boot up?? can one fail and the other work? from a hardware point of view, the connections are exactly the same, so if one works, the other should work as well, right?

i really don't know what to try here...

i tried with puredata, but i can also not see it in audio midi setup (well i can see that it was once online, but not anymore)

i don't know about the tft, does not seem to make a difference after all. i am just baffled it used to work, and not anymore, i did not change anything on the preenfm3 except for firmware upload...

Xavier

  • Administrator
  • Hero Member
  • *
  • Posts: 2259
    • View Profile
Re: usb midi not working in 0.99b?
« Reply #11 on: December 14, 2020, 02:37:06 PM »
is there any difference in USB communication between the DFU mode and regular synth boot up?? can one fail and the other work? from a hardware point of view, the connections are exactly the same, so if one works, the other should work as well, right?

Yes the connection is exactly the same.
USB is only 1 data lines (on 2 differential wires).

But they require totally different driver. And USB is all about drivers.

I don't know if there's a way on MacOS to see what USB drivers is in use for the different devices.


lokki

  • Sr. Member
  • ****
  • Posts: 383
    • View Profile
Re: usb midi not working in 0.99b?
« Reply #12 on: December 14, 2020, 03:49:11 PM »
Yes, put the command I wrote above into a terminal...

ioreg -p IOUSB -l -w 0

It will give you a list of all devices and the driver it uses etc. preenfm3 is not even listed here when I boot it normally. I will next try to boot without usb power and a wall wart supply to see if it changes something.

lokki

  • Sr. Member
  • ****
  • Posts: 383
    • View Profile
Re: usb midi not working in 0.99b?
« Reply #13 on: December 14, 2020, 04:03:51 PM »
ok, with a wall wart (and the jumper set to dc in) it is also not recognized.

Hmm...will try a reflash. could a bug in the bootloader prevent usb midi from working? or is the usb stuff completely in firmware?

Xavier

  • Administrator
  • Hero Member
  • *
  • Posts: 2259
    • View Profile
Re: usb midi not working in 0.99b?
« Reply #14 on: December 14, 2020, 04:15:12 PM »
Not sure reflashing will change anything.

The bootloader might change some clocks that prevent the firmware from working. But i doupt it's the case.
Will check anyway.
« Last Edit: December 14, 2020, 09:45:48 PM by Xavier »