Re: Test repo updated

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Okash and list,
the first good news is that acntpc does indeed compile. The second good news
is that the bns driver works fine just like it did before using
dev=ttyS0, and dev=ttyUSB0.

The bad news is that the bns driver doesn't work using dev=lp0 with
the braille blazer (blazer) connected to the parallel port using a
bidirectional cable, and set to speak whatever comes in through the
parallel port. When I booted up, the modules ppdev, parport, and
parport_pc were already loaded. When I loaded speakup_bns, I got this:
modprobe: ERROR: could not insert 'speakup_bns': No such device

The dmesg output showed:

[  381.404108] speakup_bns: module is from the staging directory, the
quality is unknown, you have been warned.
[  381.405251] synth probe
[  381.405260] bns: device probe failed

At that point, I noticed that /dev/lp0 was missing. I fixed that by
modprobe lp, and tried speakup_bns again with the same results as
before. I then tried echoing data to /dev/lp0:
echo hello >/dev/lp0
and:
echo "hello" >/dev/lp0

both just came back with the prompt, and no speech from the
blazer. Trying:
cat /dev/lp0
came back with input/output error, which I expected. Leaving
everything connected and setup exactly as it was, I rebooted into
windows, and setup the windows screenreader to use the bns driver
through the parallel port. This resulted in speech from the blazer. I
just realized as I type this that I didn't enable echo's escape
processing, and try issuing a \n or a \r\n. The blazer almost certainly
needs one of those to speak what was just sent to it. I'll try that,
and will report back if the results are different. Also, I believe the
bns driver expects to read stuff back from the device before it
loads. It obviously won't be able to read anything back when using the
parallel port. I assume this was taken into account?

Finally, I also have a usb to parallel converter here. Just to see
what happens, I hooked it up, and it showed up as /dev/usb/lp0 using
the usblp module. Echoing the same things as before to that produced
the same results; shell prompt with no speech from the blazer. Using
cat however just sat there with no input coming, which isn't what I
expected. Since I wasn't sure if dev=/dev/usb/lp0 would be processed,
I created a softlink linking /dev/usb/lp0 to /dev/lp1, and passed
dev=lp1 to the speakup_bns module. The results were exactly the same
as with the built-in parallel port.

I'll try echoing \n and \r\n to the blazer, and will report back if
that produces speech. Is there some way to debug the bns driver to see
what it is sending, and getting back? Thanks for reading, and thanks
Okash for your work. The serial and usb support works, and that's
awesome. It would be nice if the parallel port worked too, but not a
huge deal if it doesn't when all is said and done.

Greg


On WEd, Jun 21, 2017 at 09:11:13AM +0100, Okash Khawaja wrote:
> Hi,
> 
> I've updated the test repo [1] upto the latest patch. This includes
> support for ttyUSB* and lp*.
> 
> Greg, I've tested it with 4.10.9 and made sure acntpc compiles.
> 
> Thanks,
> Okash
> 
> [1] https://github.com/bytefire/speakup-decext
> 
> On Sun, Jun 18, 2017 at 04:45:18PM -0700, Gregory Nowak wrote:
> > Ok, perhaps I should have tried with a fresh kernel source, or a version
> > higher than 4.10.9. I'll try again once the speakup-decext repo is
> > updated with the latest changes. Thanks.
> > 
> > Greg
> > 
> > 
> > On Sun, Jun 18, 2017 at 10:53:24AM +0100, Okash Khawaja wrote:
> > > Hi all and Greg,
> > > 
> > > I could compile acntpc on local machine which inlcudes these changes.
> > > But I didn't investigate this further because of the changes being made
> > > to this patch set. I will update the repo with latest changes and also
> > > make sure that acntpc compilation is fixed.
> > > 
> > > Thanks,
> > > Okash
> > > 
> > 
> > 
> > -- 
> > web site: http://www.gregn.net
> > gpg public key: http://www.gregn.net/pubkey.asc
> > skype: gregn1
> > (authorization required, add me to your contacts list first)
> > If we haven't been in touch before, e-mail me before adding me to your contacts.
> > 
> > --
> > Free domains: http://www.eu.org/ or mail dns-manager@xxxxxx
> > _______________________________________________
> > Speakup mailing list
> > Speakup@xxxxxxxxxxxxxxxxx
> > http://linux-speakup.org/cgi-bin/mailman/listinfo/speakup
> _______________________________________________
> Speakup mailing list
> Speakup@xxxxxxxxxxxxxxxxx
> http://linux-speakup.org/cgi-bin/mailman/listinfo/speakup

-- 
web site: http://www.gregn.net
gpg public key: http://www.gregn.net/pubkey.asc
skype: gregn1
(authorization required, add me to your contacts list first)
If we haven't been in touch before, e-mail me before adding me to your contacts.

--
Free domains: http://www.eu.org/ or mail dns-manager@xxxxxx
_______________________________________________
Speakup mailing list
Speakup@xxxxxxxxxxxxxxxxx
http://linux-speakup.org/cgi-bin/mailman/listinfo/speakup




[Index of Archives]     [Linux for the Blind]     [Fedora Discussioin]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]
  Powered by Linux