Jump to content


Photo

Pitanje za kodere i programere androida


  • Please log in to reply
18 replies to this topic

#1 Woody

Woody
  • Members
  • PipPipPipPipPipPipPipPip
  • 1357 posts
  • LocationBeograd

Posted 11 January 2024 - 09:56 PM

Ne znam da li se iko ovde bavi time, ali ne škodi da pitam. Da li u android 12 sistemu postoji podešavanje koje se odnosi na USB MIDI konekciju, osim one jedne u developer options gde se bira default USB konfiguracija između media transfer/charge only/MIDI itd?

Na android 6 sistemu mi je radila konekcija sa jednom MIDI spravom preko OTG kabla, a na android 12 ne radi, bez obzira na podešavanje spomenute opcije.
  • 0
The sea, the sea

#2 Dusan011

Dusan011
  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 14576 posts

Posted 12 January 2024 - 01:44 AM

Pogledaj pod bluetooth & devices


  • 0

#3 Woody

Woody
  • Members
  • PipPipPipPipPipPipPipPip
  • 1357 posts
  • LocationBeograd

Posted 12 January 2024 - 07:34 AM

Pogledaj pod bluetooth & devices


Hvala na odgovoru. Gledam pod BT, ne znam šta tu treba da nađem? Kakve veze ima BT sa USB-om?
  • 0
The sea, the sea

#4 mel

mel
  • Members
  • PipPipPipPip
  • 343 posts

Posted 12 January 2024 - 12:42 PM

promeni kabl ili proveri da li je

 

"Disable USB Audio Routing" setovan na "ON".


  • 0

#5 Woody

Woody
  • Members
  • PipPipPipPipPipPipPipPip
  • 1357 posts
  • LocationBeograd

Posted 12 January 2024 - 02:57 PM

promeni kabl ili proveri da li je
 
"Disable USB Audio Routing" setovan na "ON".


Probao tri različita kabla, nijedan ne radi (nadao sam se da je to, a nada umire poslednja), jedan od ta tri je radio na starom tabletu.

Disable USB audio nije na ON, a ne verujem ni da bi to menjalo nešto, jer imam problem sa midijem, a ne audio signalom.
  • 1
The sea, the sea

#6 mel

mel
  • Members
  • PipPipPipPip
  • 343 posts

Posted 12 January 2024 - 03:34 PM

ok razumem, ali ako OS telefona prepozna midi uređaj kao audio uređaj (zbog auto routinga) onda može da postoji problem. Ja sam imao taj problem kad sam povezivao električni klavir s telefonom, i trebalo je da setujem to, što ne znači naravno da je tako i kod tebe.


  • 0

#7 Dusan011

Dusan011
  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 14576 posts

Posted 12 January 2024 - 04:55 PM

I napisi koji telefon je u pitanju.


  • 0

#8 Woody

Woody
  • Members
  • PipPipPipPipPipPipPipPip
  • 1357 posts
  • LocationBeograd

Posted 12 January 2024 - 05:46 PM

Nije samo jedan uređaj, probao na tabletu redmi pad 10.6 android 12, tablet Samsung A android 11, telefon realme 6 android 11, telefon redmi note 10 pro android 12... redmi pad 10.6 je glavna sprava koju želim da osposobim jer stari Lenovo tab 10 (na kom to radi, android 6), lagano posustaje.
  • 0
The sea, the sea

#9 Dusan011

Dusan011
  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 14576 posts

Posted 12 January 2024 - 06:24 PM

Mislim da je problem sto proizvodjaci nabave nepotpunu verziju Androida, nece da plate ili im Google ne da zbog "sankcija".

Ja bih se posvetio Samsungu procenjujem da on ima najvecu verovatnocu, mada po meni postoji i opcija da proizvodjac tog uredjaja koji zelis da povezes nije platio "reket" Googlu pa su ga iskljucili iz liste prepoznavanja...


  • 0

#10 Woody

Woody
  • Members
  • PipPipPipPipPipPipPipPip
  • 1357 posts
  • LocationBeograd

Posted 12 January 2024 - 10:20 PM

Ok, ako se posvetim Samsungu, šta bi trebalo da gledam ili radim?
  • 0
The sea, the sea

#11 Dusan011

Dusan011
  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 14576 posts

Posted 12 January 2024 - 10:46 PM

Posaljes im email (link na dnu stranice imas email support)  i objasnis situaciju, imam to i to nece da radi sa time, a pre je na tome i tome radilo sa time... Naravno gledas da budes sto precizniji i kraci, da li mogu da povezem ova dva uredjaja i na koji nacin.


  • 1

#12 Woody

Woody
  • Members
  • PipPipPipPipPipPipPipPip
  • 1357 posts
  • LocationBeograd

Posted 12 January 2024 - 11:19 PM

Hvala, proveriću!
  • 0
The sea, the sea

#13 Woody

Woody
  • Members
  • PipPipPipPipPipPipPipPip
  • 1357 posts
  • LocationBeograd

Posted 11 February 2024 - 03:15 PM

Nakon poduže korešpondencije sa developerima MIDI sprave i aplikacije, ispostavlja se da je možda moguće da se napravi dodatni kôd za MIDI spravu koji bi rešio problem. Dakle, nije do Androida, samo developeri nisu obratili pažnju na specifičnu situaciju koju ja (i možda neki mali broj ljudi) imam. Da li će se smilovati, ne znam.

Ako bude napretka, javljam.
  • 0
The sea, the sea

#14 Dusan011

Dusan011
  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 14576 posts

Posted 11 February 2024 - 04:04 PM

Mogao bi da napises koja je MIDI sprava i aplikacija u pitanju...


  • 0

#15 Woody

Woody
  • Members
  • PipPipPipPipPipPipPipPip
  • 1357 posts
  • LocationBeograd

Posted 11 February 2024 - 04:47 PM

Sprava je Midronome, a aplikacija BandHelper
  • 0
The sea, the sea

#16 Dusan011

Dusan011
  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 14576 posts

Posted 11 February 2024 - 06:28 PM

'Si probao ovo?

 

- Open Bandhelper
- Go to MIDI Presets
- Open a Preset -> I get the prompt to allow Android to use the USB device.


  • 0

#17 Woody

Woody
  • Members
  • PipPipPipPipPipPipPipPip
  • 1357 posts
  • LocationBeograd

Posted 11 February 2024 - 10:15 PM

Ta poruka izlazi kada koristim stari tablet sa androidom 6. Na novijim androidima je nema, a saznao sam i verovatni razlog, Midronome ima više MIDI portova koje novi android ne može da prihvati. Da je samo jedan, moglo bi, ovako mora da se prekodira. I dalje mi nije jasno kako stariji sistem može da operiše sa kompleksnijim periferijama nego što mogu noviji.
  • 0
The sea, the sea

#18 Dusan011

Dusan011
  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 14576 posts

Posted 12 February 2024 - 03:00 AM

Sa novim verzijama OS se obicno uvode i novi metodi/komande, vidim da je od Androida 10 uveden native midi a Android 13 ima podrsku i za midi 2.0. Posao baje koji je programirao BandHelper je da to azurira jer neke od komandi koje rade pod Andr6 nece biti prihvacene kod Andr10 ili Andr13...


  • 0

#19 Woody

Woody
  • Members
  • PipPipPipPipPipPipPipPip
  • 1357 posts
  • LocationBeograd

Posted 12 February 2024 - 05:46 AM

Programeri BandHelpera su nakon mnogo čeprkanja i dve test verzije aplikacije zaključili da je ipak najbolje da se Midronome prekodira.


'Okay, I traced this back to an Android issue that I previously reported to Google in 2017:

https://issuetracker...issues/67018187

They said at that time that it was an issue with the MIDI interface and I confirmed that the same code works fine with other MIDI interfaces. In your case that would be an issue with the Midronome.

I don't know how this works on Android 6 but not on Android 8 (which I was using when reporting this) or Android 12 (which you have now) or if it would work in later Android versions. But I would send this to the makers of the Midronome and see if they can reproduce the problem with the sample code in my bug report, or with the more detailed code attached here. If "the device I/O is hanging" as Google said, maybe Midronome can address that with a firmware update. If they found that Android is doing something wrong, they could submit a new bug report to Google.

One hint that might be helpful to them is that the portInfo.name property is empty for the Midronome ports. And just as you observed earlier, the ports do briefly connect and then immediately disconnect when you unplug the interface.'

There is a .txt file attached but I can't send it here so I've made a host link. https://we.tl/t-m1526Dx16B


Ovo sam poslao i Midronomašima, ali nisu još odgovorili.
  • 0
The sea, the sea




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users