OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

44 Pages V  « < 4 5 6 7 8 > »   
Reply to this topicStart new topic
> Htc Universal, ... running Debian EABI
ShiroiKuma
post Apr 19 2008, 06:19 AM
Post #76





Group: Members
Posts: 902
Joined: 22-May 04
Member No.: 3,385



QUOTE(datathief @ Apr 19 2008, 12:16 PM) *
The function to decode an SMS doesn't handle anything more than 7-bit ASCII yet.

How hard is UTF-8 to implement? This is one thing pretty import for me due to using UTF-8 text a lot, but beyond my scope of contribution...

QUOTE
QUOTE
After making a call, touchtones are not possible. Thus when you dial into let's say a mailbox, or a bank automatized system, you cannot enter numbers or pounds etc.

True. I can add a function to htcunid to do this, but I don't have any ideas for a UI.

I think at least in this stage a UI isn't necessary at all. One can just type on the hardware keyboard and if it'll sent DTMF tones it's fine.

QUOTE
Do you have apmd installed? This works for me (see /etc/apm/event.d/htcuni-keyboard).

It was probably a problem of zdevil's rootfs and my modifying it. I'm currently trying with your simple rootfs.

QUOTE
QUOTE
Anyhow, an archiving option needs to be built into the SMS receiption. I.e. not only display the SMS received and number it came from, but also echo it >> to a default SMS archive. If you're not working on it, I'll come up with a temporary hack. The same goes for calls. There needs to be a call register. I'm just about to check the caller ID in htcunid-0.3, but again, a simple echo the number and time >> to a call-log file should do.

The default example script does this. A better solution would involve /var/spool and use mailbox format. Feel free to upload scripts to the wiki.

I'll take a look at the example and see what it does. I wrote a couple of simple lines yesterday, before my rootfs stopped working with htcunid, but I liked their functionality, basically plain text files - sms-log calls-missed calls-accepted calls-made with timestamps and caller ids. If it's different than your example, I'll add it.

QUOTE
QUOTE
EDIT3: The htcunid-0.3 package gives me problems when accepting a call. The call ends in a couple of seconds and the phone freezes.

I'll look into this. Could be a problem with the whiptail script.

I'll let you know in a little while if there's a prob with it, since I've started clean with your rootfs.

QUOTE
I used the packages from http://yonggun.tistory.com/54

Thanks.
Go to the top of the page
 
+Quote Post
datathief
post Apr 19 2008, 07:50 AM
Post #77





Group: Members
Posts: 206
Joined: 21-January 08
Member No.: 21,231



QUOTE(ShiroiKuma @ Apr 19 2008, 02:19 PM) *
How hard is UTF-8 to implement? This is one thing pretty import for me due to using UTF-8 text a lot, but beyond my scope of contribution...

Should be easy to decode. I've never written python code to handle UTF-8, though, so I'll need to read up on that.

QUOTE
One can just type on the hardware keyboard and if it'll sent DTMF tones it's fine.

I've found out how to send DTMF, so I can add a new command to the next version of htcunid. You can do it with the current version by using AT commands:
CODE
htcunid atcmd "AT+VTS=<digit>"

You can only enter one digit at a time this way. If you can work out a way to do this during a call, please do. We're reaching the limits of what whiptail can do. Probably something like:
CODE
whiptail --infobox "In call to $2" 20 50
while [ "$digit" != "^[" ]; do
  # Get 1 keypress
  read -n 1 digit
  # Convert esc (hangup key) to "^[" so it's easier to handle
  digit=`echo "$digit" | cat -v`
  case "$digit" in
  1|2|3|4|5|6|7|8|9|0|"*"|"#")
    htcunid atcmd "AT+VTS=$digit"
;;
  esac
done

Edit: This works (albeit slowly - I may need to send some more AT commands to set the speed). I've updated the whiptail script on the wiki.

If you don't already know: you can get out of the "In a call..." screen without ending the call by pressing alt+left (alt is the "internet explorer" key).
Go to the top of the page
 
+Quote Post
danboid
post Apr 19 2008, 08:32 AM
Post #78





Group: Members
Posts: 682
Joined: 26-December 05
From: Rochdale, Lancashire
Member No.: 8,789



Oh Wow!

Big congrats datathief on some legendary hacking - getting Debian working well on the Uni - many of us on OESF have speculated on the joy of fully functional Linux on the Uni for years now so its great to see it finally happen - I've been getting all excited reading this thread biggrin.gif

