B4Abridge on Optimus 3D makes constant loud warning noise whenever run

mistermentality

Active Member
Licensed User
Longtime User
[Solved] B4Abridge on Optimus 3D makes constant loud warning noise whenever run

I installed B4A bridge onto an LG Optimus 3D and as soon as the bridge is run it produces a non stop series of on off warning like beeps (like the old fashioned warning noises they used to have in old seventies movies when a nuclear missile was about to launch, is the only way I can describe it).

Even when connected, it constantly makes this beep. No other wireless apps do, and if I check the logs I get these errors (full log from when I installed the bridge until after trying it, I installed it then immediately after I installed it I ran the bridge. It is how I got the following log)....

I am guessing it is a warning noise but not being an Android expert I don't see exactly what causes this in the log other than that it is definitely only the bridge being run that produces this noise so any help would be very appreciated.

B4X:
SurfaceFlinger::createSurface() : layer->mIdentity=130, LayerName= com.android.packageinstaller/com.android.packageinstaller.PackageInstallerActivity
SurfaceFlinger::createSurface() : layer->clientIndex=0, surfaceHandle->mToken=0x0
Displayed activity com.android.packageinstaller/.PackageInstallerActivity: 312 ms (total 312 ms)
PC SYNC Started
AT Command Thread Started
[daemon/usb] ospd_serial_initialize : can't open serial port /dev/ttyGS1
PC SYNC Started
AT Command Thread Started
GC_FOR_MALLOC freed 7297 objects / 538568 bytes in 85ms
setIndicatorValue: 6,3
JBtlAg context is disabled
mJBtlAgHandler.setIndicatorValue() failed
changeRefCount() stream 8, count 0
setOutputDevice() output 1 device 0 delayMs 40
setOutputDevice() setting same device 0 or null device for output 1
PC SYNC Started
AT Command Thread Started
setIndicatorValue: 6,2
JBtlAg context is disabled
mJBtlAgHandler.setIndicatorValue() failed
[daemon/usb] ospd_serial_initialize : can't open serial port /dev/ttyGS1
setParameters hiddenMicMuteMode=0
HF Left Playback 0 0
HF Right Playback 0 0
called drain&close
setParameters() delayedHiddenMicMuteMode=1
setParameters delayedHiddenMicMuteMode=1
AUDUL Voice UL Volume 120 -1
setIndicatorValue: 6,3
JBtlAg context is disabled
mJBtlAgHandler.setIndicatorValue() failed
Starting activity: Intent { dat=file:///mnt/sdcard/temp.apk cmp=com.android.packageinstaller/.InstallAppProgress (has extras) }


SurfaceFlinger::createSurface() : layer->mIdentity=131, LayerName= com.android.packageinstaller/com.android.packageinstaller.InstallAppProgress
SurfaceFlinger::createSurface() : layer->clientIndex=1, surfaceHandle->mToken=0x1
GC_EXPLICIT freed 270 objects / 16704 bytes in 51ms
Scanning package: /data/app/vmdl55314.tmp
Scanning package anywheresoftware.b4a.designer
/data/app/anywheresoftware.b4a.designer-1.apk changed; unpacking
Displayed activity com.android.packageinstaller/.InstallAppProgress: 252 ms (total 252 ms)
DexInv: --- BEGIN '/data/app/anywheresoftware.b4a.designer-1.apk' ---
creating instr width table
DexInv: --- END '/data/app/anywheresoftware.b4a.designer-1.apk' (success) ---
  Services: anywheresoftware.b4a.designer.ConnectorService
  Activities: anywheresoftware.b4a.designer.Designer
Force stopping package anywheresoftware.b4a.designer uid=10120
PC SYNC Started
AT Command Thread Started
move /data/dalvik-cache/data@[email protected]@classes.dex -> /data/dalvik-cache/data@[email protected]@classes.dex
New package installed in /data/app/anywheresoftware.b4a.designer-1.apk
PackageAdded: package:anywheresoftware.b4a.designer
START OF PackageChangeReceiver
intent.getAction() : android.intent.action.PACKAGE_ADDED
getData() : package:anywheresoftware.b4a.designer
action/data of the intent is NULL or empty
END OF PackageChangeReceiver
GC_EXPLICIT freed 16560 objects / 907968 bytes in 95ms
SystemEventReceiver (-1) onReceive: android.intent.action.PACKAGE_ADDED
process name to start: com.rsupport.starter
Start proc com.rsupport.starter for broadcast com.rsupport.starter/.BootBR: pid=2758 uid=1000 gids={3003, 3002, 3001, 4002, 1015, 1006}
AndroidInstaller BootBR
---------------- AndroidInstaller BootBR : android.intent.action.PACKAGE_ADDED
AndroidRuntime onExit calling exit(0)
Process com.rsupport.starter (pid 2758) has died.
[39] LocalAssetCache.updateOnePackage(): No local info for anywheresoftware.b4a.designer
setIndicatorValue: 6,4
JBtlAg context is disabled
mJBtlAgHandler.setIndicatorValue() failed
PC SYNC Started
AT Command Thread Started
[daemon/usb] ospd_serial_initialize : can't open serial port /dev/ttyGS1
Finished installing anywheresoftware.b4a.designer
** Activity (main) Resume **


SurfaceFlinger::createSurface() : layer->mIdentity=132, LayerName= anywheresoftware.b4a.b4abridge/anywheresoftware.b4a.b4abridge.main
SurfaceFlinger::createSurface() : layer->clientIndex=0, surfaceHandle->mToken=0x0
Btips test >>> restart package locked package name:com.lge.wapservice
No longer want com.lge.wapservice (pid 632): hidden #26
PC SYNC Started
AT Command Thread Started
PC SYNC Started
AT Command Thread Started
[daemon/usb] ospd_serial_initialize : can't open serial port /dev/ttyGS1
GC_EXPLICIT freed 173 objects / 11704 bytes in 60ms
PC SYNC Started
AT Command Thread Started
PC SYNC Started
AT Command Thread Started
GC_EXPLICIT freed 878 objects / 59400 bytes in 117ms
[daemon/usb] ospd_serial_initialize : can't open serial port /dev/ttyGS1
*** WebSyncManager sync ***
CookieSyncManager::syncFromRamToFlash STARTS
CookieSyncManager::syncFromRamToFlash DONE
Default buffer size used in BufferedReader constructor. It would be better to be explicit if an 8k-char buffer is required.
Abnormal_Check
wakelock number N =0
PC SYNC Started
AT Command Thread Started
handleMessage monitor is completed.
handleMessage mCompleted is true...
GC_EXPLICIT freed 1619 objects / 103120 bytes in 81ms
getDoingTimer do_timerfalse
BroadcastReceiver : android.intent.action.BATTERY_CHANGED
ACTION_BATTERY_CHANGED pluggedType: 1
ACTION_BATTERY_CHANGED : do not updateWifiState
PC SYNC Started
AT Command Thread Started
[daemon/usb] ospd_serial_initialize : can't open serial port /dev/ttyGS1
GC_EXPLICIT freed 481 objects / 32568 bytes in 75ms
PC SYNC Started
AT Command Thread Started
GC_EXPLICIT freed 235 objects / 12472 bytes in 73ms
PC SYNC Started
AT Command Thread Started
[daemon/usb] ospd_serial_initialize : can't open serial port /dev/ttyGS1
GC_EXPLICIT freed 1088 objects / 121912 bytes in 75ms
Freeing OpenSSL session
PC SYNC Started
AT Command Thread Started
GC_EXPLICIT freed 4073 objects / 253760 bytes in 131ms
PC SYNC Started
AT Command Thread Started
[daemon/usb] ospd_serial_initialize : can't open serial port /dev/ttyGS1
GC_EXPLICIT freed 197 objects / 12392 bytes in 67ms
PC SYNC Started
AT Command Thread Started
GC_EXPLICIT freed 263 objects / 14216 bytes in 66ms
PC SYNC Started
AT Command Thread Started
[daemon/usb] ospd_serial_initialize : can't open serial port /dev/ttyGS1
*** set_screen_state 0
[onScreenLock] boottime = false
[onScreenLock] why = 3
[onScreenLock] mScreenOffTimeout = 60
[onScreenLock] mLockOnTimeout = 0
[onScreenLock] mSettingTime = -60
[onScreenLock] mVisablePasswd = true
unregisterListener : android.view.WindowOrientationListener$SensorEventListenerImpl
HAL: control__activate handle = 10 enabled = 0
(before) apds sensors = 00000000, real = 00000000
(after) apds sensors = 00000000, real = 00000000
enable_disable_mpld active=400 sensors=0 mask=400
HAL: enable_disable_mpld tok= 0 sen = 1 ac_flag = 0, active = 0 (remote returned 0)
found or opened 'proximity' driver
using /dev/input/event4 (name=proximity)
open_inputs returning 0
apds type: 0 code: 1 value: 0     time: 1606s
apds abs 00000000
data__poll_process_apds_abs exit = 1 1
apds syn 00000000
mpld idle
** Activity (main) Pause, UserClosed = false **
===================== tspdrv vibrator_off
intent=android.intent.action.SCREEN_OFF
ACTION_SCREEN_OFF received
There are 47 processes in LRU list
Free: 131 MB
Threshold: 80 MB
There is enough memory!
LGE_Fast_Dormancy) screen off when current PDPstate=(INACTIVE) and DataTransfer=false
BroadcastReceiver : android.intent.action.SCREEN_OFF
ACTION_SCREEN_OFF
ACTION_SCREEN_OFF : Curr Sleep Policy -> While Plugged&Un-Plugged or Screen off
GetWiFiStats : Tx 388034 Rx 1356487
PC SYNC Started
AT Command Thread Started
[isUsimPersoLockScreenMode] mTelephonyManager(1)= null
[isUsimPersoLockScreenMode] mTelephonyManager(2)= android.telephony.TelephonyManager@46ea4208
DISABLE_EXPAND: yes
intent=android.intent.action.CLOSE_SYSTEM_DIALOGS
onBind: Intent { act=android.accounts.AccountAuthenticator cmp=com.google.android.gsf/.loginservice.GoogleLoginService }


