[Q] BT problem on CM7 - Galaxy Ace S5830i Q&A, Help & Troubleshooting

Hello everybody!
i tried the CM7 on tassve and copperve devices and i noticed that both have the same bluetooth problem: it can send and receive files, it can connect to handfree devices, it can be controlled by BT devices (like car audio) but no audio streams via BT. Maybe is a common CM7 problem.. and maybe you already hear about that
Here some logcat
Code:
D/A2dpAudioInterface( 1404): A2dpAudioStreamOut::a2dp_start
D/A2dpAudioInterface( 1404): Trying to connect to BTLD (23)
D/A2dpAudioInterface( 1404): A2dpAudioStreamOut::a2dp_start: failed to connect
E/A2dpAudioInterface( 1404): a2dp_write socket not ready
E/bluetooth_ScoSocket.cpp( 1837): accept_work socket() failed: Protocol not supported
E/bluetooth_ScoSocket.cpp( 1837): accept_work socket() failed: Protocol not supported
...
E/bluetooth_ScoSocket.cpp( 1837): accept_work socket() failed: Protocol not supported
I tried to search some error reference, but i didn't find it..
Is there some docs about logcat error? or some docs about porting original module to CM ones?
I know there isn't a ready-solution, but i'm trying to dig for it..
thanks in advance
Fabrizio

Hi @darkholokaust, I am fairly new in Android world , so i might be wrong mate.
a2dp doesn't work with cm7, the reason is that drivers required were never published i guess. and no work-around as far as i know for cooperve devices,,,

Yes, but it seems strange to me that you can't use original one..
In fact on CM11 BT work perfect

Related

[Q] Android + PHP + SSL issues

