Home > bash scripting, Solaris, Trouble-Shooting > Sending data to serial port simultaneusly using jpnevulator

Sending data to serial port simultaneusly using jpnevulator

This solution comes when we facing trouble on solaris10 at remote site, whenever the machine read data from GPS using usb2serial cable, core-dump is always happen.

Before we go to the site (medan) we must simulate & solve problem at our office.

Laptop CQ-42

Hardware configuration, from left to right :

  1. Laptop : my work place where the script reside
  2. usb2serial merk ATEN (connected to my laptop)
  3. Kabel NULL Modem : serial cable with specific configuration, for communicate DTE (data terminal equipment)
  4. usb2serial merk ATEN (tersambung ke Sun Blade 1500)

Why use my laptop? because office GPS is not completely installed (no power supply found), then my computer act as GPS simulator to feed (time) data to server.
Why use usb2serial cable? because my laptop doesn’t have serial port, and all server’s serial port used by another existing real-time application.

GPS data format :      (STX)R:12:34:56(CR)(LF)D+000.10(CR)(LF)F:50.1(CR)(LF)(ETX)
(STX) : non-printable character, Start of TeXt
R:12:34:56 : GPS time
(CR)(LF)  : non-printable character, Carriage Return Line Feed = ENTER
D+000.01 : different time with system (server) time
F:50.1 : real time electrical frequency
(ETX) : non-printable character, End of TeXt

Troubleshoot process

  1. Install jpnevulator to my linux box to send/read/sniff data from/to serial port.
  2. Create Shell script
  3. Execute the script

Thanks to

Mr. Fredy S : Idea
Mr. Ory : Troubleshooter
Me : shell script lover 😀


Null modem
Advanced Bash-Scripting Guide

  1. al_fiyan
    7 May 2012 at 10:43 am

    weitsss… nginggris saiki reeekk… go international,,, 😀

  2. 8 May 2012 at 6:32 am

    keminggris djaya…

  3. 27 July 2012 at 4:11 pm

    I feel this is one of the such a lot vital info for me. And i am happy reading your article. But wanna statement on some basic issues, The site taste is wonderful, the articles is actually great : D. Good task, cheers

  4. 16 August 2012 at 4:48 am

    Sorry, but I’m not happy to read your comment because usually spam has similar comment with you, so I assume you are SPAM. 🙂

  5. 28 August 2013 at 12:59 pm

    of course like your web site however you need to take a look at the spelling on quite a few of your posts. A number of them are rife with spelling issues and I to find it very bothersome to inform the reality on the other hand I’ll definitely come back again.

  6. 21 September 2013 at 10:51 am

    go to hell 😀

  1. 25 April 2012 at 6:42 am

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: