Unfortunately, I didn't work. It passed through all steps, but both calculators return 0.0
A
0B
"1. Calc 1"
"2.Calc 2"
For 1L To 500
Next
While Getkey/=72 And Getkey/=62
WhileEnd
GetkeyK
If K=72
Then OpenComport38k
1C
"Connection On."
"Number"?A
"Sending..."
Send38k A
For 1L to 20
Receive38k B
B=>Break
Next
Locate 14,1,B
CloseComport38k
"FINISHED"
IfEnd
If K=62
Then For 1L To 100
Next
OpenComport38k
"Connection On."
"Receiving..."
For 1L To 20
Receive38k A
A=>Break
Next
Locate 14,5,A
"Number"?B
Send38k B
CloseComport38k
"FINISHED"
IfEnd

Connection Program
Started by
E_net4
, Mar 16 2007 06:23 PM
5 replies to this topic
#1
Posted 16 March 2007 - 06:23 PM
I intended to make a program for 2 calcs (fx 9860G) to send/receive a value via 3pin cable from/to each other. Here's the code:
#2
Posted 16 March 2007 - 06:38 PM
Welcome to the UCF
unfortunately, the Send() and receive() commands only work with a PC or a data logging peripheral (EA 200), not with another calculator
unfortunately, the Send() and receive() commands only work with a PC or a data logging peripheral (EA 200), not with another calculator
#3
Posted 18 March 2007 - 12:04 PM
Are you sure? I didn't use Send() and Receive(), I used Send38k and Receive38k.
#4
Posted 18 March 2007 - 09:16 PM
So what's the difference between them?

#5
Posted 18 March 2007 - 09:28 PM
I'm not sure, but I think that the 38k commands use the USB Port and the Send/receive commands uses the COM port.
#6
Posted 18 March 2007 - 10:20 PM
I don't think that's the difference. Mostly sure both commands use the Serial Port (USB port is a mess to use, you can't use it from BASIC code). I would say the difference is related to the speed. 38k = 38000 bauds per second.
I'm not sure, but I would say you can connect two calcs with just a wire, you should just cross the RX TX lines. You have three wires, one is GND (ground). Then you have one wire for TX and one wire for RX. You should make the TX from one calc match the RX of the other and viceversa.
I'm not sure, but I would say you can connect two calcs with just a wire, you should just cross the RX TX lines. You have three wires, one is GND (ground). Then you have one wire for TX and one wire for RX. You should make the TX from one calc match the RX of the other and viceversa.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users