Hey Everyone,
I recently downloaded and installed "PHP for Android." I created a .php file that utilizes an SSL connection with port 2195. When I tried running it, I get the following error message:
HTML:
Error:14094410:SSL routines:func(148):reason(1040) in /mnt/sdcard/sl4a/scripts/lot.php on line 19
Warning: stream_socket_client(): Failed to enable crypto in /mnt/sdcard/sl4a/scripts/lot.php on line 19
Warning: stream_socket_client(): unable to connect to ssl://gateway.sandbox.push.apple.com:2195 (Unknown error) in /mnt/sdcard/sl4a/scripts/lot.php on line 19
This is my line 19:
"$apns = stream_socket_client('ssl://gateway.sandbox.push.apple.com:2195', $error, $errorString, 2, STREAM_CLIENT_CONNECT, $streamContext);"
I researched what "reason(1040)" means, and supposedly it means that the port is closed. But what firewall is blocking it? The same exact script works when I execute it from my computer from the same wifi connection. Could it be a firewall inside the Android OS?
Any input will be greatly appreciated!!
Thanks!
Does anyone know?
Hey,
We also got that error with the iPhone Push service, and it was due to the certificate not being set correctly (actually the certificate file didn't exist).
I hope this solves your problem if you haven't solved it by now.
Regards,
Chris

[Q] Reverse bluetooth tethering: connect YP-G70 to the internet via bluetooth

After realising the player won't connect to my Skype Phone S2 to nick the internet, I did a bit of "hacking":
1) Rooted the device
2) Installed Nook Color Bluetooth Tether from Google Play
3) After realising Nook Color is not working, tried running pand --connect, got "Failed to open control socket: Protocol not supported" error message
4) Dowloaded the Samsung kernel source and cross-compiled it to get the missing bnep.ko module for my kernel version.
5) Successfully inserted the mod (lsmod reports live). However pand --connect [address] does not return anything, neither does pand -l
I am running out of ideas how to get the player to connect to the skypephone. Any ideas?
I bought the player as a replacement of hx4700 (released in 2004), which was able to tether with my skypephone easily. I still can not believe that this modern device is lacking the feature.
a.fiodorov said:
After realising the player won't connect to my Skype Phone S2 to nick the internet, I did a bit of "hacking":
1) Rooted the device
2) Installed Nook Color Bluetooth Tether from Google Play
3) After realising Nook Color is not working, tried running pand --connect, got "Failed to open control socket: Protocol not supported" error message
4) Dowloaded the Samsung kernel source and cross-compiled it to get the missing bnep.ko module for my kernel version.
5) Successfully inserted the mod (lsmod reports live). However pand --connect [address] does not return anything, neither does pand -l
I am running out of ideas how to get the player to connect to the skypephone. Any ideas?
I bought the player as a replacement of hx4700 (released in 2004), which was able to tether with my skypephone easily. I still can not believe that this modern device is lacking the feature.
Click to expand...
Click to collapse
Are you running pand from the Player? What does logcat show after? Are you running stock rom? Does "netcfg" show a bnep0 device?
If you have a 5.0, I can confirm that I've gotten bluetooth networking working using the CM7 ROM in the development section.
Thank you for informing me about CM7, but current alpha is not good for me though. I ll keep checking the progress.
logcat showed:
"E/pand (22197): Connect to 00:12:40:53:AC:A4 failed. No route to host(113)"
bnep0 is missing from netcfg output.
You think that uploading the compiled kernel, with bnep.ko might solve it?
a.fiodorov said:
Thank you for informing me about CM7, but current alpha is not good for me though. I ll keep checking the progress.
logcat showed:
"E/pand (22197): Connect to 00:12:40:53:AC:A4 failed. No route to host(113)"
bnep0 is missing from netcfg output.
You think that uploading the compiled kernel, with bnep.ko might solve it?
Click to expand...
Click to collapse
I could be wrong, but I didn't think stock gingerbread android bluetooth stack supported networking. I know ICS does. But then again if pand is available..
Is hciconfig there? What does hciconfig -a show?
BlueZ
BlueZ (hciconfig) is not installed.
pand is from /system/bin, so it's not from BusyBox, which is in /system/xbin in my case.
How can I test that the bnep module is functioning?
P.S. might be easer to go for CM7, but I am running exactly the same kernel CM requires: rj13 (for international).
a.fiodorov said:
BlueZ is not installed.
pand is from /system/bin, so it's not from BusyBox, which is in /system/xbin in my case.
How can I test that the bnep module is functioning?
P.S. might be easer to go for CM, but I am running exactly the same kernel CM requires: rj13 (for international). So I am not convinced other rom is necessarily.
Click to expand...
Click to collapse
There's more to it than just loading the bnep module. It will be pretty tough to figure out what's going on without hciconfig/hcitool/l2ping. You could try
Code:
cat /sys/class/bluetooth/hci0/class
With CM7 bluetoothd this shows 0x5a020c on my player. The third byte (0x5a) shows the service classes supported, and the second bit is whether Networking is supported.
@ambrice,
Just realised that it's you who ported CM7. Kudos!
I am very tempted to try bluetooth tethering from CM7, could you address my concern that I will be running the same kernel (rj13), so how will ROM be able to fix my (possibly) not working bnep0?
>>cat /sys/class/bluetooth/hci0/class
cat: can't open '/sys/class/bluetooth/hci0/class': No such file or directory
a.fiodorov said:
@ambrice,
Just realised that it's you who ported CM7. Kudos!
I am very tempted to try bluetooth tethering from CM7, could you address my concern that I will be running the same kernel (rj13), so how will ROM be able to fix my (possibly) not working bnep0?
>>cat /sys/class/bluetooth/hci0/class
cat: can't open '/sys/class/bluetooth/hci0/class': No such file or directory
Click to expand...
Click to collapse
There is a userspace component to setting up bluetooth networking. It's not all done by the bnep module.
It's weird that you have no hci0. Is your bluetooth turned on? Is there anything in /sys/class/bluetooth?
rj13 kernel is incompatible with CM7. However, the kernel that comes with the CM7 ROMs has bnep turned on, and I have been using it to do reverse bluetooth tethering.
Sorry did not realise the kernel for CM7 is different.
I am now running CM7 and still looking for tethering settings in GUI.
EDIT: Still can not find it
a.fiodorov said:
Sorry did not realise the kernel for CM7 is different.
I am now running CM7 and still looking for tethering settings in GUI.
EDIT: Still can not find it
Click to expand...
Click to collapse
There isn't an easy gui setting to do that, the normal way to do bluetooth tethering is to run the pand connect from another device such as a PC, and CyanogenMod has a pand listening for connections and shares its internet, because the normal case is for a laptop to connect to a phone's cell network.
But running pand from the player should work now and give you a bnep0 device that you can configure. Easiest way is to put the steps in a script and run it to connect.
The bluetooth won't come on: says it's in airplane mode. Wifi ignores it though.
So should I fire up pand -c [address] from the player and I am ready to go?
Did not work when bluetooth was still on.
a.fiodorov said:
The bluetooth won't come on: says it's in airplane mode. Wifi ignores it though.
So should I fire up pand -c [address] from the player and I am ready to go?
Did not work when bluetooth was still on.
Click to expand...
Click to collapse
pand will get the bnep0 network device to show up. Then you need to use dhcpcd or ifconfig to configure the network device.
# pand -c 00:12:40:53:AC:A4
# netcfg
lo UP 127.0.0.1 255.0.0.0 0x00000049
ifb0 DOWN 0.0.0.0 0.0.0.0 0x00000082
ifb1 DOWN 0.0.0.0 0.0.0.0 0x00000082
usb0 DOWN 0.0.0.0 0.0.0.0 0x00001002
tunl0 DOWN 0.0.0.0 0.0.0.0 0x00000080
sit0 DOWN 0.0.0.0 0.0.0.0 0x00000080
ip6tnl0 DOWN 0.0.0.0 0.0.0.0 0x00000080
Click to expand...
Click to collapse
Still no bnep0 . The bluetooth is on.
After some googling found a command:
# sdptool search dun
Inquiring ...
Searching for dun on 00:12:40:53:AC:A4 ...
Service Name: Dial-up Networking
Service RecHandle: 0x10009
Service Class ID List:
"Dialup Networking" (0x1103)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 8
Language Base Attr List:
code_ISO639: 0x656e
encoding: 0x6a
base_offset: 0x100
Profile Descriptor List:
"Dialup Networking" (0x1103)
Version: 0x0100
Click to expand...
Click to collapse
What am I missing?
CM
for people who found this thread, here's a potentially very useful link:
http://forum.cyanogenmod.com/topic/...r-blackberry-phone-via-bluetooth/#entry268658
I will see what I can make of it
CM7
I tried the above guide with CM7, and that's the error I got: "Couldn't set tty to PPP discipline: Invalid argument". pptpclient.sourceforge.net says it's just a matter of ppp_async module. I will see if I can get ambrice to include it into the kernel.
any progress or info on this?
I have tried entropy512 as well as rj's kernel and not found the beep module. I also loaded CM7 Rom and got a boot loop. I updated to CM9 and it booted but still no beep module.
Any info would be appreciated.
Thanks.
Try ambrice's ppp_async kernel module with his latest CM7. Use the guide above to get the reverse tethering. That's the only solution I found so far.
Here's the module: http://www.2shared.com/file/PTXe8_Y-/ppp_async.html

