Page 2 of 4 < 1 2 3 4 >
Topic Options
Rate This Topic
#64860 - 24/05/13 03:18 PM Re: Communication with Alaris/Asena Syringe Pump [Re: ACW]
Geoff Hannis Offline
Super Hero

Registered: 12/02/04
Posts: 11869
Loc: the path less trodden

There is a lot of nice information in the (old) .pdf linked to earlier.

Originally Posted By: Geoff Hannis

I can't comment further as I don't have to hand the protocol document mentioned.


I've got it now! smile

Top
EBME Seminar
EBME Seminar 2014
#64917 - 31/05/13 11:40 AM Re: Communication with Alaris/Asena Syringe Pump [Re: mmartinez]
FrankD Offline
Newbie

Registered: 31/05/13
Posts: 4
Loc: Netherlands
Hi all,

It's very hard to find others who are also trying to connect a PC to an Alaris Asena pump, so I'm glad that I found this thread. I'm currently trying to use the Alaris Asena communications protocol for an experiment for my masters thesis, but since the code for calculating the CRC is in C++ (and my C++ programming skills are non-existent) it's difficult for me to use. I was wondering if anyone has converted the C++ code to another programming language, like Java of Matlab code and is willing to share it with me? Many thanks in advance!

Regards,
Frank

Top
#64919 - 31/05/13 12:14 PM Re: Communication with Alaris/Asena Syringe Pump [Re: FrankD]
Geoff Hannis Offline
Super Hero

Registered: 12/02/04
Posts: 11869
Loc: the path less trodden

Welcome to the forum, Frank. smile

Take my tip:- seize this opportunity to learn C. You'll be glad you did.

By the way, it looks like that link I gave earlier was no good. frown

You could make a start by typing the example code into your favourite C compiler and take things from there. In my experience, by following that kind of approach you will learn far more than you ever would have in a classroom!

As you must know, the name Rocksoft comes up time and time again when looking at CRC stuff - so (as we like to say on here):- remember that Google is your friend! So here is the famous (as in "oft mentioned") CRC V3.txt* file. whistle

There is a lot of stuff on Google about CRC coding in Matlab; so maybe you could adapt code for your purposes from one or more of those. Anyway, be sure to let us know how you get on.

But, as you mentioned Java, take a look at this.

Lastly (as I don't have an Asena syringe pump available to me these days), can you confirm that a "straight" 9-pin serial cable is the one required?

* You will find some C stuff in there, as well.

Top
#64920 - 31/05/13 12:46 PM Re: Communication with Alaris/Asena Syringe Pump [Re: Geoff Hannis]
Huw Online   content

Hero

Registered: 20/06/00
Posts: 2143
Loc: Essex
Originally Posted By: Geoff Hannis
Take my tip:- seize this opportunity to learn C. You'll be glad you did.
C++ is O.O. C is not. smile
_________________________
Forgot your password? :: Forum FAQ

Top
#64921 - 31/05/13 12:48 PM Re: Communication with Alaris/Asena Syringe Pump [Re: Huw]
Geoff Hannis Offline
Super Hero

Registered: 12/02/04
Posts: 11869
Loc: the path less trodden

Yes. But look at the examples I mention.

And ... you have to start somewhere! smile

Top
#64930 - 01/06/13 11:30 AM Re: Communication with Alaris/Asena Syringe Pump [Re: mmartinez]
FrankD Offline
Newbie

Registered: 31/05/13
Posts: 4
Loc: Netherlands
Thanks for the input everybody! Luckily, mmartinez had the CRC code in Java and was kind enough to send it to me(thanks again!).

@Geoff Hannis: For connecting to the Alaris Asena pumps you indeed need a 9-pin serial cable.

Top
#64935 - 02/06/13 03:43 PM Re: Communication with Alaris/Asena Syringe Pump [Re: mmartinez]
Bruno Ferreira Offline
Newbie

Registered: 22/05/13
Posts: 6
Loc: Portugal
Thanks all for the answers!!! anyone knows how is composed the communication security code needed to comand the pump?

Thanks

Top
#64936 - 02/06/13 04:45 PM Re: Communication with Alaris/Asena Syringe Pump [Re: mmartinez]
FrankD Offline
Newbie

Registered: 31/05/13
Posts: 4
Loc: Netherlands
The security code is calculated by the CRC function (there's a C++ code fragment in the communications protocol at http://www.frankshospitalworkshop.com/eq...vice_manual.pdf, page 129-131) which takes the serial number of the pump and the length of the serial number as arguments and it returns a 4-digit code. Those 4 digits are the security code that you need. Be sure to "ask" the serial number from the pump, because internally the serial number may have a dash "-" in it, which (in my case) was not mentioned on the label on the pump itself, but it makes a difference in the code that you get returned! Good luck!

Top
#64937 - 02/06/13 06:35 PM Re: Communication with Alaris/Asena Syringe Pump [Re: FrankD]
Geoff Hannis Offline
Super Hero

Registered: 12/02/04
Posts: 11869
Loc: the path less trodden

Those four digits of the Security Code are not digits as such, but rather four hexadecimal characters (ie, 0-9 and A-F) representing a 16-bit CRC value. The code example describes this as the high and low bytes of the Security Code.

Hopefully the serial number is correctly displayed at the pump's Self-Test Procedure (123) and (or) the Information Logs (376)? think

According to the manual, Asena serial numbers are in the form:-

9999-99999

I haven't had a play with the code mentioned yet (but maybe I'll type it in when I have a bit of time), but assuming an equipment serial number of 1234-56789 it looks like it needs arguments as follows:-

func(1234-56789,10)

... where 10 is the length of the serial number. smile

Top
#64955 - 04/06/13 07:29 PM Re: Communication with Alaris/Asena Syringe Pump [Re: mmartinez]
Bruno Ferreira Offline
Newbie

Registered: 22/05/13
Posts: 6
Loc: Portugal
Thank you all for the help...just one more thing...i have a labview code to ask the serial number from the pump but i cant have any response...i think its because the response time of the pump...can anyone give me some ideas of where is the problem? if needed i send the labiew code...By the way, i am using a rs232 to usb cable, it works in this case, or i need to use a pure rs232 cable?

Top
Page 2 of 4 < 1 2 3 4 >



Moderator:  DaveC in Oz, KM, Muneeb, RoJo 
Who's Online
7 registered (Crystal Nguyen, alecs, big steve, Huw, Laiq, Charles Valencia, abdulaziz), 225 Guests and 32 Spiders online.
Key: Admin, Global Mod, Mod
Events
EBME Seminar 2014
April
M Tu W Th F Sa Su
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
Forum Stats
7722 Members
27 Forums
8982 Topics
64088 Posts

Max Online: 1004 @ 06/08/13 11:48 PM
Visitors
EBME world visitors