Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 04-04-2012, 07:51 AM   #16
knc1
Embedded Cheerleader
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 6,472
Karma: 5840130
Join Date: Feb 2012
Device: Too many.
Quote:
Originally Posted by jmseight View Post
Hi knc1,

I have only c and C++ programming experience from 15+ years ago and am trying to learn bash and java programming - from getting the kindle.

Thanks,
James
Sounds like ideal background for a "project head" -

The people who do the actually coding often hate with a passion the chore of running the project. Even the almost fully automated projects supported here at Mobile Read.

So I would suggest you give my suggestion a second thought.

It reads as if you have at least one person already that you might talk into joining your project.

Putting the work up as a "project", either here or at one of the other "free" project hosting sites, has other advantages.

For instance:
pjsua is licensed GPL:
http://www.pjsip.org/pjsua.htm
http://www.pjsip.org/licensing.htm

Which means that once changes or additions are made to it and the resultant binary is distributed, the source must remain available for three years.
Putting the changed source into a publicly hosted project somewhere is a good step towards handling that requirement.

And most project hosts (like Mobile Read) provide additional support services, like a Wiki to keep information about the application.
That way, the information does not get "lost" in an old forum thread.

Plus consider the "bragging rights"
You could still win the first spot on the list of "Kindle Projects" here at Mobile Read.
No one has yet scored a spot on that list.

Last edited by knc1; 04-04-2012 at 08:14 AM.
knc1 is offline   Reply With Quote
Old 04-05-2012, 10:27 AM   #17
knc1
Embedded Cheerleader
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 6,472
Karma: 5840130
Join Date: Feb 2012
Device: Too many.
Quote:
Originally Posted by jmseight View Post
Hi toehio,

Would you please post the binary for this. I would like to try this out.

Thanks,
James
According to the blog toehio linked to, that binary is compiled against a different version of the C library than what is on the Kindle-3-keyboard.

It (the sources) will probably have to be re-compiled against the correct C library version.

A good "first goal" for your new mobileread dev. project.
knc1 is offline   Reply With Quote
Old 04-05-2012, 11:16 AM   #18
Matan
Enthusiast
Matan can spell AND pronounce 'liseuse.'Matan can spell AND pronounce 'liseuse.'Matan can spell AND pronounce 'liseuse.'Matan can spell AND pronounce 'liseuse.'Matan can spell AND pronounce 'liseuse.'Matan can spell AND pronounce 'liseuse.'Matan can spell AND pronounce 'liseuse.'Matan can spell AND pronounce 'liseuse.'Matan can spell AND pronounce 'liseuse.'Matan can spell AND pronounce 'liseuse.'Matan can spell AND pronounce 'liseuse.'
 
Posts: 42
Karma: 39430
Join Date: May 2011
Device: none
A binary compiled according to toehio's instructions, but working with K3 version of glibc is here.

You need to change --capture-dev to 0 in the configuration file. In my tests I could hear the other side, but the other side could not hear me.
Matan is offline   Reply With Quote
Old 04-06-2012, 02:59 AM   #19
jmseight
Zealot
jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'
 
Posts: 130
Karma: 10000
Join Date: Mar 2012
Device: Kindle 3G, Kindle Touch 3G, iRiver Story HD, Sony Reader
Hi,

I have 2x k3g, one with Debian and one without. I ran alsa-pjsua on Debian chroot and Matan's pjusa on non-Debian. I used toehio config options to optimize, but on the non-Debian version, I had to comment out
--capture-dev 1
because it does not work on the non-Debian version - will cause pjsua to terminate.

I used the k3g's to call each other - because I could not find a good Win7 SIP client to work and the DSi SIP client mic does not work.

On the Debian k3g, I can receive and transmit audio. On the non-Debian k3g, I can only receive audio and the mic does not work.

I think this confirms the behavior of toehio and Matan.

Is the problem the capture-dev in the non-Debian version?

Thanks,
James
jmseight is offline   Reply With Quote
Old 04-06-2012, 07:58 AM   #20
Matan
Enthusiast
Matan can spell AND pronounce 'liseuse.'Matan can spell AND pronounce 'liseuse.'Matan can spell AND pronounce 'liseuse.'Matan can spell AND pronounce 'liseuse.'Matan can spell AND pronounce 'liseuse.'Matan can spell AND pronounce 'liseuse.'Matan can spell AND pronounce 'liseuse.'Matan can spell AND pronounce 'liseuse.'Matan can spell AND pronounce 'liseuse.'Matan can spell AND pronounce 'liseuse.'Matan can spell AND pronounce 'liseuse.'
 
Posts: 42
Karma: 39430
Join Date: May 2011
Device: none
Please try with --capture-dev 0 in the non-debian case, and see if it changes anything.

If it does not help, please compare the content of the directories /dev/snd/ in and out of chroot, and compare the content of the files in the directory /proc/asound, to see if there is any difference in and out of chroot.
Matan is offline   Reply With Quote
Old 04-06-2012, 10:49 PM   #21
jmseight
Zealot
jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'
 
Posts: 130
Karma: 10000
Join Date: Mar 2012
Device: Kindle 3G, Kindle Touch 3G, iRiver Story HD, Sony Reader
Hi Matan,

dev0 gives the same result on the non-Debian.

I checked the /proc/asound directory. But I think the Debian script actually mount the /proc into /mnt/debian/proc and /dev into /mnt/debian/dev. SO they are identical.

I think dev1 is correct, but somehow in the no-Debian version, it cannot open dev1 and causes a crash.

I tried dev 0 and dev 2 and both don't crash but no mic. Please see what happens when I try to use dev 1:

19:46:59.150 pjsua_media.c Opening sound device PCM@16000/1/20ms
19:46:59.152 pjsua_media.c Opening sound device PCM@44100/1/20ms
19:46:59.153 pjsua_media.c Opening sound device PCM@48000/1/20ms
19:46:59.154 pjsua_media.c Opening sound device PCM@32000/1/20ms
19:46:59.155 pjsua_media.c Opening sound device PCM@16000/1/20ms
19:46:59.155 pjsua_media.c Opening sound device PCM@8000/1/20ms
19:46:59.157 pjsua_media.c Unable to open sound device: Invalid number of channels [status=469997]
19:46:59.161 pjsua_core.c Shutting down...
19:46:59.161 pjsua_pres.c Shutting down presence..
19:46:59.161 pjsua_media.c Shutting down media..
19:46:59.549 pa_dev.c PortAudio sound library shutting down..

Thanks,
James
jmseight is offline   Reply With Quote
Old 04-07-2012, 06:26 AM   #22
hawhill
Wizard
hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.
 
hawhill's Avatar
 
Posts: 1,110
Karma: 2114647
Join Date: Nov 2010
Location: Goettingen, Germany
Device: Kindle Paperwhite, Kobo Mini
You probably have different ALSA libraries (not kernel APIs) in Debian and the Kindle environment. Also, the Debian pjsua might be patched. Does it even run PortAudio? I ask because pjsua seems to run a PortAudio driver.

The Kindle is picky about what sound formats and channel numbers it supports. Did you try to check if it uses 2 channels (pseudo stereo)? Also it might make sense to try rates like 22050 and 11025.
hawhill is offline   Reply With Quote
Old 07-04-2012, 11:42 AM   #23
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,552
Karma: 6021142
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Quote:
Originally Posted by jmseight View Post
Hi Matan,

19:46:59.155 pjsua_media.c Opening sound device PCM@8000/1/20ms
19:46:59.157 pjsua_media.c Unable to open sound device: Invalid number of channels [status=469997]

Thanks,
James
That's a classic alsa lib fubar message. and nothing to do with the channels.

I can duplicate this exact behaviour in another application I'm compiling on linux host by simply removing the reference to the /usr/share/alsa-lib-xxxx library location.

Whilst this doesn't help fix it it does confirm what was said above... Libs problem probably.

Alsa libs on device are .13 AIUI

Last edited by twobob; 07-04-2012 at 01:31 PM. Reason: added lib ver
twobob is offline   Reply With Quote
Old 07-04-2012, 11:43 AM   #24
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,552
Karma: 6021142
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
The problem lies here: BLAH

EDIT: NOPE IT DOESN'T IT CAN PROBABLY WORK AS IS

'division by zero' in kernel error seems to hang the audio.
Perhaps this is the issue.

I say this because the "CLICK" you hear when initialising your audio is the same click I was hearing when trying to test:

arecord -D 'plughw' -r 8000 -f S16_LE -c 2 | aplay -D 'plughw'

this does not work initially for the reasons outlined below.

perhaps this could be addressed.


I tested pjsua again and once again the kindle side eventually died on:

Code:
--end msg--
 13:01:30.740    pjsua_app.c  Call 1 is DISCONNECTED [reason=408 (Request Timeout)]
 13:01:30.740    pjsua_app.c  
  [DISCONNCTD] To: sip:192.168.1.65
    Call time: 00h:00m:00s, 1st res in 32006 ms, conn in 0ms
    SRTP status: Not active Crypto-suite: (null)
 13:01:31.740  pjsua_media.c  Closing sound device after idle for 1 seconds
 13:01:31.740  pjsua_media.c  Closing mx35luigi:  (hw:0,0) sound playback device and mx35luigi:  (hw:0,0) sound capture device

