Serial Port Communication

voglerf
Member Posts: 6
Hi Folks,
I have a real big problem. I used NFCOMM which I downloaded from mibuso. My problem ist that my Client 3.70B crashes if I try to open a Port.
First I did all the settings I knew like Baud Rate, Stop Bits ...
But the Client crashes.
I have to get some values from a weighing machine which is connected to the PC via serial port.
But I couldn't find a working automation or OCX control to fullfill this task.
Does anyone has experience with serial port communication and navision? I would be very thankfull if you could post some code or a www link where I can find this more information.
Today and tomorrow I have the oppertunity to test the code directly with the weighing machine. So it would be perfect if somebody can help me out.
Thanks a lot
Frank Vogler / Stuttgart
I have a real big problem. I used NFCOMM which I downloaded from mibuso. My problem ist that my Client 3.70B crashes if I try to open a Port.
First I did all the settings I knew like Baud Rate, Stop Bits ...
But the Client crashes.
I have to get some values from a weighing machine which is connected to the PC via serial port.
But I couldn't find a working automation or OCX control to fullfill this task.
Does anyone has experience with serial port communication and navision? I would be very thankfull if you could post some code or a www link where I can find this more information.
Today and tomorrow I have the oppertunity to test the code directly with the weighing machine. So it would be perfect if somebody can help me out.
Thanks a lot
Frank Vogler / Stuttgart
0
Comments
-
You can try out "Microsoft Communications Control, version 6.0", it's mscomm32.ocx.
CREATE(MsComm); IF NOT MsComm.PortOpen THEN //if Commport is not open BEGIN MsComm.CommPort(1); MsComm.Settings('2800,E,5,1'); MsComm.EOFEnable := TRUE; MsComm.InputMode := 0; MsComm.PortOpen := TRUE; END;
Regards,
Peter Ng0 -
Hi voglerf
I worked with serial port, comunicating Navision with a Truck weighing machine. To resolve this problem, I created an OCX with Visual Basic , and after I called it from Navision . You have a lot of examples on the Web. I recomend you www.somser.com (Is in spanish, but here you have a lot of VB free code samples).
I used VB, because I don't know if in Navision exist any system funcion like DOEVENTS. This function, give the control to Windows, until something occurs (in my case, a caracter is arrived to serial port)
Bye0 -
Thank's for the hint,
I inserted this Code and if I try to Compile This error Message pops up:
This Control or Automation needs a design license but this license is not available.
The message is freely translated from German so the english version of this error message could be different.
Do you have a clue how to solve this? What design license does this error message mean? My Navision license or some other kind of license. Navision license is a devellopers license which should include almost everything, but I am not sure.
Thank's for your fast help.
Now I Check out the spanish page to find some alternatives.
Greetings from Germany
Frank Vogler0 -
voglerf wrote:This Control or Automation needs a design license but this license is not available.
Hi Frank,
This Message is from the control itself
I got a similar message as I tried to program with the spreadsheet ocx in VB.
In this case you have to find óut the source for this OCX and try to get a full download version of it. After ypou install this OCX that way this message should be gone....regards,
Michael Schumacher
oh, what day is it? Backup day. OK, let's dump all data to /dev/nul ;-)0 -
It is because you need to install Visual studio or register Designers license for this control in another way (running batch vb6controls.reg from Visual Studio CD). If you have only this library without the Visual Studio, you are not able to use them for designing...0
-
Thank's a lot. But I can't get this license because I don't think that our customer will buy a VB6 license just to get the communication between the weighing machine and navision running. So I have to find something else. If you have some other ideas please post. I can't get on the spanish page posted by Saalek because it is not reachable.
best regards
Frank Vogler0 -
No, you do not understand. You need this license only if you want to add the automation to the object. If you add it there, you do not need this licence to use this object. It will be running without the license... You need it only in time of adding the new variable...0
-
Thank's Kine,
I now understand, you will need the license once if you want to compile the object, afterwards the license ist not needed any more.
My problem is, that I don't own VB6, so it is not possible to get the license legally. I can't use a cracked/stolen version.
So I can't compile the version. Somebody has another solution without the need of a license at compile time?
I just returned to office and I am facing this stuff the 99999st time and can't find a solution ](*,) . I know it's going to be a few lines of code, but I just can't find them.
Bye
Frank V.0 -
Hi Frank
You can try this
http://ourworld.compuserve.com/homepage ... xmcomm.htm
Some time a go, I also found a program named cheapcomm on the internet, be the download links seems to be broken.
Hope this helps
Thomas0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions