Lengkap

VB6 Send Receive via comport.

I need help to add the following to a simple VB6 program.

I am getting information on request from a closed loop stepper motor that is running off a Arduino zero (search: MKS SERVO42A).

The information is being sent via the com port. Another Freelancer has helped me setup the first part where I am able to send a request to the Arduino and have the arduino make the changes required. However I know need to be able to read and use some information that is being sent from the arduino.

Commands sent from the VB6 program do prompt a reply from the Arduino. Most are just confirmations and I have no need of them. They can just be ignored.

However 2 requests for information from the VB6 program, returns information that I need.

I am unable to format the responses from the Arduino. The requested data I need will be interspersed between the commands that can be ignored.

Here the are:

The string sent is: readpos

The return is for example : encoder -110.15 [There is a space between "encoder" and the value]

The value that follows "encoder" is anywhere between 50000.00 and -50000.00. There is no "+" when the value is positive. So the received string is of a varied length.

I need to extract that value for use. So I would like that value to appear in a Textbox which is cleared and refreshed each time the request is made. (Which is 30ms on the timer)

The same is needed for the following request.

The string sent is: geterror

The return is for example : error 10.87 [There is a space between "error" and the value]

The value that follows "error" is also anywhere between 50000.00 and -50000.00. There is no "+" when the value is positive.

This received string is then also of a varied length.

I need to extract that value for use. So I would like that value to appear in another Textbox which is cleared and refreshed each time the request is made. (Which will be on the same 30ms on a timer)

The timer is not yet in the program and will be added later.

I am able to send and receive successfully in a VB6 program called Visual Basic Terminal. So the Arduino does work. However I need to be able to get the above to work for my project. I am not stuck on using the VB6 program that was created for me, but I am including it (attachment MSComm) - the send function does work as I asked. I just cannot receive data, although we made an attempt.

I will also include as an attachment the VB terminal program that allows both Send and Receive. (Attachment - VBTerminal)

I need to work in VB6 because of another program that will link to this one, which is only available in VB6.

I think that about covers it. I cannot pay more than $100 unfortunately.

Kemahiran: Arduino, Visual Basic

Lihat lagi: visual basic serial port communication example, vb6 mscomm example, visual basic serial port write, mscomm vb6, vb6 com port settings, vb6 open com port, visual basic 6 serial port communication example, vb6 mscomm receive data, send receive text messages online, send receive sms text messages, send receive text messages, send receive texts online, j2me web services send receive data, send receive php flash, send receive text messages net, php send receive xml data, sms send receive code, php mysql send receive email pop3, java sms send receive gateway, j2me bluetooth files send receive

Tentang Majikan:
( 6 ulasan ) Umdloti, South Africa

ID Projek: #26497031

Dianugerahkan kepada:

dany3j

Hi there! Dear colleague. I can help you with this Vb6 project. I've done similar project using COM Port. I also have an Arduino where I could do test with. I would like to know more about it. Contact me by Chat to get Lagi

$100 USD dalam 10 hari
(23 Ulasan)
4.6

11 pekerja bebas membida secara purata $120 untuk pekerjaan ini

SPARKtechBD

I have read your full description and understood your problem which you want to solve. I have work a lot of RS232 COM port programming in VB6. I specially working on VB6 for 19+ years. You can visit my portfolio to kn Lagi

$100 USD dalam sehari
(13 Ulasan)
5.8
goharriz

Hi Laurence, let me know if I understood correctly: -You need to parse the response to two commands (sent by serial port): "readpos" and "geterror". -The response for "readpos" has the following format: "encoder -xxxxx Lagi

$99 USD dalam 7 hari
(21 Ulasan)
5.2
vinod150987

I hope you are well. I am a Software Developer with 9+ years of experience in .NET technologies e.g. C#, VB.NET, ASP.NET, WCF, Web Services, Javascript, JQuery, Node.js, Angular, D3.js, [login to view URL], SQL Server, Excel p Lagi

$140 USD dalam 250 hari
(4 Ulasan)
3.2
GoodCooper

Dear, client I just read your request carefully, and your request will be done within few days. I have rich experience in Arduino, Esp32 and Raspberry Pi with multi sensors including PSI sensors, PIR sensors , flow m Lagi

$250 USD dalam 7 hari
(3 Ulasan)
2.9
tregor1990

Through my 4 years of professional experience in the fields of electronics, industrial control and metrology I’ve acquired many skills on both sides of the fence dividing design from maintenance, that together with my Lagi

$140 USD dalam 7 hari
(1 Ulasan)
1.2
vw1514518vw

Ready to make the necessary modification to the VB6 program to let you get the pos, err values from the response to com port, display it on screen on 2 text box. And refresh it with each request

$100 USD dalam 3 hari
(1 Ulasan)
1.4
STManikandan

Hello, My name is Manikandan. I am an embedded project manager, I can complete the project successfully,

$140 USD dalam 7 hari
(0 Ulasan)
0.0
erdsvirk

Hello respected employer, I have read your description carefully and already worked on same kind of projects. Please check my profile and YouTube link for the same. I am new to FL but have an 11 years of experience i Lagi

$100 USD dalam 2 hari
(0 Ulasan)
0.0
manganiellojose

Greetings Dear. I am an Electronic Engineer and TSU in Telecommunications, I also have experience, knowledge in Electrical Design, and programming of PIC microcontrollers (12F, 16F, 18F series, dsPIC30F, PIC32), Arduin Lagi

$70 USD dalam 7 hari
(0 Ulasan)
0.0
alexanderryabkov

Hello, I know VB6 and worked with RS232 a lot of. I can do your project with good quality and fast. Regards.

$80 USD dalam 7 hari
(0 Ulasan)
0.0