Serial.begin(9600); Serial.println (F ("Ready..."));
Serial.println("SECURE 440"); Serial.println(secure_elite_440.getResponseBuffer(j));
PLZ HELP URGENTLY MY COLLEGE PROJECT FINAL DATES ARE APPROACHING TOOOOOO CLOSE
Code: [Select] secure_elite_440.begin(1, Serial);Code: [Select] Serial.println("SECURE 440"); Serial.println(secure_elite_440.getResponseBuffer(j));You're telling the ModbusMaster library that it may use the main serial interface for the Modbus communication but you also use the same interface to print out debugging information.You must use a separate serial interface for the Modbus and for the communication with the PC. As the UNO has only one serial interface you should change the board. The Mega2560 has 4 serial interfaces while the Leonardo has a serial interface and internal USB capabilities for the communication to the PC. Both are viable products to use in your setup.
Are you the ONLY one with this specific project and teacher?Paul
Those 3 are mainly dependent on me.
Boss is there any method in which i can use uno for the project because getting an mega will fail the purpose of the project, i have been told to do it with the same serial port. My teacher said it is very possible and for many days i am trying to do it but now i donot see any hope and my end sem exams are also approaching now. Please tell me if there is any method to do it with same port.
but unable to get anything sensible on serial monitor
resultMain = secure_elite_440.readHoldingRegisters(0x40050,10);
I have tried to use interrupt
BUT I am getting only 0 or 65535 in serial monitor.