NodeMCU使用Arduino IDE进行串口通信的问题
在使用NodeMCU与设备进行串口进行串口通信的时候,定义了软串口(13,15),发送完问询命令后,串口没有返回是为什么,甚至连“1”都没有打印,但是用Arduino mega2560发送问询命令后,是可以返回的,是不是我程序写的哪里有些问题,求指出!!!非常感谢!!!data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAjUAAAIPCAYAAACL9C9TAAAgAElEQVR4nO3dPY/dxp7ncUJ+U3TqTTbyANsCNhjBG6mc2BCmM+0LsKNbcger3oEFjCKtgFEHGoiAIKyivUlvXwieVtZcCWijR3AnVkdX4X8DPpwiWcUqPp3DU/39AA23D8likeeo63eqimQiAAAAEUh2XQEAAIA5EGoAAEAUbm+o+S2Ts13XAbdarrVku64EAEQkMNRkcvzD92UIMH+v5PLypzty76dH8mnuGkomxz/cke9+/ErudfY7vrx5ynK5kmd/OZHf6//P5fowkfd3mz/nR2ObtG55Fyf5PFXfibnPT9i+zg+1fBlVRiaXB0Y9D5TcDNxeJYkkieoJNe3PEADAJyzU/PFIHlaBxfy9tmSoqdjC1BrKaruSZw8O5dnV5pWbo0TOD1K5rl47VZMa1ZsjM8gUDezwhnU95j4//eYINZUp5z4T1RtqROTqRNQDgg0AhJop1GzDPoSaU/n522agcTV8RUM+rjH0N6T7FHTmPj/btHCoESmCzbdH8tdR9QOA28UTajZDP+2fZYdvXHVZc6g5lZ+tjU/RM9DoiZjE35B+OUlHDovswtznZ5u2EGpExP3ZAgCYwnpqfvteHr7Ou7+LSP+cF3P+SjMgNcsoyjVD0/Fv7UrYgohtfoxrzkwxRPbdj1/Jvaffd8r69PrrTWAb3BPlaXTK4RTf3JdqWMk+p6Q5j6OxXt2o2tfxLbeue6Xl4qC9rAoerTklR1mj7u1hnSpkuZaHnh93OaH1CZwL03vsphlCTa4lTRJJyp9Uu46fYAMAPkGh5tPrr+sQYv7e5Or9sISMPx7JQ+P/P73+2hJMbAHGVb5n3T8eycMfvpaXf5T//9v3jf11jumPR/Lwaegk1fDGpmp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1glBTypTlScgAAABh1hNqJBNFqAEAACMRagAAQBQINQAAIAorCzWp6HzX9QAAAPtoRaFGhN4aAAAw1opCTS46pacGAACMs6JQQy8NAAAYj1ADAACiQKgBAABRINQAAIAorCfUZEqSVAvzhAEAwBgrCDXVAy258gkAAIy3glADAAAwHaEGAABEgVADAACiQKgBAABRINQAAIAoEGoAAEAUCDUAACAKhBoAABAFQg0AAIgCoQYAAESBUAMAAKIQEGqqZzMloniENgAAWKnwnppMSZIoIdcAAIA1GjD8lIki1AAAgJUi1AAAgCgQagAAQBQGhppUdL5cZQAAAMYaeEk3vTUAAGCdBoSaXHRKTw0AAFgn5tQAAIAoEGoAAEAUCDUAACAKhBoAABCFYY9JSLUwTxgAAKzRgAdacuUTAABYr4H3qQEAAFgnQg0AAIgCoQYAAESBUAMAAKJAqAEAAFEg1AAAgCgQagAAQBQINQAAIAqEGgAAEAVCDQAAiAKhBgAARIFQAwAAokCoAQAAUSDUAACAKBBqAABAFAg1AAAgCoQaAAAQBUINAACIAqEGAABEgVADAACiQKgBAABRINQAAIAoEGoAAEAUCDUAACAKhBoAABAFQg0AAIgCoQYAAESBUAMAAKJAqAEAAFEg1AAAgCgQagAAQBQINQAAIAqEGgAAEAVCDQAAiAKhBgAARIFQAwAAovD/AXlyu9cH/Ll7AAAAAElFTkSuQmCC
本帖最后由 ecnuzyh 于 2019-6-17 13:36 编辑
#include <SoftwareSerial.h>
SoftwareSerial mySerial(13,15);
signed char IM1253B = {0x01,0x03,0x00,0x48,0x00,0x08,0xC4,0x1A};
void setup() {
Serial.begin(9600);
mySerial.begin(9600);
for(int i=0 ; i<8 ; i++){
mySerial.write(IM1253B);
}
}
void loop(){
if (mySerial.available()) {
Serial.println("1");
Serial.println(mySerial.read());
}
}
请问你解决了吗,我也出现了这个问题
页:
[1]