CM10, Lack of video decoders in live streams( blank screen with sound)

Dear All,
I have a problem with CyanogenMod's video decoders.
I use an app for watching live sport streams. It made by Octoshape team. It named Digiturkplay, you can find in play store.
When I open this app and open a channel, it shows blank screen and with sound.
I opened a request to octoshape support and they wanted logcats to figure what's going on. I attached below too.
The octoshape team member responded like below quote
I'm afraid it looks like CyanogenMod has modified the video decoder library which throws an error when trying to decode Digiturks streams causing the mediaplayer to give up.
The only possible fix here would be to have CyanogenMod correct their video decoder library to work with Digiturks encoding profiles (which works fine with stock firmware).
10-28 22:05:21.237 1415 3377 E NuPlayer: Received error from video decoder, aborting playback.
10-28 22:05:21.237 1415 3377 E NuPlayer: video track encountered an error (-2147483648)
10-28 22:05:21.237 3162 3174 E MediaPlayer: error (1, -2147483648)
10-28 22:05:21.237 3162 3162 E MediaPlayer: Error (1,-2147483648)
10-28 22:05:21.237 3162 3162 E PLAYER-OCTO: playStream: MediaPlayer Error: 1:-2147483648
Click to expand...
Click to collapse
I tried several roms epinter's CM10 and another CM10 roms. Result is same.
I didn't try CM10.1 because it uses 3.1 kernel and it doesn't support hdmi , I use this device for hdmi.
I tried CM 7 based roms but it's useless because digiturkplay app doesn't support Android 2.X.X versions.
I searched a CM9 rom with hdmi support but there is no result.
Now I'm stuck. The device is useless for me.
If there is any way to rebuild the video decoders, please help me. I attached logcats.
Thank you for the efforts..
ps: I couldnt attached logcat, I'll find a way to upload soon

[CM13] ALSA instead of tinyALSA

Hey guys
I already asked this in some way over at Zenfone 2 sub forum but it might be better to post it here since it could be more CM-related than phone related.
At work we're developing an app which requires an x86 based processor to function properly. But we also need to use ALSA instead of tinyALSA related to various startup scripts required for that mentioned application and the application itself. Rewrite the whole parser is out of question due to the amount of work involved to port it over ARM platform.
Anyway we digged through the mixer settings of tinyALSA and came to the conclusion that it's not suitable for our app.
Currently I'm using the CyanogenMod 13 source code with ALSA lib and ALSA utils packages from Android x86 project (the Marshmallow-one of course). The build process is all fine and the binaries are usable inside an ADB shell but I'm not really able to use aplay for recording or playback of audio files.
Right now I'm stuck with the following error:
Code:
aplay: pcm_write:1684: write error: I/O error
I used "alsa_aplay /sdcard/Front_Center.wav -D hw:0,5 " to test the audio playback.
Some other problems occur when I want to use "alsa_ctl init", alsa_amixer can't load default mixer settings, "alsa_aplay -L" results in "NULL" output and so on.
Any suggestions on how to get audio capabilities working with true ALSA?
By the way: Our Zenfone 2 uses an Intel Atom Z3560 processor with rt5647-audio codec.

Question Audio doesn't work (speakers, microphone, bluetooth)

Hello, everyone
I'm trying to understand what's the problem with my mi pad 5 pro. There are a couple of problems which I'm trying to resolve.
First of all I can't install any firmware except V12.5.14.0.RKYCNXM. I was trying to install it using fastboot and recovery, official way. Everytime my tablet is freezed on miui logo and nothing more.
I don't know why but it works only on V12.5.14.0.RKYCNXM.
I also tried to install custom lineageOS 20.0 and it works but audio problem still exists.
The second problem is with audio. Everything is associated with audio (speakers, microphone, bluetooth) doesn't work. Recorder app crashes. Video in camera crashes. Video in browser is playing without sound. I can suppose that because of audio problem other firmwares can't be installed correctly.
I have some logs from tablet but google didn't help me with that
03-06 19:26:49.104 1805 7040 E AudioSystem-JNI: AudioSystem::listAudioPorts error -19
03-06 19:26:49.104 1805 7040 W AudioManager: updateAudioPortCache: listAudioPorts failed
03-06 19:26:49.143 689 10575 E sscrpcd : vendor/qcom/proprietary/commonsys-intf/adsprpc/src/apps_std_imp.c:596:Error 0xffffffff: apps_std getenv failed: ADSP_LIBRARY_PATH Unknown error -1
03-06 19:26:49.143 689 10575 W sscrpcd : vendor/qcom/proprietary/commonsys-intf/adsprpc/src/apps_std_imp.c:805: Warning: apps_std_fopen_with_env failed with 0x2 for /mnt/vendor/persist/sensors/registry/registry (No such file or directory)
03-06 19:26:49.143 689 10575 E sscrpcd : vendor/qcom/proprietary/commonsys-intf/adsprpc/src/apps_std_imp.c:1126::Error: 201: 0 == (nOpenErr = apps_std_fopen_with_env(ADSP_LIBRARY_PATH, ";", name, "r", &ps))
03-06 19:26:49.143 689 10575 E sscrpcd : vendor/qcom/proprietary/commonsys-intf/adsprpc/src/apps_std_imp.c:1145:Error 0x201: apps_std_stat: failed to stat /mnt/vendor/persist/sensors/registry/registry, file open returned 0x2 (No such file or directory)
If you have some thought about it please respond me. Thanks in advance
Hello @Vlady_32
Try factory reset after flashing them. Your device should be able to flash all Stock ROM for your device model. IMO if the issue persists, you should return the device.
How could you install recovery ROM? Does elish have custom recovery like TWRP? I found only AOSP recovery for elish which cannot flash recovery Stock ROMs.
I've successfully installed the last version of DEV firmware MIUI V13.1.22.11.21.DEV using Magisc and three dots way. But audio still doesn't work and the same errors in the log
AudioSystem::listAudioPorts error -19
Got any leads on how to solve the issue? I'm facing this exact problem too

Categories

Resources