Could somebody help me with a problem?
I have the project to send data from a device to a server (many people from this forum did the same ).
I use Fastrack Supreme 20 (firmware 72a) (also M1306B (firmware 657e) for test) and a device that can make data exchange via rs232.
For debug purpose modem and device are connected to PC and I can see trace via TMT (and via terminal emulator I can see data exchange with my device).
All work correctly: the modem connects to the server, gets data, sends it to the device, the device sends data to the modem and the modem sends it to the server.
But when modem is connected directly to the device, the device does not send data to modem. I can see it from strings sent by modem to server when there are no data from device for 30 seconds.
Logs when there are no data from device (connected directly):
BusInit nFcmHandle 0 // call adl_fcmSubscribe, returned handle is 0 (OK)
BusFcmControlHandler nEvent 0
BusFcmControlHandler nEvent 2
BusWrite nDataToBusLen 13 // send 13 bytes to device
BusFcmControlHandler nEvent 7 // (this is ADL_FCM_EVENT_MEM_RELEASE)
Logs when data comes from device (modem and device connected to PC):
Trace ADL 8 BusInit nFcmHandle 0 // call adl_fcmSubscribe, returned handle is 0 (OK)
Trace ADL 8 BusFcmControlHandler nEvent 0
Trace ADL 8 BusFcmControlHandler nEvent 2
Trace ADL 8 BusWrite nDataToBusLen 13 // send 13 bytes to device
Trace ADL 8 BusFcmControlHandler nEvent 7 // (this is ADL_FCM_EVENT_MEM_RELEASE)
Trace ADL 8 BusFcmDataHandler nDataLen 8 // receive 8 bytes from device
adl_fcmSubscribe and adl_fcmSendData return OK (success).
I set up connection speed the same as it is in terminal emulator ( “at+ipr=9600” ).
I complied my app with -release option (wmmake -release) to exclude trace flooding, but it also gave no effect.
What could I try to make data exchange between device and modem?
And something else.
According to device specification “RTS signal from PC should not be less +9V”. Does someone know which signal is on RTS by default (or where it can be found)?
And how to change it from application?
Many thanks for help.