Yi Wei
Forum Replies Created
-
AuthorPosts
-
Yi Wei
ParticipantThat should be what I need, thank you!
Yi Wei
ParticipantYes, I mean though the mDot.h library. So far the only function I found from the library related to this issue is resetNetworkSession function. I’m not sure whether it can fix my problem or not.
Yi Wei
ParticipantIs there a way to do it through coding the firmware?
Yi Wei
ParticipantThank you very much Jason! Is there a way we can get the MIC and reboot the transmitter if it exceeds 16 bits length via code?
Yi Wei
ParticipantOK thanks. I was able to use data rate 0 in old firmware, but it only allows 11 bytes, is that data rate valid and can I reach the longest range with that being set? Is data rate 0 – 3 going to be supported in the AU915 plan in the future as I saw there are some comments in the peer to peer example code saying that data rate 0-3 should be available under AU915 plan.
case lora::ChannelPlan::AU915: // 500kHz channels achieve highest throughput // DR_8 : SF12 @ 500kHz // DR_9 : SF11 @ 500kHz // DR_10 : SF10 @ 500kHz // DR_11 : SF9 @ 500kHz // DR_12 : SF8 @ 500kHz // DR_13 : SF7 @ 500kHz // DR_0 - DR_3 (125kHz channels) available but much slower tx_frequency = 915500000; tx_datarate = lora::DR_0; // 915 bands have no duty cycle restrictions, set tx power to max tx_power = 20; break;
Yi Wei
ParticipantOK, the problem is caused by running 3 nodes at the same time. I could read the received data from serial port but when access it from code, it becomes empty.
April 16, 2018 at 11:53 pm in reply to: [SOLVED] Sending string converted to uint8_t causes failed join request mDot #23124Yi Wei
ParticipantThe sendData() function in the example calls the send() function inside mDot.h
int32_t send(const std::vector<uint8_t>& data, const bool& blocking = true, const bool& highBw = false);
So it only accepts vecotr<uint8_t> data. In C/C++ uint8_t and char occupy same memory space so you can convert your string to a char* to fit the function.
Try this:
` char string_buffer[];
//* Parse your data to string_buffer here */
for (int i = 0; i < strlen(string_buffer); i++)
{
tx_data.push_back(((char*) string_buffer)[i]);
}
sendData(tx_data);
`April 16, 2018 at 11:44 pm in reply to: [SOLVED] Data exceeds datarate max payload 11 bytes after one transmission #23123Yi Wei
ParticipantYeah I found the same problem, so all I can do is set the data rate to 1 before every time send() gets called.
-
AuthorPosts