rilmodem / ofono Goto Github PK
View Code? Open in Web Editor NEW7f3955122af8b0349fb7d3f2db8abd754459d146
License: GNU General Public License v2.0
7f3955122af8b0349fb7d3f2db8abd754459d146
License: GNU General Public License v2.0
For example, when we have a ring_buffer of size 8192, and its in
position mark at 8192, out
position mark at 8188, ring_buffer_avail_no_wrap
will always return zero because it just has to wrap to write any new data. So, the function received_data
in https://github.com/rilmodem/ofono/blob/master/gril/grilio.c will always have toread = 0
, never go through do-while loop body, and jump over all the following if-conditions because none of their conditions are evaluated to true. function received_data
will then return true and be dispatched again by gio almost immediately.
Hi all,
I am pretty new to gsm telephony world, and I was investigating whether or not there is a way to dial a data call?
Would be the equivalent AT setting -> AT+FCLASS=0...
Obviously with ofono stack (+bluez, +hFP, +linux and so on)
I was looking for something similar to what is described here:
Thank you very much
Let's say you have a OfonoNetworkRegistration
object, n
, and call scan()
on it. Calling scan()
a second time yields a scanError
with a String message
: Operation already in progress
.
The problem is that scanFinished
is emitted right after scanError
. This means we receive scanFinished
even though we've just been told that a scan is already in progress.
This could, if possible by libqofono, be solved by not calling scanFinished
when an Operation already in progress
error occurs.
Using the example.py, i'm able to get quite far, however i run into the following issue where my phone disconnects only after a few seconds of trying to connect.
2022-05-09 11:24:58.883 phony.headset.HandsFreeHeadset INFO <- HandsFreeHeadset.enable_pairability()
2022-05-09 11:25:14.145 phony.bluetooth.adapters.bluez5.Bluez5 DEBUG ** Bluez5.properties_changed(org.bluez.Device1, dbus.Dictionary({dbus...)
2022-05-09 11:25:14.145 phony.bluetooth.adapters.bluez5.Bluez5 INFO Device: /org/bluez/hci0/dev_44_*** Connected
2022-05-09 11:25:14.147 phony.headset.HandsFreeHeadset INFO ** HandsFreeHeadset._device_connected(44:*** Joe’s iPhone)
2022-05-09 11:25:14.150 phony.bluetooth.profiles.handsfree.ofono.Ofono DEBUG -> Ofono.attach_audio_gateway(8C:88:2B:40:60:E5 raz-board, 44:***...)
2022-05-09 11:25:14.150 phony.bluetooth.profiles.handsfree.ofono.Ofono DEBUG <- Ofono.attach_audio_gateway(8C:88:2B:40:60:E5 raz-board, 44:***...)
2022-05-09 11:25:15.156 phony.bluetooth.profiles.handsfree.ofono.Ofono DEBUG -> Ofono._poll_for_child_hfp_modem(8C:88:2B:40:60:E5 raz-board, 44:***...)
2022-05-09 11:25:21.062 phony.bluetooth.adapters.bluez5.Bluez5 DEBUG ** Bluez5.properties_changed(org.bluez.Device1, dbus.Dictionary({dbus...)
2022-05-09 11:25:21.062 phony.bluetooth.adapters.bluez5.Bluez5 INFO Device: /org/bluez/hci0/dev_44*** Disconnected
I've tried several different capabilities, none of which give me the pincode option. I do get a passcode though, but after hitting the pair button, it fails and disconnects.
Should I be getting this log on a desktop? What batteries is it looking for?
Thanks in advance
$ ./bootstrap-configure --disable-bluetooth
$ make
...
src/simutil.c:1551:12: error: comparison of constant 8 with expression of type 'enum sim_cphs_service' is always false
[-Werror,-Wtautological-constant-out-of-range-compare]
if (index >= 2 * 4u)
~~~~~ ^ ~~~~~~
ofonod version 1.12
/usr/sbin/ofonod -P rildev --nodetach
Reproduce:
What happens:
From 2 I get that "VoiceBusy" changed and from 3 I get that only VoiceConditional changed
What should happen:
I should get that both VoiceConditional changed as well as VoiceBusy changed.
Hi, I just start working with ofono
and when I want to send USSD command.
when I use initiate-ussd <modem>
I get this error:
Traceback (most recent call last):
File "/home/pi/workspace/libs/ofono/test/./initiate-ussd", line 27, in <module>
properties = ussd.GetProperties()
File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 72, in __call__
return self._proxy_method(*args, **keywords)
File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 141, in __call__
return self._connection.call_blocking(self._named_service,
File "/usr/lib/python3/dist-packages/dbus/connection.py", line 652, in call_blocking
reply_message = self.send_message_with_reply_and_block(
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.UnknownMethod: Method "GetProperties" with signature "" on interface "org.ofono.SupplementaryServices" doesn't exist
my list-modems
:
[ /hfp/org/bluez/hci0/dev_97_E7_F5_A2_E4_0B ]
Online = 1
Powered = 1
Lockdown = 0
Emergency = 0
Serial = 97:E7:F5:A2:E4:0B
Interfaces = org.ofono.VoiceCallManager org.ofono.CallVolume org.ofono.Handsfree org.ofono.NetworkRegistration
Features = net
Name = Nexus 6P
Type = hfp
[ org.ofono.VoiceCallManager ]
EmergencyNumbers = 118 110 08 911 000 112 999 119
[ org.ofono.CallVolume ]
SpeakerVolume = 50
MicrophoneVolume = 50
Muted = 0
[ org.ofono.Handsfree ]
InbandRinging = 1
EchoCancelingNoiseReduction = 1
DistractedDrivingReduction = 0
VoiceRecognition = 0
Features = three-way-calling echo-canceling-and-noise-reduction voice-recognition release-all-held create-multiparty hf-indicators
BatteryChargeLevel = 5
[ org.ofono.NetworkRegistration ]
Status = registered
Mode = auto-only
Name = SomeThing
Strength = 100
Got that I didn't have a org.ofono.SupplementaryServices
in my Interfaces so how can I add this to my interfaces?
Thanks a lot
In https://github.com/rilmodem/ofono/blob/master/gril/gril.c#L611 , function new_bytes
:
while (...) {
message = read_fixed_record(p, buf, &rbytes);
dispatch(p, message);
ring_buffer_drain(rbuf, p->read_so_far);
}
This is a simple yet critical bug where an APN such as n.ispsn is marked as invalid. THIS IS THE REASON WHY NO ONE ON SPRINT CAN GET ONTO THEIR APN MANUALLY (without auto configuration via OTA). There are untold many people posting about this core issue on the forums. Here is the incredibly simple solution and it took a while to track down:
The > should be >= in the is_valid_apn method found in: https://github.com/rilmodem/ofono/blob/master/src/common.c
gboolean is_valid_apn(const char *apn)
{
int i;
int last_period = 0;
if (apn[0] == '.')
return FALSE;
for (i = 0; apn[i] != '\0'; i++) {
if (g_ascii_isalnum(apn[i]))
continue;
if (apn[i] == '-')
continue;
if (apn[i] == '.' && (i - last_period) >= 1) {
last_period = i;
continue;
}
return FALSE;
}
return TRUE;
}
A work around could be to write your own C program duplicating all the functionality of ofono, but I have not yet done this. It may be simpler than editing and recompiling ofono since you would need to set up an entire cross compile environment. (I'm using a Nexus 5 with Ubuntu Touch 16.04 from ubports)
Please HELP!!!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.