problem in reading binary data into navision

viswanath
Member Posts: 24
Hi all
This is viswanath working as a technical consultant.
i have a problem in connecting an embedded system tool (c/I pos)
the I pos working with front-end VB and using MSACCESS database.
The client wants to change it to navision.
The machine has a proto type in hexadecimals which has been converted into navision
i am able to convert and the ASCII code into hex and send it to the machine.
After receiving the code the machine replies with a return value in hexa decimal code which is not been supported by navision
navision is giving the following messatge
"the data type is not supported bi navision
navision supports only vt_void,vt_12,vt_14,vt_bool........."
If anyone want to go through the code here i am giving the code
//for output
CREATE(as); //as is a automation ( a dll which is built in vb for converting ascii to hexa and vice versa )
str:='01,FF,10,FO,03,41,43,7C'; //prototype,str is a code variable
z:=as.ToAsc(str);//z is a text variable
"mscommcontrol 6.0".CommPort(1);//ms commcontrol is comm control of ms communication control
"mscommcontrol 6.0".Settings('38400,N,8,1');
"mscommcontrol 6.0".InputLen:=0;
"mscommcontrol 6.0".PortOpen(TRUE);
"mscommcontrol 6.0".Output(z);//output code
With this code i am able to communicate the mishion .
when i am trying to get return value it is giving the problem
//code for input
mscommcontrol 6.0".InputMode(1);(if it is '1'it takes in binary format
it is '0' it takes in text format
"mscommcontrol 6.0".InputLen:=0;
"mscommcontrol 6.0".InBufferSize:=1024;
"mscommcontrol 6.0".InBufferCount:=256;
stx:="mscommcontrol 6.0".Input();
x:=as.ToHex(stx);
MESSAGE('%1',x); //the message box displays the input
can anyone help me in this senario .
if there is any another way to communicate the embedded systm please let me know
thx and regards
viswanath
This is viswanath working as a technical consultant.
i have a problem in connecting an embedded system tool (c/I pos)
the I pos working with front-end VB and using MSACCESS database.
The client wants to change it to navision.
The machine has a proto type in hexadecimals which has been converted into navision
i am able to convert and the ASCII code into hex and send it to the machine.
After receiving the code the machine replies with a return value in hexa decimal code which is not been supported by navision
navision is giving the following messatge
"the data type is not supported bi navision
navision supports only vt_void,vt_12,vt_14,vt_bool........."
If anyone want to go through the code here i am giving the code
//for output
CREATE(as); //as is a automation ( a dll which is built in vb for converting ascii to hexa and vice versa )
str:='01,FF,10,FO,03,41,43,7C'; //prototype,str is a code variable
z:=as.ToAsc(str);//z is a text variable
"mscommcontrol 6.0".CommPort(1);//ms commcontrol is comm control of ms communication control
"mscommcontrol 6.0".Settings('38400,N,8,1');
"mscommcontrol 6.0".InputLen:=0;
"mscommcontrol 6.0".PortOpen(TRUE);
"mscommcontrol 6.0".Output(z);//output code
With this code i am able to communicate the mishion .
when i am trying to get return value it is giving the problem
//code for input
mscommcontrol 6.0".InputMode(1);(if it is '1'it takes in binary format
it is '0' it takes in text format
"mscommcontrol 6.0".InputLen:=0;
"mscommcontrol 6.0".InBufferSize:=1024;
"mscommcontrol 6.0".InBufferCount:=256;
stx:="mscommcontrol 6.0".Input();
x:=as.ToHex(stx);
MESSAGE('%1',x); //the message box displays the input
can anyone help me in this senario .
if there is any another way to communicate the embedded systm please let me know
thx and regards
viswanath
0
Comments
-
search the forum for vt_void
there are several posts that have this message - perhaps one of them can guide you towards a solution
http://www.mibuso.com/forum/search.php0
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