Permalink
Browse files

rev1 - API

The updated API folder.
  • Loading branch information...
oghaffari committed Feb 10, 2017
1 parent b1ffa6f commit 9d4d312b563b36aa8fa92e93cbbe15cb16b23bfc
Showing with 20,793 additions and 0 deletions.
  1. BIN api/c-plus-plus-dot-net/api-files/AWI_API_C.dll
  2. BIN api/c-plus-plus-dot-net/api-files/AWI_API_C.lib
  3. BIN api/c-plus-plus-dot-net/api-files/cbx_enc.dll
  4. +1,051 −0 api/c-plus-plus-dot-net/example/AWI_API.h
  5. +462 −0 api/c-plus-plus-dot-net/example/CommPage.cpp
  6. +51 −0 api/c-plus-plus-dot-net/example/CommPage.h
  7. +248 −0 api/c-plus-plus-dot-net/example/Debug.cpp
  8. +38 −0 api/c-plus-plus-dot-net/example/Debug.h
  9. +64 −0 api/c-plus-plus-dot-net/example/InputConfigDlg.cpp
  10. +23 −0 api/c-plus-plus-dot-net/example/InputConfigDlg.h
  11. +688 −0 api/c-plus-plus-dot-net/example/ReaderPage.cpp
  12. +50 −0 api/c-plus-plus-dot-net/example/ReaderPage.h
  13. +53 −0 api/c-plus-plus-dot-net/example/RelayDialog.cpp
  14. +24 −0 api/c-plus-plus-dot-net/example/RelayDialog.h
  15. +411 −0 api/c-plus-plus-dot-net/example/SFGENPage.cpp
  16. +40 −0 api/c-plus-plus-dot-net/example/SFGENPage.h
  17. +70 −0 api/c-plus-plus-dot-net/example/STDFGenPage.cpp
  18. +25 −0 api/c-plus-plus-dot-net/example/STDFGenPage.h
  19. +298 −0 api/c-plus-plus-dot-net/example/SetConfigSFgen.cpp
  20. +41 −0 api/c-plus-plus-dot-net/example/SetConfigSFgen.h
  21. +8 −0 api/c-plus-plus-dot-net/example/StdAfx.cpp
  22. +33 −0 api/c-plus-plus-dot-net/example/StdAfx.h
  23. +2,297 −0 api/c-plus-plus-dot-net/example/TagPage.cpp
  24. +60 −0 api/c-plus-plus-dot-net/example/TagPage.h
  25. +57 −0 api/c-plus-plus-dot-net/example/TempDlg.cpp
  26. +28 −0 api/c-plus-plus-dot-net/example/TempDlg.h
  27. +88 −0 api/c-plus-plus-dot-net/example/TemperatureDlg.cpp
  28. +25 −0 api/c-plus-plus-dot-net/example/TemperatureDlg.h
  29. +74 −0 api/c-plus-plus-dot-net/example/TestAPI.cpp
  30. +51 −0 api/c-plus-plus-dot-net/example/TestAPI.h
  31. +410 −0 api/c-plus-plus-dot-net/example/TestAPI.old.vcxproj
  32. +656 −0 api/c-plus-plus-dot-net/example/TestAPI.rc
  33. +19 −0 api/c-plus-plus-dot-net/example/TestAPI.sln
  34. BIN api/c-plus-plus-dot-net/example/TestAPI.suo
  35. +65 −0 api/c-plus-plus-dot-net/example/TestAPI.vcproj.myvaio.juan.user
  36. +216 −0 api/c-plus-plus-dot-net/example/TestAPI.vcxproj
  37. +103 −0 api/c-plus-plus-dot-net/example/TestAPI.vcxproj.filters
  38. +3 −0 api/c-plus-plus-dot-net/example/TestAPI.vcxproj.user
  39. +2,314 −0 api/c-plus-plus-dot-net/example/TestAPIDlg.cpp
  40. +77 −0 api/c-plus-plus-dot-net/example/TestAPIDlg.h
  41. +60 −0 api/c-plus-plus-dot-net/example/TestAPITab.cpp
  42. +27 −0 api/c-plus-plus-dot-net/example/TestAPITab.h
  43. BIN api/c-plus-plus-dot-net/example/debug/AWI_API_C.dll
  44. BIN api/c-plus-plus-dot-net/example/debug/AWI_API_C.pdb
  45. BIN api/c-plus-plus-dot-net/example/debug/TestAPI.exe
  46. +10 −0 api/c-plus-plus-dot-net/example/debug/TestAPI.exe.intermediate.manifest
  47. BIN api/c-plus-plus-dot-net/example/debug/cbx_enc.dll
  48. BIN api/c-plus-plus-dot-net/example/debug/vc100.pdb
  49. BIN api/c-plus-plus-dot-net/example/release/AWI_API_C.dll
  50. BIN api/c-plus-plus-dot-net/example/release/TestAPI.exe
  51. +10 −0 api/c-plus-plus-dot-net/example/release/TestAPI.exe.intermediate.manifest
  52. BIN api/c-plus-plus-dot-net/example/release/vc100.pdb
  53. BIN api/c-plus-plus-dot-net/example/res/TestAPI.ico
  54. +13 −0 api/c-plus-plus-dot-net/example/res/TestAPI.rc2
  55. +407 −0 api/c-plus-plus-dot-net/example/resource.h
  56. +4 −0 api/c-plus-plus-dot-net/example/resource.hm
  57. BIN api/c-sharp-dot-net-ce/api-files/AWI_API_CE.dll
  58. BIN api/c-sharp-dot-net-ce/example/Alarm.wav
  59. +51 −0 api/c-sharp-dot-net-ce/example/AssemblyInfo.cs
  60. +200 −0 api/c-sharp-dot-net-ce/example/CE Example.csdproj
  61. +164 −0 api/c-sharp-dot-net-ce/example/CE Example.csproj
  62. +57 −0 api/c-sharp-dot-net-ce/example/CE Example.csproj.user
  63. +22 −0 api/c-sharp-dot-net-ce/example/CE Example.sln
  64. BIN api/c-sharp-dot-net-ce/example/CE Example.suo
  65. +17 −0 api/c-sharp-dot-net-ce/example/Class1.cs
  66. BIN api/c-sharp-dot-net-ce/example/Ding.WAV
  67. +2,092 −0 api/c-sharp-dot-net-ce/example/Form1.cs
  68. +260 −0 api/c-sharp-dot-net-ce/example/Form1.resx
  69. +172 −0 api/c-sharp-dot-net-ce/example/Form2.cs
  70. +133 −0 api/c-sharp-dot-net-ce/example/Form2.resx
  71. +120 −0 api/c-sharp-dot-net-ce/example/Form3.cs
  72. +126 −0 api/c-sharp-dot-net-ce/example/Form3.resx
  73. BIN api/c-sharp-dot-net-ce/example/Notify.wav
  74. BIN api/c-sharp-dot-net-ce/example/TagDetectorV1.0.ism
  75. BIN api/c-sharp-dot-net-ce/example/bin/App.ico
  76. BIN api/c-sharp-dot-net-ce/example/bin/Debug/AWI_API_CE.dll
  77. BIN api/c-sharp-dot-net-ce/example/bin/Debug/Alarm.wav
  78. BIN api/c-sharp-dot-net-ce/example/bin/Debug/CE_EXAMPLE.exe
  79. BIN api/c-sharp-dot-net-ce/example/bin/Debug/CE_EXAMPLE.pdb
  80. BIN api/c-sharp-dot-net-ce/example/bin/Debug/Ding.WAV
  81. +1 −0 api/c-sharp-dot-net-ce/example/bin/Debug/comport.txt
  82. BIN api/c-sharp-dot-net-ce/example/bin/Release/AWI_API_CE.dll
  83. BIN api/c-sharp-dot-net-ce/example/bin/Release/Alarm.wav
  84. BIN api/c-sharp-dot-net-ce/example/bin/Release/CE_EXAMPLE.exe
  85. BIN api/c-sharp-dot-net-ce/example/bin/Release/Ding.WAV
  86. +1 −0 api/c-sharp-dot-net-ce/example/bin/Release/comport.txt
  87. BIN api/c-sharp-dot-net-ce/example/bin/vssver2.scc
  88. +1 −0 api/c-sharp-dot-net-ce/example/comport.txt
  89. +13 −0 api/c-sharp-dot-net-ce/example/mssccprj.scc
  90. +52 −0 api/c-sharp-dot-net-ce/example/obj/Debug/CE Example.csproj.FileListAbsolute.txt
  91. BIN api/c-sharp-dot-net-ce/example/obj/Debug/CE Example.csproj.GenerateResource.Cache
  92. BIN api/c-sharp-dot-net-ce/example/obj/Debug/CE_EXAMPLE.exe
  93. BIN api/c-sharp-dot-net-ce/example/obj/Debug/CE_EXAMPLE.pdb
  94. BIN api/c-sharp-dot-net-ce/example/obj/Debug/ResolveAssemblyReference.cache
  95. BIN api/c-sharp-dot-net-ce/example/obj/Debug/TagDetector.Form1.resources
  96. BIN api/c-sharp-dot-net-ce/example/obj/Debug/TagDetector.Form2.resources
  97. BIN api/c-sharp-dot-net-ce/example/obj/Debug/TagDetector.Form3.resources
  98. +41 −0 api/c-sharp-dot-net-ce/example/obj/Release/CE Example.csproj.FileListAbsolute.txt
  99. BIN api/c-sharp-dot-net-ce/example/obj/Release/CE Example.csproj.GenerateResource.Cache
  100. BIN api/c-sharp-dot-net-ce/example/obj/Release/CE_EXAMPLE.exe
  101. BIN api/c-sharp-dot-net-ce/example/obj/Release/ResolveAssemblyReference.cache
  102. BIN api/c-sharp-dot-net-ce/example/obj/Release/TagDetector.Form1.resources
  103. BIN api/c-sharp-dot-net-ce/example/obj/Release/TagDetector.Form2.resources
  104. BIN api/c-sharp-dot-net-ce/example/obj/Release/TagDetector.Form3.resources
  105. +27 −0 api/c-sharp-dot-net-ce/example/sound.cs
  106. BIN api/c-sharp-dot-net-ce/example/v3.0-installation/TagDetectorV3.0.ism
  107. BIN api/c-sharp-dot-net-ce/example/v3.0-installation/vssver2.scc
  108. BIN api/c-sharp-dot-net/api-files/AWI_API_C.dll
  109. BIN api/c-sharp-dot-net/api-files/AW_API_NET.dll
  110. BIN api/c-sharp-dot-net/api-files/cbx_enc.dll
  111. BIN api/c-sharp-dot-net/example/App.ico
  112. +58 −0 api/c-sharp-dot-net/example/AssemblyInfo.cs
  113. +2,682 −0 api/c-sharp-dot-net/example/Form1.cs
  114. +123 −0 api/c-sharp-dot-net/example/Form1.resx
  115. +161 −0 api/c-sharp-dot-net/example/TestAPI.csproj
  116. +71 −0 api/c-sharp-dot-net/example/TestAPI.csproj.user
  117. +19 −0 api/c-sharp-dot-net/example/TestAPI.sln
  118. BIN api/c-sharp-dot-net/example/TestAPI.suo
  119. BIN api/c-sharp-dot-net/example/bin/Debug/AWI_API_C.dll
  120. BIN api/c-sharp-dot-net/example/bin/Debug/AWI_API_C.pdb
  121. BIN api/c-sharp-dot-net/example/bin/Debug/AW_API_NET.dll
  122. BIN api/c-sharp-dot-net/example/bin/Debug/AW_API_NET.pdb
  123. BIN api/c-sharp-dot-net/example/bin/Debug/TestAPI.exe
  124. BIN api/c-sharp-dot-net/example/bin/Debug/TestAPI.pdb
  125. BIN api/c-sharp-dot-net/example/bin/Release/AWI_API_C.dll
  126. BIN api/c-sharp-dot-net/example/bin/Release/AW_API_NET.dll
  127. BIN api/c-sharp-dot-net/example/bin/Release/TestAPI.exe
  128. BIN api/c-sharp-dot-net/example/bin/Release/TestAPI.vshost.exe
  129. +11 −0 api/c-sharp-dot-net/example/bin/Release/TestAPI.vshost.exe.manifest
  130. +373 −0 api/c-sharp-dot-net/manual.md
  131. BIN api/documents/AW_API.doc
  132. BIN api/documents/AW_API.pdf
  133. BIN api/documents/AW_API_V39.doc
  134. BIN api/documents/Protocol-tg-07092008.doc
  135. BIN api/documents/Protocol20061015.doc
  136. BIN api/documents/VerRelease.doc
  137. BIN api/documents/tempLog.doc
  138. +163 −0 api/java/manual.md
  139. +29 −0 api/readme.md
  140. BIN api/vb-dot-net/api-files/AWI_API_C.dll
  141. BIN api/vb-dot-net/api-files/AW_API_NET.dll
  142. BIN api/vb-dot-net/api-files/cbx_enc.dll
  143. +25 −0 api/vb-dot-net/example/AW_VB_API_EXAMPLE.sln
  144. BIN api/vb-dot-net/example/AW_VB_API_EXAMPLE.suo
  145. +186 −0 api/vb-dot-net/example/AW_VB_API_EXAMPLE.vbproj
  146. +75 −0 api/vb-dot-net/example/AW_VB_API_EXAMPLE.vbproj.user
  147. +32 −0 api/vb-dot-net/example/AssemblyInfo.vb
  148. +679 −0 api/vb-dot-net/example/Form1.resx
  149. +1,760 −0 api/vb-dot-net/example/Form1.vb
  150. BIN api/vb-dot-net/example/bin/x86/Debug/AWI_API_C.dll
  151. BIN api/vb-dot-net/example/bin/x86/Debug/AWI_API_C.pdb
  152. BIN api/vb-dot-net/example/bin/x86/Debug/AW_API_NET.dll
  153. BIN api/vb-dot-net/example/bin/x86/Debug/AW_API_NET.pdb
  154. BIN api/vb-dot-net/example/bin/x86/Debug/AW_VB_API_EXAMPLE.exe
  155. BIN api/vb-dot-net/example/bin/x86/Debug/AW_VB_API_EXAMPLE.pdb
  156. BIN api/vb-dot-net/example/bin/x86/Debug/AW_VB_API_EXAMPLE.vshost.exe
  157. +11 −0 api/vb-dot-net/example/bin/x86/Debug/AW_VB_API_EXAMPLE.vshost.exe.manifest
  158. +11 −0 api/vb-dot-net/example/bin/x86/Debug/AW_VB_API_EXAMPLE.xml
  159. BIN api/vb-dot-net/example/bin/x86/Release/AWI_API_C.dll
  160. BIN api/vb-dot-net/example/bin/x86/Release/AW_API_NET.dll
  161. BIN api/vb-dot-net/example/bin/x86/Release/AW_VB_API_EXAMPLE.exe
  162. BIN api/vb-dot-net/example/bin/x86/Release/AW_VB_API_EXAMPLE.vshost.exe
  163. +11 −0 api/vb-dot-net/example/bin/x86/Release/AW_VB_API_EXAMPLE.vshost.exe.manifest
  164. +11 −0 api/vb-dot-net/example/bin/x86/Release/AW_VB_API_EXAMPLE.xml
