Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 08-10-2016, 02:10 AM   #1
Slider1960
Connoisseur
Slider1960 ought to be getting tired of karma fortunes by now.Slider1960 ought to be getting tired of karma fortunes by now.Slider1960 ought to be getting tired of karma fortunes by now.Slider1960 ought to be getting tired of karma fortunes by now.Slider1960 ought to be getting tired of karma fortunes by now.Slider1960 ought to be getting tired of karma fortunes by now.Slider1960 ought to be getting tired of karma fortunes by now.Slider1960 ought to be getting tired of karma fortunes by now.Slider1960 ought to be getting tired of karma fortunes by now.Slider1960 ought to be getting tired of karma fortunes by now.Slider1960 ought to be getting tired of karma fortunes by now.
 
Posts: 59
Karma: 596608
Join Date: Oct 2008
Device: Cybook Gen3, Kindle PaperWhite, iPad
Accessing Serial port via wifi telnet sesssion

Hi Guys

I have been playing around with Kobos for quite a while and currently have one running xcsoar (a gliding program) which connects to a GPS / Barometer via a bluetooth module I installed on the internal serial port. I achieved this by setting up the BT module via a TTL / USB cable on my laptop then soldered it into the Kobo.

Whilst this has been working fine a firmware change in the GPS device means I need to at least re-pair the module and I am trying to find ways to reprogram it while still in the reader. I have telnet via the wifi interface to the system and need to access the serial port to send the AT commandes.

I think it should be possible to
Code:
echo 'at-command' /dev/ttymcx0
but there is no way to see if this is working or even if the lf/cr sequence is completing the command.

Is there a way to run a command line serial port program to do this from within the telnet session?

TIA
Slider1960 is offline   Reply With Quote
Old 08-10-2016, 05:40 AM   #2
frostschutz
Linux User
frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.
 
frostschutz's Avatar
 
Posts: 2,279
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
Grab either of these:

https://www.busybox.net/downloads/bi...busybox-armv5l
https://www.busybox.net/downloads/bi...busybox-armv7l

Put it in one of the bin dirs, chmod +x, then

busybox-armv7l microcom <someoption?> /dev/ttymcx0

Can't test it myself since I don't have anything hooked to the serial lines.
frostschutz is offline   Reply With Quote
Old 08-10-2016, 04:52 PM   #3
Slider1960
Connoisseur
Slider1960 ought to be getting tired of karma fortunes by now.Slider1960 ought to be getting tired of karma fortunes by now.Slider1960 ought to be getting tired of karma fortunes by now.Slider1960 ought to be getting tired of karma fortunes by now.Slider1960 ought to be getting tired of karma fortunes by now.Slider1960 ought to be getting tired of karma fortunes by now.Slider1960 ought to be getting tired of karma fortunes by now.Slider1960 ought to be getting tired of karma fortunes by now.Slider1960 ought to be getting tired of karma fortunes by now.Slider1960 ought to be getting tired of karma fortunes by now.Slider1960 ought to be getting tired of karma fortunes by now.
 
Posts: 59
Karma: 596608
Join Date: Oct 2008
Device: Cybook Gen3, Kindle PaperWhite, iPad
Smile

Thanks. Just what I needed. The version of busybox I already had didn't have the microcom commandlet. All i had to do was create a txt file with the AT commands in it and invoke it thus:
Code:
/bin/busybox-armv71 microcom -t 3000 -s 9600 -X /dev/ttymxc0 <AT-cmd.txt
Now just need to put that into a script I can call from within the application......
Slider1960 is offline   Reply With Quote
Old 08-19-2016, 04:05 PM   #4
Lucas Malor
Pain in the arse
Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.
 
Lucas Malor's Avatar
 
Posts: 758
Karma: 77856
Join Date: Apr 2013
Device: Kobo Aura One, Kindle 4
Where do you soldered the module?
Lucas Malor is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Serial port debrick Fridolf Kindle Developer's Corner 9 05-19-2015 05:14 AM
PW1 lost PADs for serial port, but found signals near USB port uniqdom Kindle Developer's Corner 1 04-29-2015 08:45 AM
How To Jailbreak By Serial Port P_Chang Kindle Developer's Corner 10 01-03-2015 04:17 PM
Telnet over Wifi nixlos Kindle Developer's Corner 8 03-13-2014 09:05 PM
K3 using serial port problem BusterBrown Kindle Developer's Corner 42 06-05-2012 06:11 PM


All times are GMT -4. The time now is 11:52 PM.


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