-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sendCommand() not working with Arduino MKR GSM 1400 #34
Comments
Hello, Thank you for the sketch. With no output at all, the execution must stop somewhere before the first Although I am not familiar with the Arduino MKR GSM 1400, I understand that MKR boards address pins D13 and D14 as Serial1. Thanks, Bud Ryerson |
Great! Thanks. I am mystified. You got past
And if that doesn't work, try something more basic, like:
I hope did that right. I'm not at the lab. Please Let me know what happens. Thanks, |
Hi, I managed to resolve my issue, although not directly. First I used the provided GUI to change the communication mode to I2C (because that's what I'll be using for this project). After changing the mode, sending commands still didn't work. However, when I powered my Arduino from bench power supply in addition to connecting it to the PC via USB, everything started behaving normally. I don't know if power was the culprit with serial communication also, but currently everything is working as expected with I2C version of this library, so this issue can be closed. Thank you for your help! |
That sounds right, and it's good information for the next person. |
Hello,
I am using the library with TFMini Plus and Arduino MKR GSM 1400 board.
I connected the sensor to TX and SX serial ports on my board. I can get the distance data without a problem as that is working as expected.
What I do have problem with is sending ANY command to the sensor itself. The execution just halts and nothing is returned by
sendCommand()
function. Here is an example code that does not work (I want to check firmware version, but ultimately want to change to I2C as I'll connect multiple sensors).Here is the code example (I'm using Serial.print() as printf is not working)
When I run this, nothing is printed to the serial monitor, the execution apparently stops in
tfmP.sendCommand(OBTAIN_FIRMWARE_VERSION, 0)
part of the code.The text was updated successfully, but these errors were encountered: