**** BEGIN LOGGING AT Tue Jun 15 02:59:57 2010 Jun 15 14:48:46 denkenz: any chance to get my next tech patches for hso included? :) Jun 15 14:57:12 wagi: Let me try to get to them, too much in the queue right now Jun 15 14:58:01 denkenz: no hurry needed Jun 15 14:59:00 denkenz: in short, the octi/ouwcti/ossysi notify mess is now in gprs.c Jun 15 14:59:25 denkenz: and there is a new property for CurrentTechnology for DCM Jun 15 15:00:02 denkenz: in my test, it did exactly what I was hopping it would do Jun 15 15:00:33 denkenz: and I tried to read the log output a bit better then last time (netreg update -1, -1 -1, 2) Jun 15 15:01:20 Ok, I have to mess with my MBM modem to see if it supports EPSB or CPSB Jun 15 16:18:34 ofonod[18498]: Modem: > AT+CSCB=?\r Jun 15 16:18:34 ofonod[18498]: Modem: < \r\n+CSCB: (0)\r\n\r\nOK\r\n Jun 15 16:18:50 So MBM hardware and CBS is funny. They say they support it. Jun 15 16:19:08 The however when you try to set it Jun 15 16:19:09 ofonod[18498]: Modem: > AT+CSCB=0,""\r Jun 15 16:19:09 ofonod[18498]: Modem: < \r\n+CMS ERROR: 500\r\n Jun 15 16:19:31 ofonod[18498]: Modem: > AT+CSCB=0,"0-999,4352-4356"\r Jun 15 16:19:31 ofonod[18498]: Modem: < \r\n+CMS ERROR: 500\r\n Jun 15 18:02:14 cool, borrowed some option 220 modem from a relative and it worked out of box. Jun 15 19:36:57 holtmann: . Jun 15 19:36:58 +src_ofonod_LDADD = $(builtin_libadd) @GLIB_LIBS@ @DBUS_LIBS@ @CAPNG_LIBS@ \ Jun 15 19:37:00 + -ldl -lm Jun 15 19:37:03 Any problems with this? Jun 15 21:06:53 denkenz: What is that for? Jun 15 21:07:33 holtmann: Some location based crap for sim toolkit Jun 15 21:07:36 Addition is the -lm right? What functions are you using from the math library. Jun 15 21:08:00 See patch [PATCH 13/15] Add 23.032 GAD Shape structs and encoding utility Jun 15 21:08:02 We really need floating point math for that. Jun 15 21:09:18 Not for fabs(). Just handcode that. Jun 15 21:09:40 And then let the compiler optimize it. Jun 15 21:10:13 Ok, feel free to reply with that Jun 15 21:10:24 I have my own comments, but thought you'd be against -lm Jun 15 21:12:03 I am not against, but in this case it is pointless. Jun 15 21:12:16 And I will reply as soon as the mailing list works again. Jun 15 21:14:48 ok, I'm not terribly against -lm, highly doubtful that we ever run on a platform with no dedicated FPU Jun 15 21:19:02 As I said, I am fine with -lm, but not just for an absolute function. Jun 15 21:19:36 That is some stupid libc crap that fabs() is in -lm while everything simple macro would just do the trick. Jun 15 21:20:34 Every now and then I am running in that situation. Jun 15 21:25:50 holtmann: i'd have used macros for fabs, round and ceil if i didn't have to use log() already Jun 15 21:25:55 it's mainly for log() Jun 15 21:26:19 Did I miss that one. I only had a quick look. Jun 15 21:26:25 Why do you need log(). Jun 15 21:27:48 the GAD shapes is geometry stuff, some things like uncertainty radius can be encoded in a kind of exponential notation Jun 15 21:28:16 i guess it could use a LUT though as there are only 128 values Jun 15 21:28:24 * balrog-k1n checks Jun 15 21:29:06 I think floats and double is a bit overkill here. Jun 15 21:29:15 Can we just use fixed point instead. Jun 15 21:29:42 yeah, we can Jun 15 21:30:15 it'll have to be documented because it Jun 15 21:30:20 it'll have to be documented because it'll be less obvious then Jun 15 21:30:27 Btw, that feature is optional Jun 15 21:30:35 So we don't really need to include it right now Jun 15 21:31:08 Then lets do that. I like to try to avoid floats and double here. And it seems the bit floating point math we are doing here, it could be easily be done in fixed point. Jun 15 21:31:21 balrog-k1n: I sent you a revision of that html patch this morning - list is broken, but I did copy you directly. If you see anything else that needs fixing you can email me directly if you would like. Jun 15 21:32:04 kristenc: Can you start by fixing the coding style. We are not using camel casing. And please use American English for variable names. Not British English. Jun 15 21:32:26 holtmann: would you like a copy of the revision? I fixed that. The british name matches the spec. Jun 15 21:32:28 i got the second version, this one fixes the camelcase Jun 15 21:32:42 kristenc: Also g_string_append_printf() please instead of doing many steps that would potentially require multiple allocations. Jun 15 21:32:53 I used american english when not trying to match the spec. Jun 15 21:33:26 Variable names are in American English. You are using colour in it. Jun 15 21:33:53 Also string = g_string_append(string, ...) is pointless. Jun 15 21:33:54 yes - the colour variable name matches what the spec defines as a name for that byte. I can certainly change it. Jun 15 21:34:29 why pointless? Jun 15 21:34:40 some details would be constructive. Jun 15 21:34:42 GString are not like GList. So you can just do g_string_append_printf(string, ...). Jun 15 21:35:01 I am not that fast in typing right now. Doing other things at the same time. Jun 15 21:35:15 you can send me a thorough review off line Jun 15 21:35:24 That makes the code a lot simple to review. Jun 15 21:35:31 hopefully the list will be fixed soon. Jun 15 21:35:33 s/review/read/ Jun 15 21:35:33 kristenc: what do you think about replacing
with
? Jun 15 21:35:55 balrog-k1n: didn't I fix that? hum, I wonder if I forgot to commit that change. Jun 15 21:36:06 I tested it - it works fine, so I was planning to fix it. Jun 15 21:36:20 The other one I remember from memory was why

and not as HTML tag. Jun 15 21:36:30 Do we really want to make a paragraph. Jun 15 21:36:42 kristenc: not in the two copies i got :) Jun 15 21:36:47 holtmann: in the revision, we are using div and span. Jun 15 21:36:57 Okay. Jun 15 21:37:17 balrog-k1n: oops - let me commit that change and resend you. Jun 15 21:37:41 balrog-k1n: I have some tests that I wrote - are you interested in them? Jun 15 21:37:54 kristenc: Try the mailing list. I hope the fixed it by now. I am off to sleep anyway. Jun 15 21:38:11 kristenc: you could add them as unit tests Jun 15 21:38:13 I modified test-stkutil to spit out the html so I could review it in a browser. It is nothing like the rest of your tests though. Jun 15 21:38:19 kristenc: Please add the unit test as separate patch and lets include them. Jun 15 21:38:38 they are very different than your other unit tests. We create a bunch of files. Jun 15 21:38:52 wasn't sure if you'd be interested in that. Jun 15 21:39:00 but I will send it to the list and you can check it out. Jun 15 21:39:48 are there any complex examples in 3gpp docs? Jun 15 21:40:21 in the STK tests there are only tests that format the entire text with one format Jun 15 21:40:40 balrog-k1n: not really - all those were just testing one attribute and a color Jun 15 21:40:52 but those are the tests I used. Jun 15 21:41:07 there were none with multiple attributes. Jun 15 21:41:34 and like you said - none with only partially formatted text Jun 15 21:42:21 balrog-k1n: do you want me to change the variable name for the colour byte to color? Jun 15 21:43:41 kristenc: if holtmann thinks it's better Jun 15 21:43:51 ok - I will include that change. Jun 15 21:46:19 Yes, we do American English variable names. So color please. Jun 15 21:52:56 holtmann: should we have a type and some macros to convert to fixed point or leave the converting between formats to the user? Jun 15 21:53:16 the point of this whole patch was to add utilities to convert from standard c types :) Jun 15 21:54:08 Don't really know right now. Play with it and see what comes out of it. My current feeling is that we want fixed point. Jun 15 21:54:20 I see no point in this fixed point stuff Jun 15 21:54:30 The only reason to do it is if your hardware sucks Jun 15 21:54:36 Otherwise its just a waste of time Jun 15 21:54:37 the target format is fixed point (used by the sim... if it's ever used even) Jun 15 21:54:42 For the user API we have to see. Are we going to export these via D-Bus. Or only use them internally. Jun 15 21:55:05 denkenz: Why bother with floating point for something simple like this. Jun 15 21:55:22 Because gcc can do a way better job anyway Jun 15 21:55:58 Yes and no. Really depends here on the compiler flags and how it is done. Jun 15 21:56:26 I got burned by floating point already. However I have to admit this is pretty much low CPU overhead anyway. Jun 15 21:57:10 There's no sense in investing in fixed point arithmetic Jun 15 21:57:19 holtmann: basically to be nice to the user of the functions Jun 15 21:57:25 I even fail to see the utility of supporting this envelope in the first place :P Jun 15 21:57:45 these are encoding utilities, i'm not sure if they are all that useful but the whole point for them is to convert from C types to what the sim speaks Jun 15 21:57:52 and the sim speaks fixed point Jun 15 21:58:28 If the SIM talks fixed point, then lets used fixed point. Jun 15 21:58:29 The sim does sure, but inventing some fixed point format just to convert it to another fixed point format is silly Jun 15 21:58:47 We just use the fixed point format from the SIM. And that is it. Jun 15 21:58:58 i think the other option is to accept a ready encoded array of bytes and not bother converting Jun 15 21:59:20 balrog-k1n: Play with it. I am off to sleep anyway. Jun 15 22:02:56 I'm seriously thinking we should not even bother with this envelope Jun 15 22:04:51 This is a class n feature and requires access to a GPS chip Jun 15 22:04:59 None of which we're going to do any time soon Jun 15 22:05:12 let's skip it then Jun 15 22:05:30 most of the envelopes / commands / responses are not going to be used any time soon Jun 15 22:07:24 (i guess it's only that they're easiest to implement all at once) Jun 15 22:07:39 I agree, and I let some through for that reason Jun 15 22:07:45 particularly the MMS ones Jun 15 22:08:18 However, the open / close channel ones and some of the tech reporting crap are highly unlikely to be used Jun 15 22:10:02 balrog-k1n: Do you have enough now to start working on menu support & api? Jun 15 22:10:17 denkenz: yes, working on it now Jun 15 22:10:34 excellent Jun 15 22:23:53 is the preference for g_string_append_printf just for readablity? they seem very similar internally. Jun 15 22:31:12 let me look Jun 15 22:32:19 yes that would be more readable Jun 15 22:36:22 kristen: grep for header_test in unit/test-sms.c Jun 15 22:36:41 Make sure that we handle that case, feel free to re-use the pdu in your tests Jun 15 22:53:10 denkenz: ok, thanks. Jun 15 23:44:20 denkenz: that pdu looks very different than all the other pdu's in test-stkutil. Do I need to convert it to something else to use the existing code in test-stkutil? Jun 16 00:08:48 kristen: The pdu is an sms pdu, however the text attributes are the same Jun 16 00:09:33 kristen: If you want, you can drop your converter in smsutil.h and write the unit test in test-smsutil.c **** ENDING LOGGING AT Wed Jun 16 02:59:56 2010