SurfaceFlinger::createSurface() : layer->mIdentity=133, LayerName= Keyguard
SurfaceFlinger::createSurface() : layer->clientIndex=0, surfaceHandle->mToken=0x0
packageItemInfo:2Google App Engine
packageItemInfo:2Google Finance
packageItemInfo:2Google Voice
packageItemInfo:2Google Maps
packageItemInfo:2Google Notebook
getDoingTimer do_timerfalse
BroadcastReceiver : android.intent.action.BATTERY_CHANGED
ACTION_BATTERY_CHANGED pluggedType: 1
ACTION_BATTERY_CHANGED : do not updateWifiState
PC SYNC Started
AT Command Thread Started
[daemon/usb] ospd_serial_initialize : can't open serial port /dev/ttyGS1

Is there any idea why this is happening as it works fine on my LG GT540?

Dave
 
Last edited:

mistermentality

Active Member
Licensed User
Longtime User
Nothing in the logs is related to B4A-Bridge.
Maybe it got something to do with this error message:
B4X:
[daemon/usb] ospd_serial_initialize : can't open serial port /dev/ttyGS1

All the entries in the log are from when it is installed and run, the warning siren only happens when using the bridge as other wireless apps are working fine connecting to the computer.

Surely if it only happens each time I run the bridge, and nothing else is being run that communicates wirelessly to the computer, and the warning siren sounds only until the bridge is closed it must be the bridge in some way causing that error?

I wasn't connected at the time via usb, but I will have to try usb instead of bridge from now on then. Thanks for the quick reply.

Dave

Edit: I am unsure the usb error is causing the siren noise as if I run the bridge after a reboot, before that entry in the error logs (as shown below) it says about a tone tag, which I have never heard of. Although not connected by USB I know LG's drivers install it as a USB modem so disabled that (even though connecting wirelessly with no cable attached) but still get same error.

B4X:
** Service (service1) Start **
enqueueNotificationWithTag toneGenerator.startTone(), volume=7
changeRefCount() stream 8, count 0
setOutputDevice() output 1 device 0 delayMs 40
setOutputDevice() setting same device 0 or null device for output 1
releaseOutput() 1
startOutput() output 1, stream 8
changeRefCount() stream 8, count 1
getDeviceForStrategy() from cache strategy 3, device 2
getNewDevice() selected device 2
setOutputDevice() output 1 device 2 delayMs 0
setOutputDevice() setting same device 2 or null device for output 1
computeVolume volume 1.000000, stream 8, index 15, output 1, device 2
enqueueNotificationWithTag toneGenerator.startTone(), volume=7
setIndicatorValue: 6,4
JBtlAg context is disabled
mJBtlAgHandler.setIndicatorValue() failed
PC SYNC Started
AT Command Thread Started
[daemon/usb] ospd_serial_initialize : can't open serial port /dev/ttyGS1
PC SYNC Started
AT Command Thread Started
Connected to B4A-Bridge
changeRefCount() stream 8, count 0
setOutputDevice() output 1 device 0 delayMs 40
setOutputDevice() setting same device 0 or null device for output 1
releaseOutput() 1
startOutput() output 1, stream 8
changeRefCount() stream 8, count 1
getDeviceForStrategy() from cache strategy 3, device 2
getNewDevice() selected device 2
setOutputDevice() output 1 device 2 delayMs 0
setOutputDevice() setting same device 2 or null device for output 1
computeVolume volume 1.000000, stream 8, index 15, output 1, device 2
enqueueNotificationWithTag toneGenerator.startTone(), volume=7
PC SYNC Started
AT Command Thread Started
BroadcastReceiver : android.intent.action.BATTERY_CHANGED
ACTION_BATTERY_CHANGED pluggedType: 0
ACTION_BATTERY_CHANGED : do not updateWifiState
[daemon/usb] ospd_serial_initialize : can't open serial port /dev/ttyGS1
PC SYNC Started
AT Command Thread Started
GC_EXPLICIT freed 273 objects / 10712 bytes in 31ms
Default buffer size used in BufferedReader constructor. It would be better to be explicit if an 8k-char buffer is required.
Abnormal_Check
wakelock number N =0
changeRefCount() stream 8, count 0
setOutputDevice() output 1 device 0 delayMs 40
setOutputDevice() setting same device 0 or null device for output 1
PC SYNC Started
AT Command Thread Started
setParameters hiddenMicMuteMode=0
HF Left Playback 0 0
HF Right Playback 0 0
called drain&close
setParameters() delayedHiddenMicMuteMode=1
setParameters delayedHiddenMicMuteMode=1
AUDUL Voice UL Volume 120 -1
[daemon/usb] ospd_serial_initialize : can't open serial port /dev/ttyGS1
PC SYNC Started
AT Command Thread Started
GC_EXPLICIT freed 611 objects / 31248 bytes in 67ms
GC_FOR_MALLOC freed 7538 objects / 523408 bytes in 77ms
PC SYNC Started
AT Command Thread Started
[daemon/usb] ospd_serial_initialize : can't open serial port /dev/ttyGS1
PC SYNC Started
AT Command Thread Started
GC_EXPLICIT freed 1091 objects / 44072 bytes in 134ms
PC SYNC Started
AT Command Thread Started
[daemon/usb] ospd_serial_initialize : can't open serial port /dev/ttyGS1
 
Last edited:
Upvote 0

mistermentality

Active Member
Licensed User
Longtime User
The notification used in B4A-Bridge is configured to not play any sound. You can take the source code of B4A-Bridge and remove this line for Servce_Create:
B4X:
Service.StartForeground(1, Notification1)

I narrowed the cause down to this area of the log....

B4X:
** Service (service1) Start **
Displayed activity anywheresoftware.b4a.b4abridge/.main: 221 ms (total 221 ms)
Initialized ALSA PLAYBACK device 'plughw:0,0'
HF Left Playback HF DAC
HF Left Playback 1 -1
enqueueNotificationWithTag toneGenerator.startTone(), volume=7
HF Right Playback HF DAC
HF Right Playback 1 -1
RE-OPEN AFTER STANDBY:: took 78 msecs

as the usb error is unrelated and seems to be because LG have the USB deamon always running on the Optimus 3D. It seems that what's happening is that for some reason the phone is sounding the warning as part of the notification even though it shouldn't be.

I have tried to do as you suggest but the sound remained however when I commented out all the notify lines as well as the line you suggested the sound is gone but of course at the expense of notifications being shown. So for whatever reason despite it not being set to notify with sound the Optimus does play sound, but it does work now without the screeching siren. Thank you :)

Dave

Edit: Correction the bridge works but not the designer. When I run the designer a second bridge window appears with no information listed, I only compiled the bridge, do I need to change anything to make the designer work again?
 
Last edited:
Upvote 0

mistermentality

Active Member
Licensed User
Longtime User
Yes it has the buttons, I still have the designer installed from the original unedited bridge installation (the original bridge is not installed though) should I uninstall the designer?

Dave
 
Upvote 0

mistermentality

Active Member
Licensed User
Longtime User
I updated my phone from Froyo to Gingerbread 2.3.5 and now the bridge works flawlessly again so it must have been a problem unique to the LG P920 and its Froyo operating system.

No idea why it did it, but it works again for me now :)

Dave
 
Upvote 0

abner69

Member
Licensed User
Longtime User
Just another note..

It appears that this problem is happening on all LG phones running 2.3.4 or earlier.

the problem occurs when you start a service with notification.sound=false

the series of 6 beeping tones will occur whenever you
1. load B4a-bridge the first time
2. connect via wi-fi
3. Start a service under any app compiled with b4a

If you connect more than one project to the bridge, you will get a constant tone.

the tones are annoying for development, but just turn down your sound, and its liveable lol

as Far as your app is concerned... you will need to turn notification.sound=true to get rid of these tones.

...Pablo
 
Upvote 0
Top