Sprog-Pi issue with ioctl fionread (no typewriter)

http://www.sprog-dcc.co.uk/

Sprog-Pi issue with ioctl fionread (no typewriter)

Postby AxelT » 25.04.2017, 23:18

Hi
I am currently playing around with a Pi3 Model B based installation using the small piggiback board of Sprog-Pi (no Booster). I added the Sprog-Pi as Command Station using /dev/ttyAMA0 and checked if the user is in the dialout group (=true).
I cleand up /boot/cmdline.txt and tweaked /boot/config.txt according the manual provided by SPROG.
When I try to proof existence of Sprog-Pi using minicom toward /dev/serial0 I did NOT get the proper message.

Starting up Rocrail/Rocview I am flooded by ioctl fionread error messages.

Looks the device is bussy or not reachable. I changed mouse and keyboard to avoid any fault related to buggy hardware but no success.

I guess I have to modifiy the udev rules and the blacklist (maybe the modemprobe goes crazy) - but I can not rember the right syntax...

1) could someone provide me the udev rules syntax for the Sprog-Pi?
2) What else to test? Do we have a kind of checklist what (and how) to test?
3) What did I oversee?

Best Regards,
Axel
AxelT
 

Re: Sprog-Pi issue with ioctl fionread (no typewriter)

Postby rjversluis » 26.04.2017, 06:46

Hi Axel,

in RocNetNode you can also attach a SPROG.
The device is not /dev/serial0 but:
/dev/ttyACM0
The RocNetNode uses the same SPROG library as the Rocrail Server.
Best Regards, Rob.
:!: PS: Do not forget to attach the usual files.
:!: PS: Nicht vergessen die übliche Dateien an zu hängen.
[ macOS - Linux] - [ N: CBus - CAN-GCA ] - [ 0: RocNetNode - GCA-Pi ]
rjversluis
Site Admin
 

Re: Sprog-Pi issue with ioctl fionread (no typewriter)

Postby AxelT » 26.04.2017, 07:02

Hi Rob
I remember from last time that I had difficulties with RocNetNode. So how to do it?
1) Raspi with fix IP on a regular network
2) Starting the Rocnode piece of software (running on the same Raspi)
3) ?? Adding the SPROG at Comand Station in Rocrail Properties ??
4) ?? In Rocview: Programming >> Rocnet >> Setup - But how to ADD the Hardware?

Are you sure about the /dev/ttyACM0? In the following document http://www.sprog-dcc.co.uk/downloads/li ... jessie.pdf the SPROG Folks claim /dev/ttyAMA0 (refer to page 7)
That's why I went down this path.
I will test with your settings...

From previous attempts I know that the hardware somehow "appear" at the Rocnode Setup but is there a way to "search"?
Are the Steps 1-4 correct?

Best REgards,
Axel
AxelT
 

Re: Sprog-Pi issue with ioctl fionread (no typewriter)

Postby rjversluis » 26.04.2017, 08:37

Hi,

just to discover the right device type:

Code: Select all
ls -l /dev/ttyA*


3) ?? Adding the SPROG at Comand Station in Rocrail Properties ??
4) ?? In Rocview: Programming >> Rocnet >> Setup - But how to ADD the Hardware?

No. Check the Wiki.

Device /dev/ttyAMA0 is from the Raspi itself.
Best Regards, Rob.
:!: PS: Do not forget to attach the usual files.
:!: PS: Nicht vergessen die übliche Dateien an zu hängen.
[ macOS - Linux] - [ N: CBus - CAN-GCA ] - [ 0: RocNetNode - GCA-Pi ]
rjversluis
Site Admin
 

Re: Sprog-Pi issue with ioctl fionread (no typewriter)

Postby Liviu M » 26.04.2017, 09:20

Hi Axel, hi Rob,

@Rob: from the pictures on the pi-sprog site looks like the board is a pi-hat and is using the pi's own serial interface.
@Axel: I think, as long as the minicom tests are failing, trying with Rocrail is useless. You should be sure your hardware is working properly before testing it with Rocrail.

Best regards,
Liviu
----------------------------------------------
System: DCC N-Scale
CS: Profiboss (Loconet)
Server: RaspberryPi/OdroidC1/OpenSuse
Client: OpenSuse/Windows(?)
----------------------------------------------
Liviu M
 

Re: Sprog-Pi issue with ioctl fionread (no typewriter)

Postby AxelT » 26.04.2017, 09:51

Hi Rob
I went down and tested... On my Raspi I only have ttyAMA0!
See Picture
Image

I am talking about this board:
Image

Best Regards,
Axel
AxelT
 

Re: Sprog-Pi issue with ioctl fionread (no typewriter)

Postby rjversluis » 26.04.2017, 09:57

Hi Axel,

OK, I do not have a Pi-Sprog, and RocNetNode does not support it.
It should work with Rocrail with the /dev/ttyAMA0.

But take Liviu's advice.
Best Regards, Rob.
:!: PS: Do not forget to attach the usual files.
:!: PS: Nicht vergessen die übliche Dateien an zu hängen.
[ macOS - Linux] - [ N: CBus - CAN-GCA ] - [ 0: RocNetNode - GCA-Pi ]
rjversluis
Site Admin
 

Re: Sprog-Pi issue with ioctl fionread (no typewriter)

Postby Liviu M » 26.04.2017, 11:15

Hi Axel,
At the ls -l command your system is showing /dev/ttyAMA0 and in the minicom tests you are using /dev/ttyACM0. Try to test using the AMA0 interface.

Liviu
----------------------------------------------
System: DCC N-Scale
CS: Profiboss (Loconet)
Server: RaspberryPi/OdroidC1/OpenSuse
Client: OpenSuse/Windows(?)
----------------------------------------------
Liviu M
 


Return to sprog