Harald Welte
98f6fadd96
diag_io: print error messsage to stderr
2016-12-24 01:27:49 +01:00
Harald Welte
faea754d39
re-structure the LOG dispatcher
...
we now have a nice structure for dispatching log messages to various
handlers, each self-contained. As an added benefit, we remove the need
to manually enable all the various log codes, as we simply auto-generate
the default config from all the message types we support.
Furthermore, we reduce computational complexity by avoiding linear
iteration over the array of registered log handlers.
2016-12-24 01:21:03 +01:00
Harald Welte
2c36375f5b
better formatting of output, incldue LOG/MSG prefix, timestamp, ...
2016-12-24 00:19:55 +01:00
Harald Welte
654f1179c0
cosmetic: some more comments
2016-12-24 00:01:25 +01:00
Harald Welte
4359a48ca6
rename dump_log() to diag_rx_ext_msg_f()
...
there is too many things called log. Let's align more closely with how
diag calls things. This function is about handling the extended message
service, which is basically a 'remote printf'.
2016-12-23 23:56:26 +01:00
Harald Welte
234b56b477
fix various compiler warnings
2016-12-23 23:44:19 +01:00
Harald Welte
b506ce8b74
rename Makefile to more usual name
2016-12-23 23:41:36 +01:00
Harald Welte
bd4485852a
split the I/O part into diag_io.c
2016-12-23 23:41:14 +01:00
Harald Welte
272b4ae157
remove our own framing.c implemmentation in favor of Linux one
...
The Qualcomm Linux kernel has a HDLC encoder/decoder, let's use that one
rather than our own implementation.
2016-12-23 23:28:28 +01:00
Harald Welte
4e06b5cb44
remove local serial.[ch] code and use libosmocore for that
2016-12-23 22:58:41 +01:00
Harald Welte
6a50b9670e
diagchar_hdlc.c: Adopt to work outside of the Linux kernel
...
... and rather work in userspace, relying on libosmocore for CRC
2016-12-23 22:54:30 +01:00
Harald Welte
99ac1f3800
import diagchar.[ch] from linux kernel of Quectel EC25 module
...
Rather than running our own, we should just use the same HDLC code that
Qualcomm also uses. It's GPLv2 from the Qualcomm Linux kerenl sources.
2016-12-23 22:09:22 +01:00
Harald Welte
7e8d96f6c8
framing.c: Unify coding style
2016-12-23 22:02:04 +01:00
Harald Welte
2d371ed7b3
cosmetic change: transmit function renaming for more clarity
2016-12-23 21:52:22 +01:00
Harald Welte
9e7b32b70b
remove private DumpBYTEs function and use osmo_hexdump()
...
After all, we already have a libosmocore dependency.
2016-12-23 21:48:29 +01:00
Harald Welte
cd877f1398
dump_log: better understanding of "ext_msg" log header
...
I now have a much better understanding of the extended message header
that is used for formatting "printf" style log messages from the target.
2016-12-23 20:14:51 +01:00
Harald Welte
e1d8ef99cd
decode QMUX logs using libqmi-glib
2016-12-22 11:16:33 +01:00
Harald Welte
45a5f837f4
Enable QMUX logging
2016-12-22 10:45:41 +01:00
Harald Welte
97d30420a1
gprs_mac: add decode of TBF RELEASE for UL and DL
2016-12-19 21:18:06 +01:00
Harald Welte
f5d6feee6b
Activate + interpret many more DIAG LOG messages for GPRS
2016-01-13 22:29:10 +01:00
Harald Welte
9ef16df47a
add file containing GPRS related log codes
2016-01-13 00:29:06 +01:00
Harald Welte
211dd6c34c
introduce new API for configuring the diag logging
2016-01-13 00:18:49 +01:00
Harald Welte
9e38c65d68
add lg_diagcmd.h file
...
https://raw.githubusercontent.com/Shabbypenguin/Cayman-Island-Kernel/master/lge/include/lg_diagcmd.h
2016-01-12 23:54:27 +01:00
Harald Welte
1cd1e73383
add GPRS/EGPRS MAC + RLC layer DIAG related definitions
2016-01-08 23:25:43 +01:00
Harald Welte
5b722ebab7
add .gitignore
2013-12-24 00:48:51 +01:00
Harald Welte
f9e7444176
add script (for piping sysmo-qxdm output) to colorize rxqual >= 3
2013-12-24 00:46:54 +01:00
Holger Hans Peter Freyther
a7d50bf9cc
Add missing files
2013-12-23 14:26:36 +01:00
Holger Hans Peter Freyther
3b4e2e5e27
time: Show the time with two digits..
2013-05-31 09:53:59 +02:00
Holger Hans Peter Freyther
93b625bb65
Parse the log message and print the result to the console
2013-05-31 09:52:26 +02:00
Holger Hans Peter Freyther
ae73a0567c
Initial version to dump receives messages in hex
2013-05-31 09:51:53 +02:00
Holger Hans Peter Freyther
f4b09b312a
Add some notes and examples on the protocol
2013-05-30 17:50:39 +02:00