I have started recently at the recomandation of someone from stackoverflow to use nrComm library to handle the communication between the computer and a GSM Modem. I am having trouble with assigning a certain port to the component maybe someone worked with the component before and can tell me what i am doing wrong.
When i use the TnrDeviceBox to pick a COM Port it works fine but when i assign it manually like this it fails :
...
nrcm1.ComPort := cpCOMxx;
nrcm1.ComPortNo := comportnumber;
nrcm1.Active := True;
...
What am i doing wrong. I need to assign COM23 and the component defines only COMS to 1 – 7
When setting the
ComPortNoto a number above 8, the library makes a check with the ComPort property. If that property is already set tocpCOMxx, it skips updating theComPortNo.To me this looks like a bug, but you can circumvent it by not setting the
ComPortproperty tocpCOMxxin the first line.