Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old August 2nd, 2005, 02:55 PM
mjekl
Guest
 
Posts: n/a
Default JBUS and Python which way

Hi,

I'm a newbie without a technical background making some technology
research for a company I work for.

My aim is to have an idea of the alternatives technologies for
accessing
information produced by a machine with a JBUS interface (RS232) and how
to
access this information realtime in Python (connecting a PC locally via
serial
port).

I'm aware of pyserial but I wonder if there is a library/module that
takes care of accessing/interpreting JBUS protocol. I've searched for
this without results.

I also searched the net looking for some information so that I could
have a
birds-eye-view on this subject and got the impression that a
possibility is to
have the communication (JBUS protocol / buffering) managed by some
hardware
component. Is this so? Can some-one give me some pointers/resources on
this
subject. Would it still be possible to work with Python.


Hope this makes any sense.
All help appretiatted.
Txs,
Miguel

  #2  
Old August 3rd, 2005, 06:55 AM
Oren Tirosh
Guest
 
Posts: n/a
Default Re: JBUS and Python which way

If you can't find any JBUS/Modbus modules specific for Python it's
possible to use one of the many C/C++ modules available and make a
Python wrapper for it with an interface generator like SWIG or SIP. You
say that you don't have much technical background so you may consider
hiring someone to do it. It's not a big project so it shouldn't be too
expensive.

Oren

  #3  
Old August 3rd, 2005, 11:55 AM
Alan Kennedy
Guest
 
Posts: n/a
Default Re: JBUS and Python which way

[mjekl][color=blue]
> My aim is to have an idea of the alternatives technologies for
> accessing information produced by a machine with a JBUS interface
> (RS232) and how to access this information realtime in Python
> (connecting a PC locally via serial port).
>
> I'm aware of pyserial but I wonder if there is a library/module that
> takes care of accessing/interpreting JBUS protocol. I've searched for
> this without results.[/color]

A possibility you may not have considered is to use a Java library for
Modbus/JBus, and then use jython to control that. The following looks
like a likely candidate.

http://sourceforge.net/projects/jamod/

I imagine that writing your own cpython implementation wouldn't be that
difficult. I did some modbus work in C back in the 90s, and it was
pretty straightforward, but requiring a lot of finicky bit-twiddling.
I'm pretty certain that writing a python implementation would be a snap.
[color=blue]
> I also searched the net looking for some information so that I could
> have a birds-eye-view on this subject and got the impression that a
> possibility is to have the communication (JBUS protocol / buffering)
> managed by some hardware component. Is this so? Can some-one give me
> some pointers/resources on this subject. Would it still be possible
> to work with Python.[/color]

Well, if you do find some hardware component that manages the JBus
interface, you've then turned your problem into "How to talk between the
PC and the JBus instrument-manager" rather than "How to talk between the
PC and JBus instruments". Depending on the protocol used by the
"instrument-manager", you may be able to use python to control that.

HTH,

--
alan kennedy
------------------------------------------------------
email alan: http://xhaus.com/contact/alan
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles