Recent

Author Topic: SdpoSerial modified - Serial component for Linux Windows and Mac  (Read 15169 times)

BLL

  • Full Member
  • ***
  • Posts: 232
Re: SdpoSerial modified - Serial component for Linux Windows and Mac
« Reply #15 on: August 05, 2013, 04:52:38 pm »
Hi, I did have the port as /dev/ttyUSB0.

With sertest, it runs and you are offered /dev/ttyUSB0, but on opening the port, you get an exception error SIGSEGV at B68A1E00 and it seizes solid and you have to kill it!

Jurassic Pork

  • Hero Member
  • *****
  • Posts: 753
Re: SdpoSerial modified - Serial component for Linux Windows and Mac
« Reply #16 on: August 05, 2013, 05:08:41 pm »
sorry, but i haven't a raspi and i don't know what is wrong. May be the events  :(
Jurassic computer : Sinclair ZX81 - Zilog Z80A à 3,25 MHz - RAM 1 Ko - ROM 8 Ko

BLL

  • Full Member
  • ***
  • Posts: 232
Re: SdpoSerial modified - Serial component for Linux Windows and Mac
« Reply #17 on: August 05, 2013, 05:28:22 pm »
OK, Thanks for your help. As I said, the author of Sdpo says there are problems with his 0.1.x component and I think this must be where the problem lies.

Paul Breneman

  • Sr. Member
  • ****
  • Posts: 273
    • Control Pascal
Re: SdpoSerial modified - Serial component for Linux Windows and Mac
« Reply #18 on: August 05, 2013, 05:46:21 pm »
This Snapse code works on my RPi:
  http://www.ctrlterm.com/
Regards,
Paul Breneman
www.ControlPascal.com

Jurassic Pork

  • Hero Member
  • *****
  • Posts: 753
Re: SdpoSerial modified - Serial component for Linux Windows and Mac
« Reply #19 on: August 05, 2013, 10:58:49 pm »
hello Paul,

it seems that you use a timer in your code to receive data from serial port. May be it is thread  and event used in TLazSerial that are the sources of problem on Raspi.
Jurassic computer : Sinclair ZX81 - Zilog Z80A à 3,25 MHz - RAM 1 Ko - ROM 8 Ko

Jurassic Pork

  • Hero Member
  • *****
  • Posts: 753
Re: SdpoSerial modified - Serial component for Linux Windows and Mac
« Reply #20 on: August 07, 2013, 08:08:58 am »
hello,
May be the reason why the events  don't work with synaser on Raspberry pi :

At the How to use UART of ARM platforms (e.g. Raspberry Pi ) through free Pascal?  question,  Dennis Poon said :
Quote
After some studying, synaser.pas seems to deal with com port instead of
the low level UART interface. After days of google search, I am afraid the bcm2835, the Soc of
Raspberry Pi (the hardware I have to use) does not provide this hardware
support :-(
It states that it does not even support interrupt. Polling is the only
way for events :-(
Jurassic computer : Sinclair ZX81 - Zilog Z80A à 3,25 MHz - RAM 1 Ko - ROM 8 Ko

Paul Breneman

  • Sr. Member
  • ****
  • Posts: 273
    • Control Pascal
Re: SdpoSerial modified - Serial component for Linux Windows and Mac
« Reply #21 on: August 07, 2013, 06:59:48 pm »
Yes (my code uses a timer), and thank you *very* much for helping to clear things up!
Regards,
Paul Breneman
www.ControlPascal.com

universe

  • New member
  • *
  • Posts: 20
Re: SdpoSerial modified - Serial component for Linux Windows and Mac
« Reply #22 on: October 10, 2013, 06:39:34 pm »
Nice work, thanks

Awesome Programmer

  • Sr. Member
  • ****
  • Posts: 397
  • Programming is FUN only when it works :)
    • Cool Technology
Re: SdpoSerial modified - Serial component for Linux Windows and Mac
« Reply #23 on: March 14, 2019, 09:46:48 pm »
 :) :) :) :) :) :) :) :) :) :)
You, Sir, saved me from horrible headache and frustration and a lots of time.

I am working with GPS receiver in my project and my program had issues reading the whole NEMA text. Dropped your SdpoSerial. My program just took off.

Thank you so much.
Have a great day!
:D :D :D :D :D :D :D