>>>>
I know this can be prevented with flags (the closing the device) but I suspect it speaks of a deeper error.

One more thing all this set DEV=0 as opposed to -1 stuff. from my reading that is basically saying Choose Device 0 as opposed to choosing the first from a list of ANY - containing one item - device 0

I.E. pointless

Hope that helps


The vague lead on a fix:
=======================================

FROM http://elinux.org/RidgeRun_LeopardBoard_SDK_Hints

Solutions to known issues
'division by zero' in kernel error when I try to use ALSA input

This is a known issue that has been discussed on the ASOC mailing list. The problem is that the function davinci_pcm_enqueue_dma performs this operations:

data_type = prtd->params->data_type;
count = period_size / data_type;

The first time, data_type is set to zero, so we get the error Division by zero in kernel. This is the reason why the pipe arecord | aplay works after running arecord or aplay first.

Apply the Media:Asoc-davinci-pcm.patch to the kernel 2.6.29 to resolve this issue.

================================================== ======

Last edited by twobob; 07-06-2012 at 08:12 AM. Reason: added cohesive evidence, and possibly a lead to a fix
twobob is offline   Reply With Quote
Old 07-26-2014, 02:03 AM   #25
nick-tech
Enthusiast
nick-tech can read ebooks with the screen turned offnick-tech can read ebooks with the screen turned offnick-tech can read ebooks with the screen turned offnick-tech can read ebooks with the screen turned offnick-tech can read ebooks with the screen turned offnick-tech can read ebooks with the screen turned offnick-tech can read ebooks with the screen turned offnick-tech can read ebooks with the screen turned offnick-tech can read ebooks with the screen turned offnick-tech can read ebooks with the screen turned offnick-tech can read ebooks with the screen turned off
 
Posts: 29
Karma: 97692
Join Date: Feb 2012
Device: kindle touch
Has this project lead to any usable output? I would love to Sip with my kindle?
nick-tech is offline   Reply With Quote
Old 07-26-2014, 08:08 AM   #26
knc1
Embedded Cheerleader
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 6,472
Karma: 5840130
Join Date: Feb 2012
Device: Too many.
Quote:
Originally Posted by nick-tech View Post
Has this project lead to any usable output? I would love to Sip with my kindle?
No - lack of time
Are you volunteering?
knc1 is offline   Reply With Quote
Old 07-26-2014, 07:32 PM   #27
nick-tech
Enthusiast
nick-tech can read ebooks with the screen turned offnick-tech can read ebooks with the screen turned offnick-tech can read ebooks with the screen turned offnick-tech can read ebooks with the screen turned offnick-tech can read ebooks with the screen turned offnick-tech can read ebooks with the screen turned offnick-tech can read ebooks with the screen turned offnick-tech can read ebooks with the screen turned offnick-tech can read ebooks with the screen turned offnick-tech can read ebooks with the screen turned offnick-tech can read ebooks with the screen turned off
 
Posts: 29
Karma: 97692
Join Date: Feb 2012
Device: kindle touch
I am, but I don't really know how to code. I'm more into electronics.

But if I can help in any way, let me know.
nick-tech is offline   Reply With Quote
Old 07-27-2014, 07:29 AM   #28
knc1
Embedded Cheerleader
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 6,472
Karma: 5840130
Join Date: Feb 2012
Device: Too many.
Quote:
Originally Posted by nick-tech View Post
I am, but I don't really know how to code. I'm more into electronics.

But if I can help in any way, let me know.
That is nice to know.

But the person with the most complete (non-released) Kindle VoIP code is away from the forum dealing with non-hobby issues.

The recent problems (opportunities for creative coding) presented us by Amazon on the 4Gbyte devices along with firmware version 5.4.5 will probably grab everyone's free time first, before this (or anything else on the "to do" list).

Last edited by knc1; 07-27-2014 at 07:31 AM.
knc1 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Font hacks for the Kindle 2, Kindle International and Kindle DX edge777 Kindle Developer's Corner 17 04-30-2010 04:11 PM
$0.01 in Kindle Store: Interactive Sudoku for Kindle 2 and Kindle DX - Volume 1 Xia Deals, Freebies, and Resources (No Self-Promotion) 2 11-07-2009 10:06 AM


All times are GMT -4. The time now is 06:26 AM.


MobileRead.com is a privately owned, operated and funded community.