Binary file not shown.
Binary file not shown.
Binary file not shown.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -0,0 +1,51 @@
#pragma once
#include "afxwin.h"
// CCommPage dialog
class CCommPage : public CDialog
{
DECLARE_DYNAMIC(CCommPage)
public:
CCommPage(CWnd* pParent = NULL); // standard constructor
virtual ~CCommPage();
// Dialog Data
enum { IDD = IDD_DIALOG_COMM };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
DECLARE_MESSAGE_MAP()
public:
void EnableRS232Group(bool b);
void EnableNetworkGroup(bool b);
void CloseDebugWindow();
afx_msg void OnBnClickedButtonRfRegReader();
afx_msg void OnBnClickedRadioRs232();
afx_msg void OnBnClickedRadioNetwork();
afx_msg void OnBnClickedButtonRfRegTag();
CStatic m_commGroup;
CButton m_rs232Button;
CWnd* listIPBox;
afx_msg void OnBnClickedButtonRfOpen();
afx_msg void OnBnClickedButtonRfClose();
// afx_msg void OnBnClickedButtonRfRegDebugEvent();
afx_msg void OnChildActivate();
// afx_msg void OnBnClickedButtonStartDebug();
CListBox m_ipList;
afx_msg void OnBnClickedButtonRfOpenSocket();
afx_msg void OnBnClickedButtonRfCloseSocket();
// afx_msg void OnBnClickedButtonResetReaderSocket();
afx_msg void OnActivateApp(BOOL bActive, DWORD dwThreadID);
// afx_msg void OnBnClickedButtonChangeIp();
afx_msg void OnBnClickedButtonScanNetwork();
afx_msg void OnBnClickedButtonRfCloseSocket2();
afx_msg void OnBnClickedButtonRfScanIp();
CEdit m_ip;
afx_msg void OnBnClickedRadioRadioSpecificIp();
afx_msg void OnBnClickedRadioAllIps();
afx_msg void OnBnClickedButtonRfResetReaderSocket();
};
@@ -0,0 +1,248 @@
// Debug.cpp : implementation file
//
#include "stdafx.h"
#include "TestAPI.h"
#include "Debug.h"
#include "CommPage.h"
#include ".\debug.h"
// CDebug dialog
extern CCommPage* comPage;
IMPLEMENT_DYNAMIC(CDebug, CDialog)
CDebug::CDebug(CWnd* pParent /*=NULL*/)
: CDialog(CDebug::IDD, pParent)
{
count = 0;
rxStopDebug = false;
txStopDebug = false;
}
CDebug::~CDebug()
{
}
void CDebug::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
DDX_Control(pDX, RX_IDC_LIST, m_recvList);
DDX_Control(pDX, TX_IDC_LIST, m_sendList);
DDX_Control(pDX, IDC_BUTTON_RX_STOP, m_rxStop);
DDX_Control(pDX, IDC_BUTTON_TX_STOP, m_txStop);
}
BEGIN_MESSAGE_MAP(CDebug, CDialog)
ON_BN_CLICKED(IDC_BUTTON_RX_CLEAR, OnBnClickedButtonRxClear)
ON_BN_CLICKED(IDC_BUTTON_TX_CLEAR, OnBnClickedButtonTxClear)
ON_BN_CLICKED(IDC_BUTTON_RX_STOP, OnBnClickedButtonRxStop)
ON_BN_CLICKED(IDC_BUTTON_TX_STOP, OnBnClickedButtonTxStop)
// ON_WM_CLOSE()
ON_BN_CLICKED(IDC_BUTTON_DEBUG_CLOSE, OnBnClickedButtonDebugClose)
END_MESSAGE_MAP()
// CDebug message handlers
void CDebug::DisplayRecPackets(char buf[260], int len, char ip[20], bool frameFlag, bool crcFlag)
{
if (rxStopDebug)
return;
count++;
int index = 60;
//-----------Debug Window
CString str;
char tbuf[10];
int length = len;
itoa(count, tbuf, 10);
if (count < 10)
{
str = "0";
str += tbuf;
}
else
str = tbuf;
str += " - ";
buf[len+1] = '\0';
if (frameFlag)
str += "fEr ";
if (crcFlag)
str += "crcEr ";
CString str2;
for (int i=0; i<length; i++)
{
str2.Format("%02x", ((int)(unsigned char)buf[i]));
str += str2;
str += ' ';
}
if (str.GetLength() > index)
{
CString str1;
str1 = str.Mid(index, str.GetLength() - index);
if (!str1.IsEmpty())
{
index += 1;
str1 = str.Mid(index, str.GetLength() - index);
}
if (!str1.IsEmpty())
{
index += 1;
str1 = str.Mid(index, str.GetLength() - index);
}
if (!str1.IsEmpty())
{
index += 1;
str1 = str.Mid(index, str.GetLength() - index);
}
str1 = " " + str1;
m_recvList.InsertString(0, str1);
str1 = str.Mid(1, index);
str1 += " ";
str1 += ip;
m_recvList.InsertString(0, str1);
}
else
{
str += " ";
str += ip;
m_recvList.InsertString(0, str);
str.Empty();
}
}
void CDebug::DisplaySendPackets(char buf[260], int len, char ip[20], bool frameFlag, bool crcFlag)
{
if (txStopDebug)
return;
count++;
int index = 60;
//-----------Debug Window
CString str;
char tbuf[10];
int length = len;
itoa(count, tbuf, 10);
if (count < 10)
{
str = "0";
str += tbuf;
}
else
str = tbuf;
str += " - ";
buf[len+1] = '\0';
if (frameFlag)
str += "fEr ";
if (crcFlag)
str += "crcEr ";
CString str2;
for (int i=0; i<length; i++)
{
str2.Format("%02x", ((int)(unsigned char)buf[i]));
str += str2;
str += ' ';
}
if (str.GetLength() > index)
{
CString str1;
str1 = str.Mid(index, str.GetLength() - index);
if (!str1.IsEmpty())
{
index += 1;
str1 = str.Mid(index, str.GetLength() - index);
}
if (!str1.IsEmpty())
{
index += 1;
str1 = str.Mid(index, str.GetLength() - index);
}
if (!str1.IsEmpty())
{
index += 1;
str1 = str.Mid(index, str.GetLength() - index);
}
str1 = " " + str1;
m_sendList.InsertString(0, str1);
str1 = str.Mid(1, index);
str1 += " ";
str1 += ip;
m_sendList.InsertString(0, str1);
}
else
{
str += " ";
str += ip;
m_sendList.InsertString(0, str);
str.Empty();
}
}
void CDebug::OnBnClickedButtonRxClear()
{
m_recvList.ResetContent();
count = 0;
}
void CDebug::OnBnClickedButtonTxClear()
{
m_sendList.ResetContent();
count = 0;
}
void CDebug::OnBnClickedButtonRxStop()
{
CString caption;
m_rxStop.GetDlgItemText(IDC_BUTTON_RX_STOP, caption);
if (caption == "Stop")
{
rxStopDebug = true;
m_rxStop.SetDlgItemText(IDC_BUTTON_RX_STOP, "Start");
}
else
{
rxStopDebug = false;
m_rxStop.SetDlgItemText(IDC_BUTTON_RX_STOP, "Start");
}
}
void CDebug::OnBnClickedButtonTxStop()
{
CString caption;
m_rxStop.GetDlgItemText(IDC_BUTTON_TX_STOP, caption);
if (caption == "Stop")
{
txStopDebug = true;
m_txStop.SetDlgItemText(IDC_BUTTON_TX_STOP, "Start");
}
else
{
txStopDebug = false;
m_txStop.SetDlgItemText(IDC_BUTTON_TX_STOP, "Stop");
}
}
void CDebug::OnBnClickedButtonDebugClose()
{
comPage->CloseDebugWindow();
}
@@ -0,0 +1,38 @@
#pragma once
#include "afxwin.h"
// CDebug dialog
class CDebug : public CDialog
{
DECLARE_DYNAMIC(CDebug)
public:
CDebug(CWnd* pParent = NULL); // standard constructor
virtual ~CDebug();
// Dialog Data
enum { IDD = IDD_DIALOG_DEBUG };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
DECLARE_MESSAGE_MAP()
public:
CListBox m_recvList;
CListBox m_sendList;
int count;
void DisplaySendPackets(char buf[260], int len, char ip[20], bool frameFlag, bool crcFlag);
void DisplayRecPackets(char buf[260], int len, char ip[20], bool frameFlag, bool crcFlag);
afx_msg void OnBnClickedButtonRxClear();
afx_msg void OnBnClickedButtonTxClear();
afx_msg void OnBnClickedButtonRxStop();
CButton m_rxStop;
CButton m_txStop;
bool rxStopDebug;
bool txStopDebug;
afx_msg void OnBnClickedButtonTxStop();
// afx_msg void OnClose();
afx_msg void OnBnClickedButtonDebugClose();
};
Oops, something went wrong.

0 comments on commit 9d4d312

Please sign in to comment.