Problem for me now is what should I spend my limited cash on - a HTC uni or should I wait for the Pandora? I really quite fancy Pandoras TV-out, better graphics, CPU and display but I would rather it dumped the analogue sticks or something to make way for our all important TAB, ALT, CTRL and ESC keys we all need to use a terminal properly, so this for me is an advantage of the Z over Pandora- full set of keys. Uni also has a better keyboard than Pandora (if the current renderings closely approx. the final design of course) and I like that it has an integrated phone and camera- two cool features missing on Pandora. I'd rather a better keyboard than a joypad as I'm more interested in a pocket Linux/Haiku machine than a gaming device.

Can you get USB HOST under HTC Titchy?

What is mplayer performance like on HTC versus mplayer on the Z?

How well does the uni overclock? Be interested to see some benchmarks versus a fully overclocked SL-3000/3100

I think Debian on the Uni represents the arrival of the 'digital convergance' the tech press/ industry has been talking about since the Amiga days- there's a lot of Pandora nay-sayers esp. on these boards but I think that and similar devices will take this phenomenon mainstream sooner than you think.
Go to the top of the page
 
+Quote Post
datathief
post Apr 19 2008, 08:59 AM
Post #79





Group: Members
Posts: 206
Joined: 21-January 08
Member No.: 21,231



QUOTE(danboid @ Apr 19 2008, 04:32 PM) *
Oh Wow!

Big congrats datathief on some legendary hacking - getting Debian working well on the Uni - many of us on OESF have speculated on the joy of fully functional Linux on the Uni for years now so its great to see it finally happen - I've been getting all excited reading this thread biggrin.gif

I can only take credit for bringing all the bits together (kernel from handhelds.org, Debian's new armel port, and lots of documentation on AT commands).

QUOTE
Problem for me now is what should I spend my limited cash on - a HTC uni or should I wait for the Pandora? I really quite fancy Pandoras TV-out, better graphics, CPU and display but I would rather it dumped the analogue sticks or something to make way for our all important TAB, ALT, CTRL and ESC keys we all need to use a terminal properly, so this for me is an advantage of the Z over Pandora- full set of keys. Uni also has a better keyboard than Pandora (if the current renderings closely approx. the final design of course) and I like that it has an integrated phone and camera- two cool features missing on Pandora. I'd rather a better keyboard than a joypad as I'm more interested in a pocket Linux/Haiku machine than a gaming device.

I just like telling people my ringtone is a shell script. wink.gif

QUOTE
Can you get USB HOST under HTC Titchy?

As far as I know the hardware doesn't support it (an unconnected pin somewhere IIRC).

QUOTE
What is mplayer performance like on HTC versus mplayer on the Z?

I haven't a clue. Maybe later this weekend. I'm sure I've read somewhere that the Uni's video performance is poor, though.

QUOTE
How well does the uni overclock? Be interested to see some benchmarks versus a fully overclocked SL-3000/3100

CODE
# cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq
624000
Go to the top of the page
 
+Quote Post
ShiroiKuma
post Apr 19 2008, 10:48 AM
Post #80





Group: Members
Posts: 902
Joined: 22-May 04
Member No.: 3,385



QUOTE(ShiroiKuma @ Apr 19 2008, 04:19 PM) *
QUOTE
QUOTE
EDIT3: The htcunid-0.3 package gives me problems when accepting a call. The call ends in a couple of seconds and the phone freezes.

I'll look into this. Could be a problem with the whiptail script.

I'll let you know in a little while if there's a prob with it, since I've started clean with your rootfs.

There is no problem with the deb, it works fine. It was associated with using the other rootfs.
Go to the top of the page
 
+Quote Post
ShiroiKuma
post Apr 19 2008, 11:03 AM
Post #81





Group: Members
Posts: 902
Joined: 22-May 04
Member No.: 3,385



QUOTE(datathief @ Apr 19 2008, 05:50 PM) *
QUOTE(ShiroiKuma @ Apr 19 2008, 02:19 PM) *
How hard is UTF-8 to implement? This is one thing pretty import for me due to using UTF-8 text a lot, but beyond my scope of contribution...

Should be easy to decode. I've never written python code to handle UTF-8, though, so I'll need to read up on that.

That's great news, if you can get that done. BTW, it should go both ways, decode and encode - for sending UTF-8 SMS messages.

QUOTE
This works (albeit slowly - I may need to send some more AT commands to set the speed). I've updated the whiptail script on the wiki.

I'll test how it reacts.

Regarding your SMS and calls logging, I didn't look in /root/ originally, that's why didn't notice you had it going on. Essentially, my hacks were almost identical.

However, I've modified it for myself a bit, and propose the same modification to your scripts: basically have 5 logs: log-sms-received.txt log-sms-sent.txt log-calls-received.txt log-calls-made.txt log-calls-missed.txt

In the example script, you carry out logging for sms-received in the receivesms section, calls-made in the dial section, calls-received in the answer section.

In the whiptail script, you carry out logging for calls-missed in the ring2 section, whereby you have your if definition, after which I add an else section:
CODE
else
htcunid hangup
echo "`date` $2" >> $LOGCALLSMISSED
openvt -w -s -- whiptail --clear --fb --msgbox "`date`, missed call from $2"
htcunid hangup
fi


Obviously, you define LOGCALLSMISSED at the top of the script.

This way it also has the benefit of popping up an info box that you see when you return to the phone, that you've missed a call(s)...

And to carry out logging for sms-sent, I just added an sms script:
CODE
LOGSMSENT=...wherever...
echo "`date` $*"
htcunid sendsms $*


Other comments so far:

I have problems with suspend, when suspending with
CODE
echo mem > /sys/power/state
it's fine, however as soon as you close the lid, it comes back on. Apparently something triggers a key event or what upon close and it brings it out of suspend?

Do you have the same behavior?

Finally, I can't find the backlight incremental change scripts you mentioned earlier, anywhere in your wiki...

Later.
Go to the top of the page
 
+Quote Post
datathief
post Apr 19 2008, 11:52 AM
Post #82





Group: Members
Posts: 206
Joined: 21-January 08
Member No.: 21,231



QUOTE(ShiroiKuma @ Apr 19 2008, 07:03 PM) *
In the whiptail script, you carry out logging for calls-missed in the ring2 section ...

I'd like to build a logging script separate from the whiptail script (at some time in the future someone's going to insist on an X-based UI smile.gif ), but I imagine it will be difficult.

QUOTE
I have problems with suspend, when suspending with
CODE
echo mem > /sys/power/state
it's fine, however as soon as you close the lid, it comes back on. Apparently something triggers a key event or what upon close and it brings it out of suspend?

Yes, that is annoying - opening and closing the lid triggers an interrupt. I'll try to find out how to turn the interrupt off.

I use screen's "idle" setting to run apm --suspend after 2 minutes with no keyboard activity - so I can close the lid and it will suspend later. I'm sure there's a way to do the same thing in X.

QUOTE
Finally, I can't find the backlight incremental change scripts you mentioned earlier, anywhere in your wiki...

Oops. I'll put it up now.
Go to the top of the page
 
+Quote Post
datathief
post Apr 19 2008, 05:58 PM
Post #83





Group: Members
Posts: 206
Joined: 21-January 08
Member No.: 21,231



QUOTE(ShiroiKuma @ Apr 19 2008, 07:03 PM) *
How hard is UTF-8 to implement? This is one thing pretty import for me due to using UTF-8 text a lot, but beyond my scope of contribution...

I've uploaded a Unicode-capable htcunid. It works for me (although whiptail doesn't always cope). Let me know if it works for you...
Update: The problem with whiptail seems to be that the new VT created by openvt doesn't have UTF8 support. If I change the script to run unicode_start, I get the correct characters in the SMS, but the dialog border is broken. I'm looking into it.
Go to the top of the page
 
+Quote Post
ShiroiKuma
post Apr 20 2008, 03:33 AM
Post #84





Group: Members
Posts: 902
Joined: 22-May 04
Member No.: 3,385



QUOTE(datathief @ Apr 20 2008, 03:58 AM) *
QUOTE(ShiroiKuma @ Apr 19 2008, 07:03 PM) *
How hard is UTF-8 to implement? This is one thing pretty import for me due to using UTF-8 text a lot, but beyond my scope of contribution...

I've uploaded a Unicode-capable htcunid. It works for me (although whiptail doesn't always cope). Let me know if it works for you...
Update: The problem with whiptail seems to be that the new VT created by openvt doesn't have UTF8 support. If I change the script to run unicode_start, I get the correct characters in the SMS, but the dialog border is broken. I'm looking into it.

Yeah, noticed the same. However, the reception works fine in terms of the characters being decoded. They are just not displayed in the dialog properly. The characters received are in UTF-8 and fine, I've confirmed by resending back.

There is a little bug with sending SMS, whereby it doesn't send the correct number of bytes it seems. I.e. if you send an SMS in UTF-8, it sends only one byte per character, i.e. the total byte count of the message sent is the number of characters, whereas for each Unicode character you should send 2 bytes. This results in the message to be truncated by exactly as many bytes as many extended characters are present in the SMS.
Go to the top of the page
 
+Quote Post
datathief
post Apr 20 2008, 05:52 AM
Post #85





Group: Members
Posts: 206
Joined: 21-January 08
Member No.: 21,231



QUOTE(ShiroiKuma @ Apr 20 2008, 11:33 AM) *
There is a little bug with sending SMS, whereby it doesn't send the correct number of bytes it seems. I.e. if you send an SMS in UTF-8, it sends only one byte per character, i.e. the total byte count of the message sent is the number of characters, whereas for each Unicode character you should send 2 bytes. This results in the message to be truncated by exactly as many bytes as many extended characters are present in the SMS.

Yes, I see that now. The SMS spec is a bit confusing. blink.gif

I''ve (hopefully) fixed it, and uploaded to the wiki.
Go to the top of the page
 
+Quote Post
ShiroiKuma
post Apr 20 2008, 09:28 AM
Post #86





Group: Members
Posts: 902
Joined: 22-May 04
Member No.: 3,385



Will test soon.

BTW, I've changed your wiki entry for USB connection a bit, as the first line should read:
CODE
ifconfig usb0 192.168.3.1

Go to the top of the page
 
+Quote Post
ShiroiKuma
post Apr 20 2008, 01:40 PM
Post #87





Group: Members
Posts: 902
Joined: 22-May 04
Member No.: 3,385



QUOTE(datathief @ Apr 20 2008, 03:52 PM) *
I''ve (hopefully) fixed it, and uploaded to the wiki.

Unfortunately, still the same. Still truncates the sent SMS.
Go to the top of the page
 
+Quote Post
ShiroiKuma
post Apr 20 2008, 09:42 PM
Post #88





Group: Members
Posts: 902
Joined: 22-May 04
Member No.: 3,385



Additional issues with X
I've installed X according to http://yonggun.tistory.com/54 and applied the "2. Use your normal user under X" hack on http://www.oesf.org/index.php?title=1-For_Debian_EABI

Now, the situation is as follows, if I don't enable xdm via /etc/init.d/, first login as root, then /etc/init.d/xdm start, xdm starts, I can login as a regular use fine and the system works.

If I enable xdm via /etc/init.d/, even if I log in as root or the regular user in the xdm login, X starts, but the display doesn't react to touch. It seems xdm doesn't read the .xinitrc from either /root or /home/theuser when started this way and so TSLIB_TSDEVICE is not set among others.

How to solve this?
Go to the top of the page
 
+Quote Post
ShiroiKuma
post Apr 20 2008, 09:46 PM
Post #89





Group: Members
Posts: 902
Joined: 22-May 04
Member No.: 3,385



Accessing other SD partitions
Is anyone successfull in accessing other SD partitions beyond the first one from which debian boots?

I'd like to have a separate swap partition, to be enabled sometimes when needed. Swap partition, because then the SD corruption from frequent access should be limited to it and not corrupt the rootfs. And swap is needed, for instance without it, I cannot generate any locales with dpkg-reconfigure locales, or memory intensive apps will not run.

However when I try to mount the 2nd partition I get
CODE
mount: special device /dev/sda2 does not exist
Go to the top of the page
 
+Quote Post
datathief
post Apr 20 2008, 11:54 PM
Post #90





Group: Members
Posts: 206
Joined: 21-January 08
Member No.: 21,231



QUOTE(ShiroiKuma @ Apr 20 2008, 09:40 PM) *
QUOTE(datathief @ Apr 20 2008, 03:52 PM) *
I''ve (hopefully) fixed it, and uploaded to the wiki.

Unfortunately, still the same. Still truncates the sent SMS.

Sorry - the way I was testing it wasn't actually sending Unicode messages. I've uploaded another one.
Go to the top of the page
 
+Quote Post

44 Pages V  « < 4 5 6 7 8 > » 
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 1st October 2014 - 06:21 PM